-
Notifications
You must be signed in to change notification settings - Fork 33
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
Generating Go code for the API server #30
Comments
Also something that could be achievable is to allow to generate the schema from Go code. |
+1 |
+1 It would be great to split this package in two parts. First, a generic JSON Schema implementation, then the client code generator. That would allow people to easily reuse the first part to generate server implementations. |
FYI, there's a new project called |
@ernesto-jimenez As far as I can see, though, |
@KellerFuchs |
@ernesto-jimenez Yes, but this doesn't cover at all implementing an existing Hyper-Schema, or simply wanting to model the API directly during the design phase. |
schematic
works nicely when creating a client.I think it might be cool to consider generating code for the server too.
The bare minimum would be generating the response structs to serialize responses.
A more ambitious goal would be to generate the main boilerplate to serve the HTTP API: http handlers, helpers to parse requests and render responses, etc.
Maybe even doing something like this:
The text was updated successfully, but these errors were encountered: