-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Handle additionals attributes in asvc schema declaration #18
Comments
This issue has been automatically marked as stale because it has not had recent activity 😴 |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
@M3lkior is this one still valid? |
Yes. |
@M3lkior something you think you can pick up 😉 |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
@M3lkior Can you expand on this a bit, please? I'm curious exactly what you mean. Are you saying that the Avro specification explicitly tolerates additional attributes that aren't defined in the spec? Or that some specific tooling based on Avro tolerates unexpected attributes? Or something else? |
@dalelane I think that @M3lkior meant that directly Avro tolerates them and actually not just only tolerates them, but also provides official support at least via Java Reflect API which allows you to define them, here is an example from our project: If you accidentially specify in there some reserved |
Yes this is exactly what i want to explain. The idea behind this capability is to permit displaying additional fields in the generated docs ; like the Given this kind of specification (which not break the AVRO maven plugin for example)
Would allow the parser to display the |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
I tried to find some answers in Avro spec documentation but failed. I could not find any information about how they approach additional attributed, could not find a JSON Schema for the spec too. Do you know how to contact Avro folks? do they use Slack or something? |
@derberg Is not that mentioned at the beginning of Avro spec?
No contacts to Avro folks so far, but maybe @iemejia could confirm, he is quite regular recent committer. 😄 |
@ITman1 it does sound like that but I'm not native speaker and would prefer to see JSON Schema with |
Ok, I finally found one here https://json.schemastore.org/avro-avsc.json I do not see |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
@derberg i start working on this feature this week for information |
- supports of required fields: required fields are field without default value or without a union containing the 'null' element - brings supports for additional attributes in avro file. See the README.MD for the list of supported attributes - also add the format precision for the double and float type by setting the format attribute in the json definition Close asyncapi#18
- supports of required fields: required fields are field without default value or without a union containing the 'null' element - brings supports for additional attributes in avro file. See the README.MD for the list of supported attributes - also add the format precision for the double and float type by setting the format attribute in the json definition Closes asyncapi#17,asyncapi#18
i work on them as hacktoberfest issue :) |
- supports of required fields: required fields are field without default value or without a union containing the 'null' element - brings supports for additional attributes in avro file. See the README.MD for the list of supported attributes - also add the format precision for the double and float type by setting the format attribute in the json definition Closes asyncapi#17,asyncapi#18
- supports of required fields: required fields are field without default value or without a union containing the 'null' element - brings supports for additional attributes in avro file. See the README.MD for the list of supported attributes - also add the format precision for the double and float type by setting the format attribute in the json definition Closes asyncapi#17,asyncapi#18
🎉 This issue has been resolved in version 0.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Reason/Context
Please try answering few of those questions
The Avro specification is limited by a restricted attributes list in field declaration.
For example, the avro spec not handle
example
,min
ormax
attributes but it is possible to set those attributes in avro specification without breaking the declaration.I think that the avro-parser should be consider the additional attributes matching with the async api specification like
example
,min
andmax
for number, etcBy considering those fields, the generated files (HTML for example) should handle those infomations and display them in the generated template (like example values on attributes by example. Today, all values are set to null when using asvc files)
I use avro specification and html-template to generated AsyncApi documentations in my organization and it could be useful to display those informations.
Description
Please try answering few of those questions
Handle additional attributes, drived by the AsyncAPI specification
Nop
Check if the avro specification contains the following attributes, and include them in the JSON schema if true :
The text was updated successfully, but these errors were encountered: