ru-openapi-cg 0.1.4

A powerful OpenAPI 3.0 code generator written in Rust that supports multiple programming languages and frameworks
{
  "openapi": "3.0.0",
  "info": {
    "title": "Complex API",
    "version": "1.0.0"
  },
  "paths": {
    "/api/users/{userId}/posts/{postId}": {
      "get": {
        "operationId": "get_user_post",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "postId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "include_comments",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/special/test_with_special_chars/{encoded_param}": {
      "get": {
        "operationId": "test_special_chars_encoding",
        "parameters": [
          {
            "name": "encoded_param",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  }
}