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
CalemRoelofsSB
changed the title
OpenAPI: Swagger 2.0 basePath linting rule fails when value starts or ends with 's'
OpenAPI: Swagger 2.0 basePath linting rule fails when value contains 's'
Dec 20, 2023
Refs #3565
This PR fixes the regex in the `OPENAPI2_SWAGGER_FIELD_BASE_PATH_PATTERN` linting rule so that it matches on whitespace characters instead of the letter 's'
Q&A (please complete the following information)
Describe the bug you're encountering
The Swagger 2.0 linting rule for validating that the
basePath
is correctly formatted (https://github.com/swagger-api/apidom/edit/main/packages/apidom-ls/src/config/openapi/swagger/lint/base-path--pattern.ts) fails erroneously whenever there is abasePath
with the characters
in it.To reproduce...
Steps to reproduce the behavior:
basePath: /s123
orbasePath: /123s
orbasePath: /hello/worlds
or any string starting with/
and containing the characters
Expected behavior
No validation error is displayed
Screenshots
Additional context or thoughts
This appears to be caused by the regex used for this rule found here
The text was updated successfully, but these errors were encountered: