mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 17:09:59 +03:00
add overridden specification by swaggger for type
This commit is contained in:
parent
194c248150
commit
708829ffc1
|
@ -231,7 +231,8 @@ class AutoSchema(ViewInspector):
|
||||||
'enum': choices
|
'enum': choices
|
||||||
}
|
}
|
||||||
|
|
||||||
# If We figured out `type` then and only then we should set it. It must be string or an array.
|
# If We figured out `type` then and only then we should set it. It must be a string.
|
||||||
|
# Ref: https://swagger.io/docs/specification/data-models/data-types/#mixed-type
|
||||||
# It is optional but it can not be null.
|
# It is optional but it can not be null.
|
||||||
# Ref: https://tools.ietf.org/html/draft-wright-json-schema-validation-00#section-5.21
|
# Ref: https://tools.ietf.org/html/draft-wright-json-schema-validation-00#section-5.21
|
||||||
if type:
|
if type:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user