-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
[2.0.0] Circumventing the schema parsing #683
Comments
If you wanna add new method, you need to update API there https://github.com/asyncapi/parser-api/blob/3a0c511d010c51d8632efb9a74cbfc77244335a7/docs/v1.md#message (you can make suggestion here asyncapi/parser-api#71) and you can create PR with new method. However I think that
if you want to use a schema data in an easy way then it's better to have one interface for it - generating models, generating documentation, validating payloads etc is much easier when you base it on JSON Schema and not on a dozen formats. Of course if someone wants to operate on the original format should can, but this is not the most common use case. |
Is that the dereferenced payload model?
Yea that is true, it does make it easier to work with in the basic use-cases. I can't recall, do you need to provide a schema parser for you to access the raw schema and the parser to work? (I can check later) |
If it's JSON Schema, yes, it is.
What do you have in mind? If you have Avro format then you must have a parser given to the parser for Avro schemas, otherwise the parser will throw you an error and the schema is unsupported. |
@jonaslagoni is this issue still applying? |
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 IMHO |
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 ❤️ |
Reason/Context
For the message payload, at times it will NOT be desired to convert a different schema format into the
SchemaInterface
, but rather have access to the raw schema or a specific format to interact with the native format.In the old API you had
message.originalPayload()
but that is no longer available.I also want to question whether the use-case is really there to still keep converting all message payloads into
SchemaInterface
? What would be the main reason? Abstraction or?The text was updated successfully, but these errors were encountered: