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
We use JSON based Swagger files in our project and it's quite common to have lines such as:
"url": {
"type": "string",
"pattern": "^:https?:\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]$",
"description": "A URL"
}
Unfortunately such properties are not parsed by the plugin and throws the below error:
Could not generate Swagger UI
YAML decoding problem: while scanning a double-quoted scalar
in 'reader', line 853, column 32:
"pattern": "^:https?:\/\/[-A-Za-z0-9+&@#/%? ...
^
found unknown escape character /(47)
in 'reader', line 853, column 43:
... "pattern": "^:https?:\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+ ...
^
The same Swagger files have worked previously until a certain update to the plugin broke it.
Just to add, the same Swagger file works fine on editor.swagger.io when I choose the "Don't convert to YAML" option.
The text was updated successfully, but these errors were encountered:
We use JSON based Swagger files in our project and it's quite common to have lines such as:
Unfortunately such properties are not parsed by the plugin and throws the below error:
The same Swagger files have worked previously until a certain update to the plugin broke it.
Just to add, the same Swagger file works fine on editor.swagger.io when I choose the "Don't convert to YAML" option.
The text was updated successfully, but these errors were encountered: