-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Type annotations for CoreAPI #4384
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is it possible to get the Core API type annotations in earlier than 3.5? Feels necessary to describing APIs to have types. Thanks though! |
Nope. Tho 3.5 is currently planned for the end of next month, so you probably won't have all that long to wait.
Okay, more concretely tho - what's driving the interest specifically? Swagger UI, or some other tooling that'd display them once they're available, or just a general desire to see them in there? Note that you can describe the parameters in as much depth as you want in the description. Strict type checking isn't actually necessary in order to drive dynamic clients which is why it didn't make the first cut. |
I use django-rest-swagger, recently upgraded to v2 of that. Might also be switching to use the Redoc UI. In both of them the types all show up as strings which is a bit confusing for API users. |
Gotcha. We'll see. Needs a bit of design thought around eg composite types (may not follow swagger's lead exactly - json schema is rather over-complex) |
The issue here was less about types, and more about us failing to set the correct encoding. We're now using |
Now resolved in the 3.5 branch. |
No description provided.
The text was updated successfully, but these errors were encountered: