-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve create message route #1
Comments
🤔 pretty sure the ID can be any snowflake as well |
Yeah this uses a regex to say the number is any sequence of digits. I would use |
This is a technical limitation needed to express that we don't accept unlimited uploads in a single request. (In general, for requests, I'd prefer that the spec expresses a subset rather than a superset of allowed inputs, if it can't be exactly precise). |
How about using |
i think we currently accept body properties as form properties (but if payload_json is present, they all have to be in there instead)? i could be wrong as well |
I checked, you're correct. Maybe there should be an (I imagine "the other branch" is the significantly more common case; that's how I've implemented things before :P) |
Currently, the create message route is... kinda sucky:
discord-api-spec/specs/openapi.json
Lines 4496 to 4537 in bab7bf1
This could be better expressed as:
using
patternProperties
.The text was updated successfully, but these errors were encountered: