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

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

Open
wfleurant wants to merge 1 commit into
sanic-org:mainfrom
wfleurant:schema-hint
Open

decorators: hint at ref as component for strict responses#172
wfleurant wants to merge 1 commit into
sanic-org:mainfrom
wfleurant:schema-hint

Conversation

@wfleurant

Copy link
Copy Markdown

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
Copy Markdown
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.

1 participant