Skip to content

OpenAPI support ​

Check what the client generator supports for each OpenAPI version, feature and profile. The generator turns the validation keywords of a schema into client validation, whichever tool produced the document. A golem mode SDK hands them to the models job, which compiles them with your models.

Feature support ​

The table shows one row for each feature, for one OpenAPI version and one set of generation settings. It opens on OpenAPI 3.1 with the MobX extension off and validation on.

  • Choose the OpenAPI version and the generation settings above the table. The rows change with your choice.
  • The small label under a feature name is its surface: runtime behavior, TypeScript types or generated metadata. A feature with more than one surface has one row for each surface.
  • The support column gives the status. The meaning of each status is in the list under the table.
  • The last column lists what to expect, such as a condition or a setting that the row needs.
  • Type a word in "Find a feature" to show only the rows that match.
FeatureSupportWhat to expect
OpenAPI document validationRuntime behaviorSupported
  • Accepts OpenAPI 3.1 and 3.2 documents; OpenAPI 3.0 is rejected. Input checking remains enabled when runtime validation is off.
OpenAPI document validationRuntime behaviorSupported
  • Accepts OpenAPI 3.1 and 3.2 documents; OpenAPI 3.0 is rejected. Input checking remains enabled when runtime validation is off.
OpenAPI document validationRuntime behaviorSupported
  • Accepts OpenAPI 3.1 and 3.2 documents; OpenAPI 3.0 is rejected. Input checking remains enabled when runtime validation is off.
OpenAPI document validationRuntime behaviorSupported
  • Accepts OpenAPI 3.1 and 3.2 documents; OpenAPI 3.0 is rejected. Input checking remains enabled when runtime validation is off.
OpenAPI document validationRuntime behaviorSupported
  • Accepts OpenAPI 3.1 and 3.2 documents; OpenAPI 3.0 is rejected. Input checking remains enabled when runtime validation is off.
OpenAPI document validationRuntime behaviorSupported
  • Accepts OpenAPI 3.1 and 3.2 documents; OpenAPI 3.0 is rejected. Input checking remains enabled when runtime validation is off.
OpenAPI document validationRuntime behaviorSupported
  • Accepts OpenAPI 3.1 and 3.2 documents; OpenAPI 3.0 is rejected. Input checking remains enabled when runtime validation is off.
OpenAPI document validationRuntime behaviorSupported
  • Accepts OpenAPI 3.1 and 3.2 documents; OpenAPI 3.0 is rejected. Input checking remains enabled when runtime validation is off.
HTTP client methodsRuntime behaviorSupported
  • Generates methods for outgoing HTTP requests. Callbacks and webhooks have types but no server implementation.
HTTP client methodsRuntime behaviorSupported
  • Generates methods for outgoing HTTP requests. Callbacks and webhooks have types but no server implementation.
HTTP client methodsRuntime behaviorSupported
  • Generates methods for outgoing HTTP requests. Callbacks and webhooks have types but no server implementation.
HTTP client methodsRuntime behaviorSupported
  • Generates methods for outgoing HTTP requests. Callbacks and webhooks have types but no server implementation.
HTTP client methodsRuntime behaviorSupported
  • Generates methods for outgoing HTTP requests. Callbacks and webhooks have types but no server implementation.
HTTP client methodsRuntime behaviorSupported
  • Generates methods for outgoing HTTP requests. Callbacks and webhooks have types but no server implementation.
HTTP client methodsRuntime behaviorSupported
  • Generates methods for outgoing HTTP requests. Callbacks and webhooks have types but no server implementation.
HTTP client methodsRuntime behaviorSupported
  • Generates methods for outgoing HTTP requests. Callbacks and webhooks have types but no server implementation.
Schema and operation typesTypeScript typesSupported
  • Structural TypeScript types do not replace runtime JSON Schema evaluation.
Schema and operation typesTypeScript typesSupported
  • Structural TypeScript types do not replace runtime JSON Schema evaluation.
Schema and operation typesTypeScript typesSupported
  • Structural TypeScript types do not replace runtime JSON Schema evaluation.
Schema and operation typesTypeScript typesSupported
  • Structural TypeScript types do not replace runtime JSON Schema evaluation.
Schema and operation typesTypeScript typesSupported
  • Structural TypeScript types do not replace runtime JSON Schema evaluation.
Schema and operation typesTypeScript typesSupported
  • Structural TypeScript types do not replace runtime JSON Schema evaluation.
Schema and operation typesTypeScript typesSupported
  • Structural TypeScript types do not replace runtime JSON Schema evaluation.
Schema and operation typesTypeScript typesSupported
  • Structural TypeScript types do not replace runtime JSON Schema evaluation.
Separate request and response typesTypeScript typesPartial
  • Request and response types follow readOnly and writeOnly on properties, resolved references and unconditional allOf branches. Conditional annotations may not narrow the types.
Separate request and response typesTypeScript typesPartial
  • Request and response types follow readOnly and writeOnly on properties, resolved references and unconditional allOf branches. Conditional annotations may not narrow the types.
Separate request and response typesTypeScript typesPartial
  • Request and response types follow readOnly and writeOnly on properties, resolved references and unconditional allOf branches. Conditional annotations may not narrow the types.
Separate request and response typesTypeScript typesPartial
  • Request and response types follow readOnly and writeOnly on properties, resolved references and unconditional allOf branches. Conditional annotations may not narrow the types.
Separate request and response typesTypeScript typesPartial
  • Request and response types follow readOnly and writeOnly on properties, resolved references and unconditional allOf branches. Conditional annotations may not narrow the types.
Separate request and response typesTypeScript typesPartial
  • Request and response types follow readOnly and writeOnly on properties, resolved references and unconditional allOf branches. Conditional annotations may not narrow the types.
Separate request and response typesTypeScript typesPartial
  • Request and response types follow readOnly and writeOnly on properties, resolved references and unconditional allOf branches. Conditional annotations may not narrow the types.
Separate request and response typesTypeScript typesPartial
  • Request and response types follow readOnly and writeOnly on properties, resolved references and unconditional allOf branches. Conditional annotations may not narrow the types.
Request and response validationRuntime behaviorSupported
  • Validation is emitted and used only for profiles with validation enabled. A schema format that golem does not implement stops generation, or is skipped with a warning when unknownFormats is warn.
Request and response validationRuntime behaviorSupported
  • Validation is emitted and used only for profiles with validation enabled. A schema format that golem does not implement stops generation, or is skipped with a warning when unknownFormats is warn.
Request and response validationRuntime behaviorSupported
  • Validation is emitted and used only for profiles with validation enabled. A schema format that golem does not implement stops generation, or is skipped with a warning when unknownFormats is warn.
Request and response validationRuntime behaviorSupported
  • Validation is emitted and used only for profiles with validation enabled. A schema format that golem does not implement stops generation, or is skipped with a warning when unknownFormats is warn.
Request and response validationRuntime behaviorN/A
  • Validation is intentionally disabled for this profile; protocol codecs still run.
Request and response validationRuntime behaviorN/A
  • Validation is intentionally disabled for this profile; protocol codecs still run.
Request and response validationRuntime behaviorN/A
  • Validation is intentionally disabled for this profile; protocol codecs still run.
Request and response validationRuntime behaviorN/A
  • Validation is intentionally disabled for this profile; protocol codecs still run.
JSON, forms, empty and binary bodiesRuntime behaviorSupported
  • Structured media types outside the built-in codecs require an exact media-type codec.
JSON, forms, empty and binary bodiesRuntime behaviorSupported
  • Structured media types outside the built-in codecs require an exact media-type codec.
JSON, forms, empty and binary bodiesRuntime behaviorSupported
  • Structured media types outside the built-in codecs require an exact media-type codec.
JSON, forms, empty and binary bodiesRuntime behaviorSupported
  • Structured media types outside the built-in codecs require an exact media-type codec.
JSON, forms, empty and binary bodiesRuntime behaviorSupported
  • Structured media types outside the built-in codecs require an exact media-type codec.
JSON, forms, empty and binary bodiesRuntime behaviorSupported
  • Structured media types outside the built-in codecs require an exact media-type codec.
JSON, forms, empty and binary bodiesRuntime behaviorSupported
  • Structured media types outside the built-in codecs require an exact media-type codec.
JSON, forms, empty and binary bodiesRuntime behaviorSupported
  • Structured media types outside the built-in codecs require an exact media-type codec.
Custom media types and codecsRuntime behaviorOpt-in
  • Custom encoders, decoders, serializers, and stream framers are caller-supplied per media type (exact key, then type/subtype, then */*).
Custom media types and codecsRuntime behaviorOpt-in
  • Custom encoders, decoders, serializers, and stream framers are caller-supplied per media type (exact key, then type/subtype, then */*).
Custom media types and codecsRuntime behaviorOpt-in
  • Custom encoders, decoders, serializers, and stream framers are caller-supplied per media type (exact key, then type/subtype, then */*).
Custom media types and codecsRuntime behaviorOpt-in
  • Custom encoders, decoders, serializers, and stream framers are caller-supplied per media type (exact key, then type/subtype, then */*).
Custom media types and codecsRuntime behaviorOpt-in
  • Custom encoders, decoders, serializers, and stream framers are caller-supplied per media type (exact key, then type/subtype, then */*).
Custom media types and codecsRuntime behaviorOpt-in
  • Custom encoders, decoders, serializers, and stream framers are caller-supplied per media type (exact key, then type/subtype, then */*).
Custom media types and codecsRuntime behaviorOpt-in
  • Custom encoders, decoders, serializers, and stream framers are caller-supplied per media type (exact key, then type/subtype, then */*).
Custom media types and codecsRuntime behaviorOpt-in
  • Custom encoders, decoders, serializers, and stream framers are caller-supplied per media type (exact key, then type/subtype, then */*).
Media types without a codecRuntime behaviorUnsupported
  • Provide a codec for structured media types without built-in support; otherwise the client call rejects when it needs that codec.
Media types without a codecRuntime behaviorUnsupported
  • Provide a codec for structured media types without built-in support; otherwise the client call rejects when it needs that codec.
Media types without a codecRuntime behaviorUnsupported
  • Provide a codec for structured media types without built-in support; otherwise the client call rejects when it needs that codec.
Media types without a codecRuntime behaviorUnsupported
  • Provide a codec for structured media types without built-in support; otherwise the client call rejects when it needs that codec.
Media types without a codecRuntime behaviorUnsupported
  • Provide a codec for structured media types without built-in support; otherwise the client call rejects when it needs that codec.
Media types without a codecRuntime behaviorUnsupported
  • Provide a codec for structured media types without built-in support; otherwise the client call rejects when it needs that codec.
Media types without a codecRuntime behaviorUnsupported
  • Provide a codec for structured media types without built-in support; otherwise the client call rejects when it needs that codec.
Media types without a codecRuntime behaviorUnsupported
  • Provide a codec for structured media types without built-in support; otherwise the client call rejects when it needs that codec.
Streaming response itemsRuntime behaviorN/A
  • Streaming with itemSchema requires OpenAPI 3.2.
Streaming response itemsRuntime behaviorN/A
  • Streaming with itemSchema requires OpenAPI 3.2.
Streaming response itemsRuntime behaviorN/A
  • Streaming with itemSchema requires OpenAPI 3.2.
Streaming response itemsRuntime behaviorN/A
  • Streaming with itemSchema requires OpenAPI 3.2.
Streaming response itemsRuntime behaviorSupported
  • Reads NDJSON, JSON-seq and SSE streams. Other framing requires a custom decoder.
Streaming response itemsRuntime behaviorSupported
  • Reads NDJSON, JSON-seq and SSE streams. Other framing requires a custom decoder.
Streaming response itemsRuntime behaviorSupported
  • Reads NDJSON, JSON-seq and SSE streams. Other framing requires a custom decoder.
Streaming response itemsRuntime behaviorSupported
  • Reads NDJSON, JSON-seq and SSE streams. Other framing requires a custom decoder.
Server-sent event fieldsRuntime behaviorN/A
  • Streaming with itemSchema requires OpenAPI 3.2.
Server-sent event fieldsRuntime behaviorN/A
  • Streaming with itemSchema requires OpenAPI 3.2.
Server-sent event fieldsRuntime behaviorN/A
  • Streaming with itemSchema requires OpenAPI 3.2.
Server-sent event fieldsRuntime behaviorN/A
  • Streaming with itemSchema requires OpenAPI 3.2.
Server-sent event fieldsRuntime behaviorSupported
  • Only protocol fields defined by the SSE envelope are surfaced; application payload decoding remains caller-owned.
Server-sent event fieldsRuntime behaviorSupported
  • Only protocol fields defined by the SSE envelope are surfaced; application payload decoding remains caller-owned.
Server-sent event fieldsRuntime behaviorSupported
  • Only protocol fields defined by the SSE envelope are surfaced; application payload decoding remains caller-owned.
Server-sent event fieldsRuntime behaviorSupported
  • Only protocol fields defined by the SSE envelope are surfaced; application payload decoding remains caller-owned.
Callbacks and webhooksTypeScript typesSupported
  • Generates types for incoming requests. Implement the handler in your server framework.
Callbacks and webhooksTypeScript typesSupported
  • Generates types for incoming requests. Implement the handler in your server framework.
Callbacks and webhooksTypeScript typesSupported
  • Generates types for incoming requests. Implement the handler in your server framework.
Callbacks and webhooksTypeScript typesSupported
  • Generates types for incoming requests. Implement the handler in your server framework.
Callbacks and webhooksTypeScript typesSupported
  • Generates types for incoming requests. Implement the handler in your server framework.
Callbacks and webhooksTypeScript typesSupported
  • Generates types for incoming requests. Implement the handler in your server framework.
Callbacks and webhooksTypeScript typesSupported
  • Generates types for incoming requests. Implement the handler in your server framework.
Callbacks and webhooksTypeScript typesSupported
  • Generates types for incoming requests. Implement the handler in your server framework.
Callbacks and webhooksRuntime behaviorN/A
  • The standalone client does not receive or dispatch callbacks and webhooks.
Callbacks and webhooksRuntime behaviorN/A
  • The standalone client does not receive or dispatch callbacks and webhooks.
Callbacks and webhooksRuntime behaviorN/A
  • The standalone client does not receive or dispatch callbacks and webhooks.
Callbacks and webhooksRuntime behaviorN/A
  • The standalone client does not receive or dispatch callbacks and webhooks.
Callbacks and webhooksRuntime behaviorN/A
  • The standalone client does not receive or dispatch callbacks and webhooks.
Callbacks and webhooksRuntime behaviorN/A
  • The standalone client does not receive or dispatch callbacks and webhooks.
Callbacks and webhooksRuntime behaviorN/A
  • The standalone client does not receive or dispatch callbacks and webhooks.
Callbacks and webhooksRuntime behaviorN/A
  • The standalone client does not receive or dispatch callbacks and webhooks.
Links between operationsGenerated metadataSupported
  • Link targets and runtime expressions are emitted as metadata; application code evaluates them.
Links between operationsGenerated metadataSupported
  • Link targets and runtime expressions are emitted as metadata; application code evaluates them.
Links between operationsGenerated metadataSupported
  • Link targets and runtime expressions are emitted as metadata; application code evaluates them.
Links between operationsGenerated metadataSupported
  • Link targets and runtime expressions are emitted as metadata; application code evaluates them.
Links between operationsGenerated metadataSupported
  • Link targets and runtime expressions are emitted as metadata; application code evaluates them.
Links between operationsGenerated metadataSupported
  • Link targets and runtime expressions are emitted as metadata; application code evaluates them.
Links between operationsGenerated metadataSupported
  • Link targets and runtime expressions are emitted as metadata; application code evaluates them.
Links between operationsGenerated metadataSupported
  • Link targets and runtime expressions are emitted as metadata; application code evaluates them.
Conditional and negated schemasTypeScript typesPartial
  • TypeScript types cannot express all conditional and negated constraints. Enable runtime validation to enforce them.
Conditional and negated schemasTypeScript typesPartial
  • TypeScript types cannot express all conditional and negated constraints. Enable runtime validation to enforce them.
Conditional and negated schemasTypeScript typesPartial
  • TypeScript types cannot express all conditional and negated constraints. Enable runtime validation to enforce them.
Conditional and negated schemasTypeScript typesPartial
  • TypeScript types cannot express all conditional and negated constraints. Enable runtime validation to enforce them.
Conditional and negated schemasTypeScript typesPartial
  • TypeScript types cannot express all conditional and negated constraints. Enable runtime validation to enforce them.
Conditional and negated schemasTypeScript typesPartial
  • TypeScript types cannot express all conditional and negated constraints. Enable runtime validation to enforce them.
Conditional and negated schemasTypeScript typesPartial
  • TypeScript types cannot express all conditional and negated constraints. Enable runtime validation to enforce them.
Conditional and negated schemasTypeScript typesPartial
  • TypeScript types cannot express all conditional and negated constraints. Enable runtime validation to enforce them.
Remote schema referencesRuntime behaviorOpt-in
  • HTTPS references require explicit enablement, host allowlisting, and resource limits.
Remote schema referencesRuntime behaviorOpt-in
  • HTTPS references require explicit enablement, host allowlisting, and resource limits.
Remote schema referencesRuntime behaviorOpt-in
  • HTTPS references require explicit enablement, host allowlisting, and resource limits.
Remote schema referencesRuntime behaviorOpt-in
  • HTTPS references require explicit enablement, host allowlisting, and resource limits.
Remote schema referencesRuntime behaviorOpt-in
  • HTTPS references require explicit enablement, host allowlisting, and resource limits.
Remote schema referencesRuntime behaviorOpt-in
  • HTTPS references require explicit enablement, host allowlisting, and resource limits.
Remote schema referencesRuntime behaviorOpt-in
  • HTTPS references require explicit enablement, host allowlisting, and resource limits.
Remote schema referencesRuntime behaviorOpt-in
  • HTTPS references require explicit enablement, host allowlisting, and resource limits.
Optional generated modulesGenerated metadataSupported
  • Generates only the modules needed by your operations, models and selected MobX/validation settings.
Optional generated modulesGenerated metadataSupported
  • Generates only the modules needed by your operations, models and selected MobX/validation settings.
Optional generated modulesGenerated metadataSupported
  • Generates only the modules needed by your operations, models and selected MobX/validation settings.
Optional generated modulesGenerated metadataSupported
  • Generates only the modules needed by your operations, models and selected MobX/validation settings.
Optional generated modulesGenerated metadataSupported
  • Generates only the modules needed by your operations, models and selected MobX/validation settings.
Optional generated modulesGenerated metadataSupported
  • Generates only the modules needed by your operations, models and selected MobX/validation settings.
Optional generated modulesGenerated metadataSupported
  • Generates only the modules needed by your operations, models and selected MobX/validation settings.
Optional generated modulesGenerated metadataSupported
  • Generates only the modules needed by your operations, models and selected MobX/validation settings.
Sharing SDK models with frontend modelsGenerated metadataSupported
  • SDK and frontend generation must use the same MobX and validation settings.
Sharing SDK models with frontend modelsGenerated metadataSupported
  • SDK and frontend generation must use the same MobX and validation settings.
Sharing SDK models with frontend modelsGenerated metadataSupported
  • SDK and frontend generation must use the same MobX and validation settings.
Sharing SDK models with frontend modelsGenerated metadataSupported
  • SDK and frontend generation must use the same MobX and validation settings.
Sharing SDK models with frontend modelsGenerated metadataSupported
  • SDK and frontend generation must use the same MobX and validation settings.
Sharing SDK models with frontend modelsGenerated metadataSupported
  • SDK and frontend generation must use the same MobX and validation settings.
Sharing SDK models with frontend modelsGenerated metadataSupported
  • SDK and frontend generation must use the same MobX and validation settings.
Sharing SDK models with frontend modelsGenerated metadataSupported
  • SDK and frontend generation must use the same MobX and validation settings.
Response status and media selectionRuntime behaviorSupported
  • Protocol selection is active in every profile; a media mismatch does not fall through to another status.
Response status and media selectionRuntime behaviorSupported
  • Protocol selection is active in every profile; a media mismatch does not fall through to another status.
Response status and media selectionRuntime behaviorSupported
  • Protocol selection is active in every profile; a media mismatch does not fall through to another status.
Response status and media selectionRuntime behaviorSupported
  • Protocol selection is active in every profile; a media mismatch does not fall through to another status.
Response status and media selectionRuntime behaviorSupported
  • Protocol selection is active in every profile; a media mismatch does not fall through to another status.
Response status and media selectionRuntime behaviorSupported
  • Protocol selection is active in every profile; a media mismatch does not fall through to another status.
Response status and media selectionRuntime behaviorSupported
  • Protocol selection is active in every profile; a media mismatch does not fall through to another status.
Response status and media selectionRuntime behaviorSupported
  • Protocol selection is active in every profile; a media mismatch does not fall through to another status.
Simple header valuesRuntime behaviorSupported
  • Simple headers are literal; URI decoding is not applied.
Simple header valuesRuntime behaviorSupported
  • Simple headers are literal; URI decoding is not applied.
Simple header valuesRuntime behaviorSupported
  • Simple headers are literal; URI decoding is not applied.
Simple header valuesRuntime behaviorSupported
  • Simple headers are literal; URI decoding is not applied.
Simple header valuesRuntime behaviorSupported
  • Simple headers are literal; URI decoding is not applied.
Simple header valuesRuntime behaviorSupported
  • Simple headers are literal; URI decoding is not applied.
Simple header valuesRuntime behaviorSupported
  • Simple headers are literal; URI decoding is not applied.
Simple header valuesRuntime behaviorSupported
  • Simple headers are literal; URI decoding is not applied.
Cookie parameter styleRuntime behaviorN/A
  • The cookie style starts on 3.2; form-style cookies retain their existing encoding.
Cookie parameter styleRuntime behaviorN/A
  • The cookie style starts on 3.2; form-style cookies retain their existing encoding.
Cookie parameter styleRuntime behaviorN/A
  • The cookie style starts on 3.2; form-style cookies retain their existing encoding.
Cookie parameter styleRuntime behaviorN/A
  • The cookie style starts on 3.2; form-style cookies retain their existing encoding.
Cookie parameter styleRuntime behaviorSupported
  • The cookie style starts on 3.2; form-style cookies retain their existing encoding.
Cookie parameter styleRuntime behaviorSupported
  • The cookie style starts on 3.2; form-style cookies retain their existing encoding.
Cookie parameter styleRuntime behaviorSupported
  • The cookie style starts on 3.2; form-style cookies retain their existing encoding.
Cookie parameter styleRuntime behaviorSupported
  • The cookie style starts on 3.2; form-style cookies retain their existing encoding.
Tuple typesTypeScript typesPartial
  • Prefix positions and authored bounds are represented without undefined slots. Numeric length constraints beyond authored prefix positions remain runtime-only.
Tuple typesTypeScript typesPartial
  • Prefix positions and authored bounds are represented without undefined slots. Numeric length constraints beyond authored prefix positions remain runtime-only.
Tuple typesTypeScript typesPartial
  • Prefix positions and authored bounds are represented without undefined slots. Numeric length constraints beyond authored prefix positions remain runtime-only.
Tuple typesTypeScript typesPartial
  • Prefix positions and authored bounds are represented without undefined slots. Numeric length constraints beyond authored prefix positions remain runtime-only.
Tuple typesTypeScript typesPartial
  • Prefix positions and authored bounds are represented without undefined slots. Numeric length constraints beyond authored prefix positions remain runtime-only.
Tuple typesTypeScript typesPartial
  • Prefix positions and authored bounds are represented without undefined slots. Numeric length constraints beyond authored prefix positions remain runtime-only.
Tuple typesTypeScript typesPartial
  • Prefix positions and authored bounds are represented without undefined slots. Numeric length constraints beyond authored prefix positions remain runtime-only.
Tuple typesTypeScript typesPartial
  • Prefix positions and authored bounds are represented without undefined slots. Numeric length constraints beyond authored prefix positions remain runtime-only.
Discriminated model unionsRuntime behaviorPartial
  • oneOf/anyOf of component models with a discriminator decode to the selected variant model and reject unknown tags. Explicit mappings (reference or component name), implicit mappings by raw component name, and several values for one variant are supported; variant models keep their declared tag type. Every variant must declare the discriminator property; generation rejects a variant that does not. A union with a variant that another union also selects has no union model class; fields typed by it still decode through its tag table. Unions without a discriminator need a required const tag on each object variant.
Discriminated model unionsRuntime behaviorPartial
  • oneOf/anyOf of component models with a discriminator decode to the selected variant model and reject unknown tags. Explicit mappings (reference or component name), implicit mappings by raw component name, and several values for one variant are supported; variant models keep their declared tag type. Every variant must declare the discriminator property; generation rejects a variant that does not. A union with a variant that another union also selects has no union model class; fields typed by it still decode through its tag table. Unions without a discriminator need a required const tag on each object variant.
Discriminated model unionsRuntime behaviorPartial
  • oneOf/anyOf of component models with a discriminator decode to the selected variant model and reject unknown tags. Explicit mappings (reference or component name), implicit mappings by raw component name, and several values for one variant are supported; variant models keep their declared tag type. Every variant must declare the discriminator property; generation rejects a variant that does not. A union with a variant that another union also selects has no union model class; fields typed by it still decode through its tag table. Unions without a discriminator need a required const tag on each object variant.
Discriminated model unionsRuntime behaviorPartial
  • oneOf/anyOf of component models with a discriminator decode to the selected variant model and reject unknown tags. Explicit mappings (reference or component name), implicit mappings by raw component name, and several values for one variant are supported; variant models keep their declared tag type. Every variant must declare the discriminator property; generation rejects a variant that does not. A union with a variant that another union also selects has no union model class; fields typed by it still decode through its tag table. Unions without a discriminator need a required const tag on each object variant.
Discriminated model unionsRuntime behaviorPartial
  • oneOf/anyOf of component models with a discriminator decode to the selected variant model and reject unknown tags. Explicit mappings (reference or component name), implicit mappings by raw component name, and several values for one variant are supported; variant models keep their declared tag type. Every variant must declare the discriminator property; generation rejects a variant that does not. A union with a variant that another union also selects has no union model class; fields typed by it still decode through its tag table. Unions without a discriminator need a required const tag on each object variant.
Discriminated model unionsRuntime behaviorPartial
  • oneOf/anyOf of component models with a discriminator decode to the selected variant model and reject unknown tags. Explicit mappings (reference or component name), implicit mappings by raw component name, and several values for one variant are supported; variant models keep their declared tag type. Every variant must declare the discriminator property; generation rejects a variant that does not. A union with a variant that another union also selects has no union model class; fields typed by it still decode through its tag table. Unions without a discriminator need a required const tag on each object variant.
Discriminated model unionsRuntime behaviorPartial
  • oneOf/anyOf of component models with a discriminator decode to the selected variant model and reject unknown tags. Explicit mappings (reference or component name), implicit mappings by raw component name, and several values for one variant are supported; variant models keep their declared tag type. Every variant must declare the discriminator property; generation rejects a variant that does not. A union with a variant that another union also selects has no union model class; fields typed by it still decode through its tag table. Unions without a discriminator need a required const tag on each object variant.
Discriminated model unionsRuntime behaviorPartial
  • oneOf/anyOf of component models with a discriminator decode to the selected variant model and reject unknown tags. Explicit mappings (reference or component name), implicit mappings by raw component name, and several values for one variant are supported; variant models keep their declared tag type. Every variant must declare the discriminator property; generation rejects a variant that does not. A union with a variant that another union also selects has no union model class; fields typed by it still decode through its tag table. Unions without a discriminator need a required const tag on each object variant.
Discriminator inherited through allOfRuntime behaviorUnsupported
  • A discriminator on a base schema that subtypes extend through allOf, without a oneOf/anyOf, does not select a subtype. Generation reports a warning; declare a oneOf/anyOf union with the discriminator instead.
Discriminator inherited through allOfRuntime behaviorUnsupported
  • A discriminator on a base schema that subtypes extend through allOf, without a oneOf/anyOf, does not select a subtype. Generation reports a warning; declare a oneOf/anyOf union with the discriminator instead.
Discriminator inherited through allOfRuntime behaviorUnsupported
  • A discriminator on a base schema that subtypes extend through allOf, without a oneOf/anyOf, does not select a subtype. Generation reports a warning; declare a oneOf/anyOf union with the discriminator instead.
Discriminator inherited through allOfRuntime behaviorUnsupported
  • A discriminator on a base schema that subtypes extend through allOf, without a oneOf/anyOf, does not select a subtype. Generation reports a warning; declare a oneOf/anyOf union with the discriminator instead.
Discriminator inherited through allOfRuntime behaviorUnsupported
  • A discriminator on a base schema that subtypes extend through allOf, without a oneOf/anyOf, does not select a subtype. Generation reports a warning; declare a oneOf/anyOf union with the discriminator instead.
Discriminator inherited through allOfRuntime behaviorUnsupported
  • A discriminator on a base schema that subtypes extend through allOf, without a oneOf/anyOf, does not select a subtype. Generation reports a warning; declare a oneOf/anyOf union with the discriminator instead.
Discriminator inherited through allOfRuntime behaviorUnsupported
  • A discriminator on a base schema that subtypes extend through allOf, without a oneOf/anyOf, does not select a subtype. Generation reports a warning; declare a oneOf/anyOf union with the discriminator instead.
Discriminator inherited through allOfRuntime behaviorUnsupported
  • A discriminator on a base schema that subtypes extend through allOf, without a oneOf/anyOf, does not select a subtype. Generation reports a warning; declare a oneOf/anyOf union with the discriminator instead.
Cookie parameters and cookie API keys in browsersRuntime behaviorPartial
  • The client sends cookie parameters and cookie API keys as a Cookie header, which works from Node. Browsers forbid scripts from setting Cookie, so generation warns (OPENAPI_BROWSER_COOKIE); in a browser rely on a same-origin cookie instead.
Cookie parameters and cookie API keys in browsersRuntime behaviorPartial
  • The client sends cookie parameters and cookie API keys as a Cookie header, which works from Node. Browsers forbid scripts from setting Cookie, so generation warns (OPENAPI_BROWSER_COOKIE); in a browser rely on a same-origin cookie instead.
Cookie parameters and cookie API keys in browsersRuntime behaviorPartial
  • The client sends cookie parameters and cookie API keys as a Cookie header, which works from Node. Browsers forbid scripts from setting Cookie, so generation warns (OPENAPI_BROWSER_COOKIE); in a browser rely on a same-origin cookie instead.
Cookie parameters and cookie API keys in browsersRuntime behaviorPartial
  • The client sends cookie parameters and cookie API keys as a Cookie header, which works from Node. Browsers forbid scripts from setting Cookie, so generation warns (OPENAPI_BROWSER_COOKIE); in a browser rely on a same-origin cookie instead.
Cookie parameters and cookie API keys in browsersRuntime behaviorPartial
  • The client sends cookie parameters and cookie API keys as a Cookie header, which works from Node. Browsers forbid scripts from setting Cookie, so generation warns (OPENAPI_BROWSER_COOKIE); in a browser rely on a same-origin cookie instead.
Cookie parameters and cookie API keys in browsersRuntime behaviorPartial
  • The client sends cookie parameters and cookie API keys as a Cookie header, which works from Node. Browsers forbid scripts from setting Cookie, so generation warns (OPENAPI_BROWSER_COOKIE); in a browser rely on a same-origin cookie instead.
Cookie parameters and cookie API keys in browsersRuntime behaviorPartial
  • The client sends cookie parameters and cookie API keys as a Cookie header, which works from Node. Browsers forbid scripts from setting Cookie, so generation warns (OPENAPI_BROWSER_COOKIE); in a browser rely on a same-origin cookie instead.
Cookie parameters and cookie API keys in browsersRuntime behaviorPartial
  • The client sends cookie parameters and cookie API keys as a Cookie header, which works from Node. Browsers forbid scripts from setting Cookie, so generation warns (OPENAPI_BROWSER_COOKIE); in a browser rely on a same-origin cookie instead.
What the support labels mean
  • Supported: available for this OpenAPI version and configuration.
  • Partial: available with the limitations described below.
  • Validation only: the document is checked and preserved, without a generated runtime implementation.
  • Opt-in: requires additional configuration or an application-supplied implementation.
  • Unsupported: not implemented; the generator reports why it cannot use this input.
  • N/A: the capability does not apply to this OpenAPI version or generation profile.

Generated names ​

An operation name that is a JavaScript reserved word receives a _ suffix (operationId: delete generates delete_), as does a client member name such as constructor. Generation reports the rename as a warning (OPENAPI_OPERATION_RENAMED).

Recursive schemas ​

A component schema that refers to itself through $ref generates, also when it is not an object. For example, a JsonValue component that is a oneOf of scalars, an array of JsonValue and an object with additionalProperties of JsonValue becomes the type JsonValue.

A recursive component that holds a date-time value has the converted type in the SDK: the value is a Date or a Temporal value at each level. In JSON, it is the string. The client converts between the two for you, in both modes.

A component that does not refer to itself stays part of each field that uses it.

References between files ​

A discriminator mapping value inside a referenced file must be a pointer such as #/components/schemas/Dog, or the name of a root alias. A bare name in another file names a root component, so generation fails when the root declares none by that name and reports the mapping and its file.

#/… always means the containing document root, also inside a schema that declares its own $id. The no-unresolved-refs rule reports a pointer relative to an $id resource, such as #/properties/x.

What the client converts ​

The client converts what it carries, in both SDK modes:

  • request and response bodies and stream items,
  • path, query, header and cookie parameters, including $ref deepObject and querystring parameters,
  • declared response headers.

The payload of a webhook or a callback is a type of the SDK. The SDK has no handler for it. An app model over the type converts the payload.

A date or date-time value becomes a Date, or a Temporal value with dates: temporal. The checks run at the validate level of the call. Conversion runs at every level.

Response matching ​

When several response declarations could match, the client selects an exact status before a status range or default, then the most specific media type. It does not switch to another status declaration to make a media type match. Status and media-type matching runs even with validation: false.

Text bodies and streams ​

A text body or response whose schema is not a plain string and not unknown needs an entry for its media type (body formats):

  • A text body needs a bodyEncoders entry.
  • A text response needs a responseDecoders entry.
  • This holds for a $ref and for allOf, oneOf and anyOf too.
  • An unknown or absent text schema stays a raw string. Disabling validation does not turn that string into a decoded number, because decoding and validation are separate steps.

The required-codec check applies to the operation, response status and media type that declared it. An unrelated operation still uses built-in handling even when another operation on the same client requires a custom codec.

The itemSchema streaming contract needs an OpenAPI 3.2 document. The generator reads OpenAPI 3.1 and 3.2 documents. itemSchema: false generates the response type AsyncIterable<never>, and validation rejects the first item.

Only a response declares itemSchema. A request body media type with itemSchema stops generation with the rule no-request-item-schema, also in a webhook or a callback. Declare a request body with schema.

Full compliance matrix ​

The complete matrix by OpenAPI version and profile is the MATRIX.md file of the package.