-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
AsyncAPI v3 shows warning in Studio and IntelliJ plugin when referencing a json schema #494
Comments
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. |
I think we have a problem with the JSON Schema files that describe payloads. Payloads are defined with AnySchema:
AnySchema is defined with either schema or multiFormatSchema: https://github.com/asyncapi/spec-json-schemas/blob/master/definitions/3.0.0/anySchema.json#L8 Schema is basically just JSON Schema:
For multiFormatSchema references should work if you dont define a schemaFormat:
For multiFormatSchema references should work for AsyncAPI Schema formats:
Same for all the other schema formats. Looks like this is JUST a problem with AnySchema and Schema not adding reference type 🤔 Might be something to do with this:
|
@jonaslagoni yo, man, didn't see this thread I digged into schema and found this - asyncapi/jasyncapi-idea-plugin#49 (comment) Only |
…erencing a a json schema Change allOf to anyOf in multiFormatSchema asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a a json schema Fix missing queue definition for SQS channel binding asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
@jonaslagoni we must double check schemas generation I found missing https://github.com/asyncapi/spec-json-schemas/blob/master/schemas/3.0.0-without-%24id.json#L5622 I created MR with example changes, which must me moved to generator + re-check bindings I'm sure that more issues with validation will appear soon |
@ignacio-nyt I have checked your specification and no more validation errors wait for fix from our side |
Thank you! |
…erencing a a json schema - Revert changes from auto generated schema - Change allOf to anyOf in multiFormatSchema asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a json schema Include internal definitions from bindings to composed schema asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a json schema fix linter issue asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a json schema Add clarification comment for fix asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
v2: - 2.0.0 - 2.1.0 - 2.2.0 - 2.3.0 - 2.4.0 - 2.5.0 - 2.6.0 v3: - 3.0.0 asyncapi/spec-json-schemas#494 #49
…erencing a json schema New multiFormatSchema validation rules asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a json schema New multiFormatSchema validation rules asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a json schema New multiFormatSchema validation rules asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a json schema New multiFormatSchema validation rules asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a json schema New multiFormatSchema validation rules asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a json schema New multiFormatSchema validation rules asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a json schema New multiFormatSchema validation rules asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a json schema New multiFormatSchema validation rules asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a json schema Rollback AnySchema and AvroSchema asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
…erencing a json schema Rollback AnySchema and AvroSchema asyncapi#494 asyncapi/jasyncapi-idea-plugin#49
Describe the bug.
AsyncAPI v3 shows warning in Studio and IntelliJ plugin when referencing a json schema file. The actual AsyncAPI document is rendered correctly but the warning in the editor persists.
Expected behavior
AsyncAPI v3 should be able to reference external json schema files without warnings.
Screenshots
How to Reproduce
Please rename the attached AsyncAPI v3 doc
test.txt
totest.yaml
test.txt
invoice_posted.schema.json
🥦 Browser
None
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
None
The text was updated successfully, but these errors were encountered: