You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RequestBodyType is a concrete, non-Union, possibly Optional, model type
the key is typically 'application/json'
These alternative shortcut forms could be allowed, to better support human authors:
body: Annotated(RequestBodyType, RequestBody()) # only accept 'application/json' and map the body to ResultTypebody: Annotated(RequestBodyType, RequestBody('application/json')) # only accept the given media type, and map to ResultType
The text was updated successfully, but these errors were encountered:
The typical usage of RequestBody annotation is:
with a single key-value pair, where
These alternative shortcut forms could be allowed, to better support human authors:
The text was updated successfully, but these errors were encountered: