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

Broken spec? #13

Open
3nigm4 opened this issue Nov 6, 2023 · 1 comment
Open

Broken spec? #13

3nigm4 opened this issue Nov 6, 2023 · 1 comment
Assignees

Comments

@3nigm4
Copy link

3nigm4 commented Nov 6, 2023

I tried multiple generators (https://github.com/asyncapi/nodejs-ws-template#cli and https://github.com/pearmaster/asyncapi-codegen) to generate the async-api. I just cloned this repo and tried to generate the s2-rm.yaml from the s2-asyncapi folder. The generators all failed. I think you miss "type: string" before the currency enum.

It would be nice if you could add instructions to the readme on how you generate the code from your end so that people know how the spec was tested.

@wilcowijbrandi
Copy link
Member

Hi, thanks for taking an interest in S2!

Although AsyncAPI seems the best fit for what we want to specify here (JSON messages over a WebSocket), we've noticed that the OpenAPI specification itself is still being changed quite often and that the code generators are not yet of a very high quality. That is why we ourselves work with the JSON Schema's or even the OpenAPI specification (and ignore the REST stuff and implement the WebSocket ourselves), since they are much more mature.

The easiest way to get started is to use the s2-python module... if you're planning to use Python. For other programming languages I would advise you to start with JSON Schema.

Having said that, I agree the README and the OpenAPI specification can be improved. I'll keep this issue open until these points are addressed.

Also don't forget to check out the s2-analyzer project.

Cheers,
Wilco

@wilcowijbrandi wilcowijbrandi self-assigned this Nov 14, 2023
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

2 participants