TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: F# Server stub generator for Azure functions

2 pointsby wing328hkover 5 years ago
4 months after we added the F# Giraffe server stub generator to OpenAPI Generator (https:&#x2F;&#x2F;twitter.com&#x2F;oas_generator&#x2F;status&#x2F;1125309026558926848), we&#x27;re glad to see another F# server stub generator for Azure Functions by the same author: Nick Fisher (https:&#x2F;&#x2F;twitter.com&#x2F;NickFisherAU)<p>To generate the F# server stub for Azure Functions given an OpenAPI&#x2F;Swagger specification file, please follow 3 simple steps below:<p>1. Download the Java JAR (https:&#x2F;&#x2F;oss.sonatype.org&#x2F;content&#x2F;repositories&#x2F;snapshots&#x2F;org&#x2F;openapitools&#x2F;openapi-generator-cli&#x2F;4.1.3-SNAPSHOT&#x2F;openapi-generator-cli-4.1.3-20190924.112244-39.jar)<p>2. Rename the JAR as &quot;openapi-generator-cli.jar&quot;<p>3. Run the following command to generate server stub for F#&#x2F;Azure functions for the Petstore API (https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;OpenAPITools&#x2F;openapi-generator&#x2F;master&#x2F;modules&#x2F;openapi-generator&#x2F;src&#x2F;test&#x2F;resources&#x2F;2_0&#x2F;petstore.yaml):<p>Mac&#x2F;Linux:<p>$ java -jar openapi-generator-cli.jar generate -g fsharp-functions -i https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;OpenAPITools&#x2F;openapi-generator&#x2F;master&#x2F;modules&#x2F;openapi-generator&#x2F;src&#x2F;test&#x2F;resources&#x2F;2_0&#x2F;petstore.yaml -o &#x2F;var&#x2F;tmp&#x2F;fsharp-functions&#x2F;<p>Windows:<p>$ java -jar openapi-generator-cli.jar generate -g fsharp-functions -i https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;OpenAPITools&#x2F;openapi-generator&#x2F;master&#x2F;modules&#x2F;openapi-generator&#x2F;src&#x2F;test&#x2F;resources&#x2F;2_0&#x2F;petstore.yaml -o C:\tmp\fsharp-functions<p>If you&#x27;ve any feedback or question, please let us know via https:&#x2F;&#x2F;github.com&#x2F;OpenAPITools&#x2F;openapi-generator&#x2F;issues&#x2F;new<p>Thanks again for the new generator by Nick Fisher (https:&#x2F;&#x2F;twitter.com&#x2F;NickFisherAU)<p>Ref: https:&#x2F;&#x2F;github.com&#x2F;OpenAPITools&#x2F;openapi-generator&#x2F;pull&#x2F;3933

no comments

no comments