You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably #7204. There's an open ticket there to work out exactly how we should map the URL from a URLValidator. Would be great if you wanted to have a think about that.
Checklist
master
branch of Django REST framework.Steps to reproduce
Have an
openapi
schema view, with some view usingURLField
Expected behavior
See all endpoints on the browsable API
Actual behavior
Endpoints are missing due to HTML comment on regex patterns.
Workflow
Autoschema when mapping URLFields: https://github.com/encode/django-rest-framework/blob/master/rest_framework/schemas/openapi.py#L545-L581 gets the regex pattern from URLValidator which contains
<!
commenting the HTML from the Browsable API, hiding the following endpointsThe text was updated successfully, but these errors were encountered: