We need to improve / fix API validation so all the inputs are correctly validated based on the schema defined in openapi.yaml / API model.
Right now we have schemas from API models copy and pasted to openapi.yaml file and that's a maintenance nightmare (things will get out of sync, etc.).
We need to decide which place we want as an authoritative source (either API model Python classes or openapi.yaml file) and then write a generator which either writes schema to openapi.yaml file based on API model class definitions or vice-versa.
See #3573 (comment) for context.