Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7k
Makeinflection
package truly optional#9303
New issue
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Makeinflection
package truly optional#9303
Uh oh!
There was an error while loading.Please reload this page.
Conversation
inflection
package truly optional
tfranzel left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Actually I would handle it analog touritemplate
, which does a graceful import and then asserts on it missing during a call.
I don't like this because it is inconsistent with the other optional libs and also silently uses a slightly degraded implementation without anyone noticing.
I think it should be like this:
asserturitemplate,'`uritemplate` must be installed for OpenAPI schema support.' |
Fair enough |
Co-authored-by: T. Franzel <13507857+tfranzel@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
awesome. thanks@browniebroke
Uh oh!
There was an error while loading.Please reload this page.
Description
Fix#9291
The 3.15 release started to use the
inflection
package (#8017), but this was neither added as a dependency from DRF nor properly documented.Since this is only needed for generating the OpenAPI schema (which is deprecated), I don't think it's worth introducing this package as a hard dependency, we can document it like
pyyaml
anduritemplate
.Since the former solution was
13 lines, perhaps we can use it as fallback wheninflection
isn't installed?