Optional
__typesType metadata for compile-time type tracking.
This optional property stores the original TypeScript types that were used to generate the JSON schemas. It provides compile-time type safety and enables better development experience without affecting runtime behavior.
Benefits include:
Reusable schema components for OpenAPI v3.1.
Contains reusable schema definitions and other components following the OpenAPI v3.1 specification. This structure is similar to v3.0 but supports enhanced JSON Schema features and improved type definitions.
Components include:
The emended OpenAPI v3.1 format used here removes ambiguous expressions and standardizes certain patterns for better tooling compatibility.
Array of generated JSON schemas with v3.1 enhancements.
Contains JSON schema definitions that take advantage of OpenAPI v3.1's enhanced capabilities. These schemas can express more complex TypeScript types accurately, including:
Each schema corresponds to one of the input TypeScript types and may reference components defined in the components property.
OpenAPI specification version identifier.
Always set to "3.1" to indicate this collection uses OpenAPI v3.1 schema format with enhanced JSON Schema compatibility.
JSON Schema collection formatted for OpenAPI v3.1 specification.
This interface represents a collection of JSON schemas that comply with OpenAPI v3.1 standards, which provide enhanced JSON Schema compatibility and support for modern JSON Schema features. OpenAPI v3.1 is based on JSON Schema Draft 2020-12 and offers significant improvements over v3.0.
Key advantages of v3.1: