Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

decorators: hint at ref as component for strict responses #172

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wfleurant
Copy link

please fixup the points and code examples im trying to make.

- use pydantic for requests and responses
- using typing sorta opens the door to interesting validation 
- use openapi.component to define list of schemas
- inline schema adds up vs. referenced
- seeing components in OAS is helpful

return json({})
return json({
'foo': 'biz',
'bar': 'baz',
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be biz: ..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant