Q: what do you use to generate code from an OpenAPI spec

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/dotnet

Our great sponsors
  • talent.io - Download talent.io’s Tech Salary Report
  • Scout APM - Truly a developer’s best friend
  • SonarLint - Clean code begins in your IDE with SonarLint
  • openapi-generator

    OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)

    What are you using for code generation from an OpenAPI spec? I was using openapi-codegen but, due to this bug in essence marking all fields as required, I consider it completely broken. There's also the issue of not supporting allOf and OneOf in the spec.

  • swagger-editor

    Swagger Editor

    The spec is valid according to both https://editor.swagger.io/ and https://apitools.dev/swagger-parser/online/# I believe that the use of "allOf" and "oneOf" to model polymorphic responses is causing it. But it is included in the OpenAPI Spec, so we can't fault the spec in this case.

  • talent.io

    Download talent.io’s Tech Salary Report. Median salaries, most in-demand technologies, state of the remote work... all you need to know your worth on the market by tech recruitment platform talent.io

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts