-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Semantic Error at OASv3 for 'MessageExcluding[id]': #3698
Comments
@jannyHou @raymondfeng , could you please help in this issue? |
I think this means the error is at LoopBack side, where we forgot to url-encode references. I think the problem should go away once we land #3504, where we are changing the schema title to match the regular expression |
Since PR #3504 has landed, this issue should be resolved. Closing this. |
A Loopback4 generated application (https://github.com/remkohdev/guestbook101/blob/master/Lab0/README_w_lb4_cli.md) provides an OAS v3 that gives me the following semantic error in Swagger editor, which I assume uses Swagger Validator. I validated the Swagger in Swagger Editor after getting issues in API Connect (I now realize I should not be using v3 at all, when using API Connect, which means I cannot use Appsody, LB4 CLI, that's another story)
If I go to editor.swagger.io and import my OAS in Loopback4 (http://169.63.218.104:32145/openapi.yaml), the validator throws a semantic error 👍
Line 190 refers to
$ref: '#/components/schemas/MessageExcluding[id]'
that points toI can resolve the error in Swagger Editor by URLEncoding the square brackets as follows: $ref: '#/components/schemas/MessageExcluding%5Bid%5D'
Does this mean the Loopback 4 application wrongly generates the ref? or is the error in the swagger validator in the swagger editor?
The text was updated successfully, but these errors were encountered: