Skip to content
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

Better support for custom attributes #16

Open
AL333Z opened this issue May 28, 2021 · 0 comments
Open

Better support for custom attributes #16

AL333Z opened this issue May 28, 2021 · 0 comments

Comments

@AL333Z
Copy link
Owner

AL333Z commented May 28, 2021

Currently, we're supporting custom attributes with a syntax that is way too inconvenient.
E.g.:

            id:
              type: string
              format: uuid
              x-custom-attributes:
                x-protobuf-index:
                  type: integer
                  value: 1

Having something like this would be preferable:

            id:
              type: string
              format: uuid
              x-protobuf-index: 1

This should be done in a generic way (e.g. all the attributes starting with 'x-'..) without polluting the AsyncApi schema, the tricky part is how the infer the right type for the value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant