Skip to content

Improve API validation so openapi.yaml file utilizes schemas from API model Python classes #3575

@Kami

Description

@Kami

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions