-
Notifications
You must be signed in to change notification settings - Fork 20
apidom-ls / apidom - Default to schema element for message payload when empty node #1076
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
Comments
slightly related to #1075 |
#1113 replaces empty payload with asyncapi One thing to be possibly implemented (I'll add a PR) would be to default to SchemaElement also for "almost compatible" schema formats, specifically Json Schema Draft 07. While The more complex discussion not in scope of this ticket involves nesting and extending namespaces, as well as parsing / deref them. Not sure if we have a ticket about this, in case we can create one and see from there |
This is only true in specific use-cases. The problem is that AsyncAPI Schema Object replaces every object containing |
@char0n I agree and look forward for #1075 (comment), as it will address various areas. In scope of my previous comment, applying what mentioned in #1075 would probably address the above also. |
@frantuma commented on Mon Jan 17 2022
Currently an "empty" payload is not parsed as
schema
element usingrefractorPluginReplaceEmptyElement
as done for other empty elements. Goal of this ticket is applying the same mechanism also to payload.Note. The possible reason for this behavior is
payload
type beingany
therefore admitting also nonschema
types.The text was updated successfully, but these errors were encountered: