How do I generate an Ada language server stub?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do I generate an Ada language server stub?
I saw on your GitHub that the Ada language is supported by the Codegen tool. How do I choose Ada to generate a server code stub?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@AdaDaddy
As far as I know, SwaggerHub does not include ADA in its language support for Client/Server generation (refer to this page for further details).
In my company, they are using codegen-cli.
I am not sure about the exact syntax and I never tried it myself but I found these examples (swagger 2.0):
Client generation:
java -jar swagger-codegen-cli.jar generate -l ada -i CalcAndSearch.yaml \
-DprojectName=SeriesLaunch --model-package PackagingOne
Server generation:
java -jar swagger-codegen-cli.jar generate -l ada-north-srv -i CalcAndSearch.yaml \
-DprojectName=SeriesLaunch --model-package PackagingOne
We will be happy to get this option from SwaggerHub as well 😉
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm especially stayed aware of the article and I will get many benefits from it. Subsequently, thank you for sharing it.
@AdaDaddy wrote:I saw on your GitHub that the Ada language is supported by the Codegen tool. How do I choose Ada to generate a server code stub?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have found https://github.com/stcarrez/swagger-ada which contains a tutorial at https://github.com/stcarrez/swagger-ada/blob/master/docs/Tutorial.md .
I am about to try this method.
