Optional
__typeType metadata for compile-time type safety.
This optional property maintains a reference to the original TypeScript type that was used to generate this schema unit. It provides compile-time type information without affecting the runtime JSON representation.
Benefits of type metadata:
The property is intentionally marked as optional and undefined to ensure it doesn't appear in serialized JSON output while preserving type information at compile time.
Reusable schema components for OpenAPI v3.0.
Contains all reusable schema definitions and components that may be referenced by the main schema. This enables schema modularity and prevents duplication when the same types are used in multiple places within the schema definition.
Component categories include:
All components follow OpenAPI v3.0 format restrictions and capabilities.
The primary JSON schema definition.
Contains the main JSON schema that represents the TypeScript type specified
in the Type
template parameter. This schema follows OpenAPI v3.0 format
and may contain references to reusable components defined in the
components property.
The schema structure includes:
Example schema reference: { "$ref": "#/components/schemas/NestedType" }
OpenAPI specification version identifier.
Always set to "3.0" to indicate this schema unit uses OpenAPI v3.0 format and adheres to its specific constraints and limitations.
JSON Schema unit formatted for OpenAPI v3.0 specification.
This interface represents a single JSON schema unit that complies with OpenAPI v3.0 standards. It contains one schema definition along with any reusable components that the schema references, formatted according to OpenAPI v3.0 constraints and limitations.
OpenAPI v3.0 characteristics affecting this unit:
Use cases for v3.0: