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
Specifically, the description field generated was problematic. e.g.
description
/api/{version}/business/brand/: get: operationId: listBrands parameters: ... - name: ordering required: false in: query description: &id001 !!python/object/apply:django.utils.functional._lazy_proxy_unpickle - !!python/name:django.utils.translation.gettext '' - !!python/tuple - Ordering - {} - !!python/name:builtins.str '' schema: type: string
So when swagger-ui is loading the schema, this shows up
Errors Hide Parser error on line 638 unknown tag !<tag:yaml.org,2002:python/name:django.utils.translation.gettext>
To get around this, I must set the label attribute when
ordering = OrderingFilter(fields=(...), label='Hello World')
Thank you.
The text was updated successfully, but these errors were encountered:
Ah, yes. We’ll need a str() somewhere.
str()
Sorry, something went wrong.
This same error is occurring with my project.
Moving to #1432
The ordering parameter is also included in the schema twice for some reason.
ordering
No branches or pull requests
Specifically, the
description
field generated was problematic.e.g.
So when swagger-ui is loading the schema, this shows up
To get around this, I must set the label attribute when
Thank you.
The text was updated successfully, but these errors were encountered: