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
this is works without importing AddressInfo schema manually . The only problem is, I can't write description in this way.
However in case type of nested schema is array, properties can be written much easier. I want to point out this inconsistency.
I love apispec + marshmallow because of its flexibility which can fully use swagger spec, so how about support
addressInfo:
$ref: AddressInfoSchema
instead of this way?
addressInfo: AddressInfoSchema
IMO, with $ref, apispec can work with all feature of swagger and have much more flexibility.
Use your manual binding and manually add your AddressInfo schema to the spec by calling spec.components.schema(name="AddressInfo", schema=AddressInfo)
manually binding schema has problem when AddressInfo is already registered by another route. Maybe api.core.components needs has method to check whether schema is already registered or not, instead of looking for api.core.components._schema directly
Hi. Maybe I missed, I'm trying to nest a schema to object type
properties
, but I couldn't found the way to solve this situation.First I wrote below, but it doesn't work.
This is one of options, but it can't declare
description
manual binding is not working because AddressInfo is not in #/components/schema
Is there a proper solution for this? 🙏 Thanks.
The text was updated successfully, but these errors were encountered: