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
{{ message }}
This repository was archived by the owner on Oct 19, 2022. It is now read-only.
Currently Apispec does not get enumeration information from MarshmallowEnum. It is easy to add support by doing something like the following in the __init__ of the EnumField class:
self.metadata['enum'] = [e.nameforeinenum]
metadata is a property of Field that apispec uses to retrieve OpenApi-related fields.
OpenApi spec allows defining enumerations, following the JSON Schema validation. Apispec allows generating such OpenApi spec from Marshmallow schemas.
Currently Apispec does not get enumeration information from MarshmallowEnum. It is easy to add support by doing something like the following in the
__init__of theEnumFieldclass:metadatais a property ofFieldthat apispec uses to retrieve OpenApi-related fields.Currently I am achieving the same by doing:
Finally I would like to thank you for your package :-)