We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firstly, thanks for this great library.
Now, in:
drf-yasg/src/drf_yasg/inspectors/query.py
Line 49 in 2ef7cfb
If we can't find out which type it is, we default to string.
However, later, we try to ask the schema description:
Line 51 in 2ef7cfb
My field that is getting passed in, is from https://github.com/django-money/django-money, has no schema:
ipdb> field Field(name=u'currency', required=False, location='query', schema=None, description=u'', type=None, example=None) ipdb> type(field.schema) <type 'NoneType'> ipdb> field.schema.description *** AttributeError: 'NoneType' object has no attribute 'description'
Not sure what to do exactly but it seems that we should make a field.schema is None check?
field.schema is None
The text was updated successfully, but these errors were encountered:
Alternatively, I think I can create a ManualSchema field definition for this field via:
ManualSchema
http://www.django-rest-framework.org/api-guide/schemas/
Sorry, something went wrong.
Don't ask for description if no schema exists.
889af4c
Related to axnsan12#143.
8b97296
d627a1b
axnsan12
No branches or pull requests
Firstly, thanks for this great library.
Now, in:
drf-yasg/src/drf_yasg/inspectors/query.py
Line 49 in 2ef7cfb
If we can't find out which type it is, we default to string.
However, later, we try to ask the schema description:
drf-yasg/src/drf_yasg/inspectors/query.py
Line 51 in 2ef7cfb
My field that is getting passed in, is from https://github.com/django-money/django-money, has no schema:
Not sure what to do exactly but it seems that we should make a
field.schema is None
check?The text was updated successfully, but these errors were encountered: