3 ms·
Show HN: Generate F# Giraffe server stub using OpenAPI Generator in 3 steps
Hi all,
We've just added an F# Giraffe server stub generator (beta) to the OpenAPI Generator project (https://github.com/OpenAPITools/openapi-generator https://github.com/OpenAPITools/openapi-generator) and would appreciate if you can try it out and let us know if you've any feedback or question for us (http://github.com/OpenAPITools/openapi-generator/issues/new http://github.com/OpenAPITools/openapi-generator/issues/new). To try it out, just follow 3 steps:
1. Download the Java JAR (https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/4.0.0-SNAPSHOT/openapi-generator-cli-4.0.0-20190506.150008-621.jar https://oss.sonatype.org/content/repositories/snapshots/org/...)
2. Rename the JAR as "openapi-generator-cli.jar"
3. Run the following command to generate a F# Giraffe server stub for Petstore API (https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml https://raw.githubusercontent.com/OpenAPITools/openapi-gener...):
Mac/Linux:
- java -jar openapi-generator-cli.jar generate -g fsharp-giraffe-server -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml https://raw.githubusercontent.com/OpenAPITools/openapi-gener... -o /var/tmp/fsharp-giraffe-petstore/
Windows:
- java -jar openapi-generator-cli.jar generate -g fsharp-giraffe-server -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml https://raw.githubusercontent.com/OpenAPITools/openapi-gener... -o C:\temp\fsharp-giraffe-petstore
I hope you will find the new generator useful.
A special thanks to Nick Fisher (founder of https://Lexico.IO https://Lexico.IO) who contributes the generator.
Thanks,
William