Skip to content
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

SchemaGenerator and path parameter converters #1646

Closed
Kludex opened this issue May 23, 2022 Discussed in #1645 · 1 comment · Fixed by #1648
Closed

SchemaGenerator and path parameter converters #1646

Kludex opened this issue May 23, 2022 Discussed in #1645 · 1 comment · Fixed by #1648
Labels
bug Something isn't working

Comments

@Kludex
Copy link
Member

Kludex commented May 23, 2022

Discussed in #1645

Originally posted by jvail May 23, 2022
Hi,

if I use type converters in a route definition ('/somepath/{parameter:int}') and generate an openAPI schema then I'd expect that the type, the converter is stripped from the URL template. But currently i get

"paths": {
        "//somepath/{parameter:int}": {}
}

instead of

"paths": {
        "//somepath/{parameter}": {}
}

Is that by purpose?
If so the parameter names inside the doc string don't match anymore if parsed e.g. inside postman. Postman would create a parameter named "parameter:int" instead of just "parameter".

Thank you
Jan

@Kludex
Copy link
Member Author

Kludex commented Jun 8, 2022

@Kludex Kludex closed this as completed Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant