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
6.TestChannel?Content-Type=application/json;charset=utf-8 channel contains invalid name with url query parameters: ?Content-Type=application/json;charset=utf-8
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
Yeah, but that is an error, spec says there SHALL NOT be query params. Parser 1 throws error, we should not have regression here. In case of custom validators from version 1 I remember that there was only once case where instead of error we should show warning
Activity
github-actions commentedon Mar 30, 2023
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
derberg commentedon Mar 30, 2023
my guess is that https://github.com/asyncapi/parser-js/blob/master/lib/customValidators.js#L424 is not reflected in spectral rules for Parser 2 RC
magicmatatjahu commentedon Mar 30, 2023
ParserJS v2 validates it, but it's treated as warning, not error - when you put the mentioned AsyncAPI document you will see this:
derberg commentedon Mar 30, 2023
Yeah, but that is an error, spec says there
SHALL NOTbe query params. Parser 1 throws error, we should not have regression here. In case of custom validators from version 1 I remember that there was only once case where instead of error we should show warningmagicmatatjahu commentedon Mar 31, 2023
So it's only a changing the severity kind of given rule, in this place - https://github.com/asyncapi/parser-js/blob/next-major/src/ruleset/v2/ruleset.ts#L290
derberg commentedon Apr 3, 2023
@magicmatatjahu should it also be move under
v2CoreRuleset?magicmatatjahu commentedon Apr 3, 2023
Can be moved.
derberg commentedon Apr 3, 2023
What needs to be done to solve:
Add
severity: 'error'to https://github.com/asyncapi/parser-js/blob/next-major/src/ruleset/v2/ruleset.ts#L290 and move it underv2CoreRuleset/gfi ts
asyncapi-bot commentedon Apr 3, 2023
Hey @derberg, your message doesn't follow the requirements, you can try
/help.smoya commentedon Apr 13, 2023
A PR with the fix has been created #747