Set up data models #11
Labels
No labels
Compat
Breaking
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Meta
Kind
Renovate
Kind
Repository
Kind
Security
Kind
Testing
Kind
Tooling
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Out of Scope
Reviewed
Won't Fix
Size
L
Size
M
Size
S
Size
XL
Size
XS
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
2 participants
Notifications
Total time spent: 1 hour 23 minutes
Due date
cswimr
1 hour 23 minutes
No due date set.
Blocks
#2 API Base}
cswimr/LookingGlass
Reference: cswimr/LookingGlass#11
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@MYHM What should these look like? Is this just for bans? General moderations?
So everything is going to be structured exactly the same, which will include the user ID, the ban/warn reason, proof, and the reason key.
@MYHM wrote in https://www.coastalcommits.com/cswimr/myhm-commission/issues/11#issuecomment-2317:
So, C# is kinda weird when it comes to enums / records. Would you want this to be documented in Swagger, or would just linking to the enum / record in the src be fine?
Edit: I'm assuming by
reason key
you mean a preset list of items, where only those items would be accepted in API requests. For example, given the following (pseudocode) enum:Providing a value of
"Warning"
would not be accepted, but"Advertising"
would be. Is this correct?Oh I have a list of this, send them to you as soon as you get a chance, way easier than this, one of them is DM_AD, another would be DM_SPAM
But,
DM_SPMA
should raise a validation error in the API, right? Basically, should this list be validated or can it just be a string?Oh my god i love this, finally a way to use enums as string values without wanting to tear my hair out
List of different reason keys:
also I almost forgot, I'd need a PUT method to actually upload data, but I think you figured that part out already.
OH can you add Scamming to the list