SwaggerV2 contains TypeScript type definitions for Swagger v2.0 (OpenAPI
v2) documents. Used for parsing legacy Swagger specifications. For a
normalized format that unifies all OpenAPI versions, use OpenApi.
Key differences from OpenAPI v3.x:
Uses definitions instead of components.schemas
Body parameters use in: "body" with schema property
Swagger v2.0 specification types.
SwaggerV2contains TypeScript type definitions for Swagger v2.0 (OpenAPI v2) documents. Used for parsing legacy Swagger specifications. For a normalized format that unifies all OpenAPI versions, use OpenApi.Key differences from OpenAPI v3.x:
definitionsinstead ofcomponents.schemasin: "body"withschemapropertyrequestBody,oneOf,anyOf, ornullablehost+basePathinstead ofserversAuthor
Jeongho Nam - https://github.com/samchon