diff --git a/openapi_codec/encode.py b/openapi_codec/encode.py index 13b3ef4..8a2054d 100644 --- a/openapi_codec/encode.py +++ b/openapi_codec/encode.py @@ -171,7 +171,7 @@ def _get_parameters(link, encoding): # https://github.com/OAI/OpenAPI-Specification/issues/50#issuecomment-112063782 schema = {'type': 'string', 'format': 'binary'} else: - schema = {} + schema = getattr(field, 'schema', {}) parameter = { 'name': field.name, 'required': field.required,
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: