-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Error mapping Python regex to OpenAPI. #7204
Comments
The regex comes straight off the validator, which we attach in I can only find one match for "regex" in the spec. So..
|
@carltongibson I found the root cause of this problem. For example: I also found that pyyaml wraps it in |
Hi @dhaval-mehta. Nice. So two questions:
Is that a reasonable restriction? What do the Swagger folks say about that?
What do the pyyaml folks say about that? I'm not seeing anything we can action as yet... 🤔 |
I have fixed this issue in #7389 |
Checklist
master
branch of Django REST framework.Steps to reproduce
Use
URLField
in model and use openapi schema generator. Then copy-paste generated JSON to editor.swagger.ioExpected behavior
Regexp should be valid for openapi.
Actual behavior
Regexp is invalid.
The text was updated successfully, but these errors were encountered: