-
-
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
[FEATURE REQUEST] Support flatbuffers schema files #163
Comments
I heard about flatbuffers once but didn't pay so much attention because nobody ever told me they were using it. I do see the value of having support but we're a small team and already have a lot to do in front of us. You're right, using it on version 2.0.0 would be possible because we don't restrict payloads to any language. However, there needs to be tooling supporting it. The only piece I see missing is a flatbuffers->jsonschema converter. Would you like to participate in the development of the flatbuffers support? |
There is the possibility to convert a flatbuffers fbl fbs file to a JSON schema file by specifying the option --jsonschema when running the flatbuffers compiler (flatc). |
Yeah, I see this is possible using the CLI, but we'd need to have it as a separate library for the parser to understand it. I see it's C++ and we're currently writing the parser in Go. It shouldn't be very different though. We can do it ourselves but again, it would be much appreciated if you could help to contributing to this effort. Even if it's just created such library so we can afterward create the schema parser. |
Are there any guidelines or specifications about how such a library should look like? |
Not really. I was talking about a generic library that's capable of transforming flatbuffers to jsonschema. Something totally unrelated to AsyncAPI but that AsyncAPI would use. You can take as an example existing libraries to translate from protobuf to jsonschema, for example. |
I guess a Java library would be of no use for you? Since I'm very deep in the Java world, I am probably able to implement it in Java very quickly. |
I hear ya! Neither we have experience in Go but we chose it because it's good compiling to C libraries, performant, and its ever-growing community. So, in short, yes, it has to be written in Go. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@fmvilas sorry for necroposting but my question is the same: Does AsyncAPI now support Flatbuffers? We are investigating the possibility to describe our event-based API with AsyncAPI, and our underlying format will be Flatbuffers. |
@zamazan4ik you might want to take a look at #622. I think that will enable your use-case. For all schemas, protobuf, Flatbuffers, whatever you need. |
Thanks! It seems like exactly what I need. I just suggest don't close this issue until the proposal will not be merged. I think it will be more convenient for other people with the same question. |
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 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 ❤️ |
@zamazan4ik we do have now support for protobuf but not for flatbuffers. I see this issue has not have any activity since time ago, so I'm gonna close it as won't do for now. Please open a new request or RFC if you believe support for flatbuffers should happen. Thanks. |
It would be nice to be able to document flatbuffers payload using AsyncApi.
I think this shouldn't be a big deal, because protobuf (which is similar to flatbuffers) support is already announced for 2.0.
Have you already thought about this?
The text was updated successfully, but these errors were encountered: