-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
How do we define expected schemaFormat
behavior in tooling?
#656
Comments
formatSchema
behavior in tooling?formatSchema
behavior in tooling?
Maybe this is something for https://github.com/asyncapi/parser-api to define? 🤔 |
To be more specific, do you mean the conventions of how Avro/RAML/etc should be converted to JSON Schema, yes? |
Not necessarily to JSON Schema, but how should tooling handle such logic in general. Should it even be converted to JSON Schema, or should it be something different? This is especially needed when parsers in multiple languages are needed to ensure consistency between them. |
Ok, I understand, thanks! Atm ParserJS exactly converts the custom schemas to the AsyncAPI Schema Object (which is superset od JSON Schema, but it's not the same), so maybe we should go with that solution also in other implementations for another languages. However, in order to be consistent, we should have instructions on how to convert a given custom schema into an AsyncAPI Schema Object, i.e. what representation of the Raml, Avro etc keywords should be in the Schema Object - and this is where the |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Still relevant |
formatSchema
behavior in tooling?schemaFormat
behavior in tooling?
@derberg Could you reopen it? |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
This issue is triggered by discussion in: #622
How can we define a standard behavior (should we even define it?), to a degree that tooling can understand and implement "expected" behavior?
I.e. if you are a maintainer on a parser, what do you do if you encounter a JSON Schema and a Raml schema that the message can follow? Especially if we talk about a mix such as what @GeraldLoeffler highlights in #622 (comment).
In our JS Parser we handle such different formats, by converting all of them to JSON Schema. However, this is highly up to interpretation as to how to achieve this.
There are no standard conventions, tooling can follow to ensure that users of the spec get the "expected" output.
Related issues
$schema
and messageschemaFormat
#655The text was updated successfully, but these errors were encountered: