Swagger Codegen · Schema

Swagger Codegen Generation Request

Schema for a Swagger Codegen generation request, used to generate client SDKs, server stubs, or documentation from an OpenAPI specification.

Client LibrariesCode GenerationOpen-SourceOpenAPISDK

Properties

Name Type Description
lang string Generator language/framework identifier (e.g., python, java, typescript-axios, spring)
type string Generator type
codegenVersion string Codegen version — V2 for OpenAPI 2.x specs, V3 for OpenAPI 3.x
spec object Inline OpenAPI specification as a JSON object
specURL string URL to a remote OpenAPI specification file
options object Language-specific generation options
View JSON Schema on GitHub

JSON Schema

swagger-codegen-generation-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/swagger-codegen/json-schema/swagger-codegen-generation-request-schema.json",
  "title": "Swagger Codegen Generation Request",
  "description": "Schema for a Swagger Codegen generation request, used to generate client SDKs, server stubs, or documentation from an OpenAPI specification.",
  "type": "object",
  "required": ["lang"],
  "properties": {
    "lang": {
      "type": "string",
      "description": "Generator language/framework identifier (e.g., python, java, typescript-axios, spring)"
    },
    "type": {
      "type": "string",
      "enum": ["CLIENT", "SERVER", "DOCUMENTATION", "CONFIG"],
      "description": "Generator type"
    },
    "codegenVersion": {
      "type": "string",
      "enum": ["V2", "V3"],
      "default": "V3",
      "description": "Codegen version — V2 for OpenAPI 2.x specs, V3 for OpenAPI 3.x"
    },
    "spec": {
      "type": "object",
      "description": "Inline OpenAPI specification as a JSON object",
      "additionalProperties": true
    },
    "specURL": {
      "type": "string",
      "format": "uri",
      "description": "URL to a remote OpenAPI specification file"
    },
    "options": {
      "type": "object",
      "description": "Language-specific generation options",
      "properties": {
        "packageName": { "type": "string" },
        "packageVersion": { "type": "string" },
        "groupId": { "type": "string" },
        "artifactId": { "type": "string" },
        "modelPackage": { "type": "string" },
        "apiPackage": { "type": "string" },
        "npmName": { "type": "string" },
        "npmVersion": { "type": "string" },
        "hideGenerationTimestamp": { "type": "boolean" }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/swagger-codegen-generation-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.