Skip to content

Conversation

robert-hebel-sb
Copy link
Contributor

fixes unwanted validation errors against external refs

@robert-hebel-sb robert-hebel-sb changed the title fix: external refs should not be validated fix(ls): external refs should not be validated Sep 19, 2025
targets: [{ path: '$ref' }],
function: 'apilintValueRegex',
params: ['^(?!.*#/components/schemas).*$'],
params: ['^(?!.*#/components/schemas)(?!https?://).*$'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this not mean that only external references starting with http(s):// are not validated? We could have any URI here, some examples here:

refs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point! Changed to validating local references only

@robert-hebel-sb robert-hebel-sb merged commit 91312ec into main Sep 25, 2025
8 checks passed
@robert-hebel-sb robert-hebel-sb deleted the fix/dont-run-validation-against-external-refs branch September 25, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants