OpenAPI · Dart Dio1.0.2
- Update the bundled Dart/Dio generator to 1.0.1.
77 published releases, each linked to its exact version.
MetaEngine.Dart.OpenApi.Dio 1.0.0.query operations, including their request bodies.--date-transformation for scalar date arrays and nested arrays containing date fields. Null entries are preserved.query operations, including their request bodies.--date-transformation for scalar date arrays and nested arrays containing date fields. Null entries are preserved.query operations, including their request bodies.--date-transformation for scalar date arrays and nested arrays containing date fields. Null entries are preserved.application/problem+json or another +json media type are now parsed into HttpError.body, including mixed-case media types and charset parameters.--include-tags.| null in generated TypeScript.allOf preserve required inherited properties and compatible property refinements.MetaEngine.TypeScript.OpenApi.React 1.2.3.application/problem+json or another +json media type are now parsed into HttpError.body, including mixed-case media types and charset parameters.--include-tags.| null in generated TypeScript.allOf preserve required inherited properties and compatible property refinements.MetaEngine.TypeScript.OpenApi.Fetch 1.1.3.--include-tags. All declared response statuses and media types participate in model discovery; no extra flag is required.allOf models are retained. Distinct error response shapes receive distinct model names, and inherited property refinements remain intact through nested compositions.--date-transformation now converts response date properties in --http-resource and --lazy-resource methods, including nested object properties and arrays of objects. Array resources keep their empty-array default and object resources keep their initial undefined value.null in generated TypeScript, including string aliases.--include-tags matching no operations now emits no operation models instead of including every schema. Webhook models remain available.JsonPropertyName, including required properties and names containing underscores or hyphens. Valid JSON payloads deserialize and round-trip with the default System.Text.Json settings.--middleware rejects missing base-address configuration. Generated client registrations now use the configured HttpClient.BaseAddress and report a missing address when the client is constructed.allOf now preserve compatible inherited-property refinements. Making an inherited property required or refining its $ref to a more specific allOf subtype now emits the redeclared property instead of silently dropping it.--observe-response now preserves the full Angular HttpResponse for binary and text/plain operations, including status and headers, rather than returning only the response body.--observe-response flag — generated JSON operations return Angular HttpResponse<T>, allowing callers to access response status and headers.--documentation comments bind to their member. A property carrying both a doc comment and an attribute (e.g. with --validation-annotations) emitted the /// <summary> between the attribute and the property, leaving it orphaned. The doc comment now renders above the attributes.--error-handling keeps the success check for uncategorized status codes. With error handling enabled, status codes that weren't explicitly categorized (400, 409, 422, 429 after retries, ...) fell through and the error body was deserialized as if it were a success payload. Those codes now surface as errors.--documentation comments bind to their member. A property carrying both a doc comment and a [JsonPropertyName] attribute emitted the /// <summary> between the attribute and the property, leaving it orphaned. The doc comment now renders above the attributes.default now surfaces it as a method default argument — e.g. FindPetsByStatusAsync(PetStatus status = PetStatus.Available, ...) — so callers can omit it. Optional parameters keep their Type? x = null omit-from-wire semantics.oneOf/anyOf unions now deserialize at runtime. Undiscriminated unions — the Stripe-style expandable pattern (anyOf [string, $ref, ...]), object-vs-object oneOf with no discriminator, and oneOf over string enums — previously generated a bare marker interface with no converter, so any response carrying such a field threw at deserialization. Each now generates a System.Text.Json converter (a synthesized string variant for the string arm, try-each object dispatch for the object arms).--error-handling keeps the success check for uncategorized status codes. With error handling enabled, status codes that weren't explicitly categorized (400, 409, 422, 429 after retries, ...) fell through and the error body was deserialized as if it were a success payload. Those codes now surface as errors.--documentation comments bind to their member. A property carrying both a doc comment and an attribute (e.g. with --validation-annotations) emitted the /// <summary> between the attribute and the property, leaving it orphaned. The doc comment now renders above the attributes.if continuations were dedented; all generated client code is now uniformly indented.--options-threshold now changes the generated code. Once an operation reaches the threshold parameter count (default 4), its query and header parameters are grouped into a single options object instead of separate method arguments. In 1.0.0 the flag was accepted but had no effect on the generated output..proto) definitions, distributed as a dotnet toolHttpClient service per gRPC service (Connect-RPC over JSON)System.Text.Json models — typed members, standalone enum types--grpc-binary — binary gRPC clients via Grpc.Net.Client + protobuf-net--documentation — XML doc comments from proto comments--validation-annotations — System.ComponentModel.DataAnnotations from protovalidate (buf.validate) constraints--dependency-injection — IServiceCollection extension methods for DI--type-mapping — override protobuf well-known type mappings to .NET types--middleware — ApiDelegatingHandler + ServiceCollectionExtensions--bearer-auth, --basic-auth, --custom-header, --retries--include-types, --clean, --verboseHttpClient services — typed query, mutation, and subscription clientsSystem.Text.Json models — typed required/optional members, standalone enum types--documentation — XML doc comments from GraphQL SDL descriptions--fragments — reusable named fragments for object-type selections--oneof-inputs — idiomatic @oneOf tagged-union input types--custom-scalar — map GraphQL custom scalars to .NET types--subscription-url — WebSocket subscription endpoint path--middleware — ApiDelegatingHandler + ServiceCollectionExtensions for DI--bearer-auth, --basic-auth, --custom-header, --retries, --error-handling--options-threshold, --include-types, --clean, --verbose--service-decorator [scope] — emit Angular 22's @Service() decorator instead of @Injectable (root-provided singleton; auto-enables inject(), supersedes --provided-in). Pass component-scoped for @Service({ autoProvided: false }), registered manually in a component/route providers array. Generated code imports it as NgService to avoid name collisions. Requires Angular 22+. bash npx @metaengine/protobuf-angular service.proto ./src/app/api --service-decorator --custom-header now generates a dedicated HTTP interceptor — each header gets an InjectionToken attached via a generated customHeadersInterceptor, instead of an empty header slot in the base service. The token constant is a sanitized TypeScript identifier (e.g. X-Tenant-ID → X_Tenant_ID) while the raw header name stays the wire key, so the generated code compiles.--service-decorator [scope] flag — emit Angular 22's @Service() decorator instead of @Injectable on generated services. @Service() is shorthand for @Injectable({ providedIn: 'root' }), so services stay root-provided singletons; it auto-enables inject()-based DI (the decorator requires it) and supersedes --provided-in. Pass component-scoped for @Service({ autoProvided: false }) — a service you register yourself in a component/route providers array. Generated code imports the decorator as NgService (import { Service as NgService }) to avoid name collisions. Requires Angular 22+. bash npx @metaengine/openapi-angular api.yaml ./src/app/api --service-decorator npx @metaengine/openapi-angular api.yaml ./src/app/api --service-decorator component-scoped --service-decorator [scope] — emit Angular 22's @Service() decorator instead of @Injectable. @Service() is shorthand for @Injectable({ providedIn: 'root' }) (root-provided singleton); it auto-enables inject()-based DI and supersedes --provided-in. Pass component-scoped for @Service({ autoProvided: false }), registered manually in a component/route providers array. Generated code imports it as NgService to avoid name collisions. Requires Angular 22+. bash npx @metaengine/graphql-angular schema.graphql ./src/app/api --service-decorator HttpClient services — one typed service class per OpenAPI tagSystem.Text.Json models — typed required/optional members, standalone enum types--documentation — XML doc comments from OpenAPI descriptions and examples--validation-annotations — System.ComponentModel.DataAnnotations attributes from spec constraints--middleware — ApiDelegatingHandler + ServiceCollectionExtensions for DI--bearer-auth, --basic-auth, --custom-header, --retries, --error-handling--include-tags, --service-suffix, --options-threshold, --strict-validation, --clean, --verboseBaseModel with ConfigDict, typed fields, standalone enum typesservice, gRPC-Connect over HTTPField(alias=...) mapping to the proto3 JSON wire names--documentation — docstring generation from .proto comments--dataclass — generate @dataclass models instead of Pydantic v2--verbose — verbose loggingBaseModel with ConfigDict, typed required/optional fields, standalone enum types--fragments (reusable named fragments), --one-of-inputs (@oneOf tagged-union inputs), --custom-scalar (map scalars to str/int/float/bool/datetime/Any)--bearer-auth, --basic-auth, --retries, --timeout, --error-handling, --custom-header, --base-url-env, --sync-methods, --middleware--documentation, --camel-case-aliases, --options-threshold, --service-suffix, --verboseBaseModel with ConfigDict, typed required/optional fields, standalone enum types--camel-case-aliases — snake_case properties with Field(alias=...) camelCase wire mapping--documentation — docstring generation from OpenAPI descriptions and examples--include-tags, --service-suffix, --options-threshold, --strict-validation, --verbosesuspend fun query and mutation clientsgraphql-transport-ws, with a configurable subscriptionUrl path@Serializable Kotlin data classes and enums generated from SDL typesbearerAuth, bearerAuthHeader, basicAuth, and repeatable customHeaders from environment variablesretry enables exponential backoff on transient failurestimeout, or split timeoutConnect / timeoutRead / timeoutWriteerrorHandling enables smart error handling based on HTTP semanticsdocumentation emits doc comments from SDL descriptionsfragments emits reusable named fragments for object-type selectionsoneOfInputs generates idiomatic tagged-union input typesoptionsThreshold collapses long parameter lists into an options objectclean and configurable outputDirectorysuspend fun clients over the Connect protocol@Serializable Kotlin data classes generated from Protobuf messagesbearerAuth, bearerAuthHeader, basicAuth, and repeatable customHeaders from environment variablestimeout, or split timeoutConnect / timeoutRead / timeoutWritedocumentation emits doc comments from Protobuf descriptionsvalidationAnnotations emits Jakarta Bean Validation annotations on generated data classesstrictEnums opts out of the synthetic UNKNOWN enum fallbackoptionsThreshold collapses long parameter lists into an options objectclean and configurable outputDirectorysuspend fun clients with a constructor-injected base URL@Serializable Kotlin data classes generated from OpenAPI schemas, with null safety (required fields non-nullable, optional fields nullable)bearerAuth, bearerAuthHeader, basicAuth, and repeatable customHeaders from environment variablestimeout (or split timeoutConnect / timeoutRead / timeoutWrite) and retry with exponential backofferrorHandling enables smart error handling on the Ktor clientdocumentation emits doc comments from OpenAPI descriptions and examplesvalidationAnnotations emits Jakarta Bean Validation annotations from spec constraintsstrictEnums opts out of the synthetic UNKNOWN enum fallbackincludeTags generates only the operations you needoptionsThreshold collapses long parameter lists into an options objectstrictValidation for stricter OpenAPI spec checkingclean and configurable outputDirectory@oneOf tagged-union inputs and unionsfragments emits reusable named fragments for object-type selectionsbearerAuth, bearerAuthHeader, basicAuth, and repeatable customHeaders from environment variablestimeout (or split timeoutConnect / timeoutRead) and retry with exponential backofferrorHandling enables smart error handling on the HTTP clientdocumentation emits doc comments from GraphQL schema descriptionsoptionsThreshold collapses long parameter lists into an options objectclean and configurable outputDirectoryoneof groupsbearerAuth, bearerAuthHeader, basicAuth, and repeatable customHeaders from environment variablestimeout (or split timeoutConnect / timeoutRead) and retry with exponential backofferrorHandling enables smart error handling on the Connect clientdocumentation emits doc comments from Protobuf descriptionsoptionsThreshold collapses long parameter lists into an options objectclean and configurable outputDirectoryRunner bundle not found in plugin JAR.bearerAuth, bearerAuthHeader, basicAuth, and repeatable customHeaders from environment variablestimeout (or split timeoutConnect / timeoutRead) and retry with exponential backofferrorHandling enables smart error handling on the RestClientdocumentation emits doc comments from OpenAPI descriptions and examplesincludeTags generates only the operations you needoptionsThreshold collapses long parameter lists into an options objectstrictValidation for stricter OpenAPI spec checkingclean and configurable outputDirectory@Injectable services over HttpClient with RxJS observablesprovidedIn scope, base-URL injection token, and optional functional inject()--fragments — emit reusable named fragments for object-type selections; operation query strings reference fragment spreads (...UserFields) bash npx @metaengine/graphql-angular schema.graphql ./src/app/api --fragments --one-of-inputs — render @oneOf input types as idiomatic TypeScript discriminated unions (exactly one member set) bash npx @metaengine/graphql-angular schema.graphql ./src/app/api --one-of-inputs --custom-scalar <Scalar=target> — override the TS type emitted for a custom scalar. Repeatable. Unsupported targets are hard errors — no silent fallbacks. | Target | Emitted TS type | |--------|-----------------| | string | string | | number | number | | boolean | boolean | | Date | Date | bash npx @metaengine/graphql-angular schema.graphql ./src/app/api \ --custom-scalar DateTime=string \ --custom-scalar UUID=string Well-known scalars (DateTime, Decimal, Long, UUID, ...) are mapped to idiomatic TS types out of the box; any unmapped custom scalar defaults to string. Integer-like scalars map to number so values in request variables survive JSON.stringify.--provided-in <scope> — Angular injection scope (root, any, platform)--base-url-token <name> — injection token name for the base URL (default: BASE_URL)--inject-function — use inject() instead of constructor injection--interceptors — generate Angular interceptor infrastructure (ApiMiddleware functional HttpInterceptorFn pipeline) for cross-cutting concerns bash npx @metaengine/graphql-angular schema.graphql ./src/app/api --inject-function --provided-in root --options-threshold <n> — parameter count threshold for options object (default: 4)--documentation — render SDL type/field descriptions as JSDoc comments--date-transformation — convert Date-typed scalar fields (e.g. DateTime) in responses to Date objects--types-barrel — emit an index.ts barrel per folder plus a root index.ts re-exporting everything--clean — clean output directory (remove files no longer in generation)--verbose — verbose logging--error-handling — smart error handling via RxJS catchError: 403 / 404 → null, 400 / 409 / 422 → error body, 401 / 500 / 502 / 503 → rethrow bash npx @metaengine/graphql-angular schema.graphql ./src/app/api --error-handling --retries <max-attempts> — RxJS retry interceptor reattempting retryable responses (429, 503) with exponential backoff bash npx @metaengine/graphql-angular schema.graphql ./src/app/api --retries 3 fetchexecuteGraphQL<T> helper--fragments — emit reusable named fragments for object-type selections; operations reference fragment spreads (...UserFields) instead of repeating field sets bash npx @metaengine/graphql-fetch schema.graphql ./src/api --fragments --one-of-inputs — render @oneOf input types as idiomatic TypeScript discriminated unions (exactly one member set) bash npx @metaengine/graphql-fetch schema.graphql ./src/api --one-of-inputs --custom-scalar <Scalar=target> — override the TS type emitted for a custom scalar. Repeatable. Unsupported targets are hard errors — no silent fallbacks. | Target | Emitted TS type | |--------|-----------------| | string | string | | number | number | | boolean | boolean | | Date | Date | bash npx @metaengine/graphql-fetch schema.graphql ./src/api \ --custom-scalar DateTime=string \ --custom-scalar UUID=string Well-known scalars (DateTime, Decimal, Long, UUID, ...) are mapped to idiomatic TS types out of the box; any unmapped custom scalar defaults to string. Integer-like scalars map to number so values in request variables survive JSON.stringify.--base-url-env <name> — environment variable name for base URL (default: API_BASE_URL)--service-suffix <suffix> — service naming suffix (default: Service)--options-threshold <n> — parameter count threshold for options object (default: 4)--documentation — render SDL type/field descriptions as JSDoc comments--date-transformation — convert Date-typed scalar fields (e.g. DateTime) in responses to Date objects--clean — clean output directory (remove files no longer in generation)--verbose — verbose logging--bearer-auth <env-var-name> — Bearer token authentication. Exposes an auth config field accepting a token string or async token provider, and adds Authorization: Bearer <token> to every request. bash npx @metaengine/graphql-fetch schema.graphql ./src/api --bearer-auth API_TOKEN --timeout <seconds> — per-request timeout via AbortSignal.timeout. bash npx @metaengine/graphql-fetch schema.graphql ./src/api --timeout 30 --retries <max-attempts> — retry retryable responses (429, 503) with exponential backoff. bash npx @metaengine/graphql-fetch schema.graphql ./src/api --retries 3 --custom-header <header=envVarName> — static header from env var. Repeatable. bash npx @metaengine/graphql-fetch schema.graphql ./src/api \ --custom-header X-Tenant-ID=TENANT_ID \ --custom-header X-App-Id=APP_ID --import-meta-env — use import.meta.env for env access (Vite, SvelteKit) instead of process.env--result-pattern — return ApiResult<T> instead of throwing, for structured error handling without exceptions--middleware — emit a Middleware interface (onRequest, onResponse, onError) and accept a middleware array on ClientConfig--error-handling — smart error handling by HTTP status: 403 / 404 → null, 400 / 409 / 422 → error body, 401 / 500 / 502 / 503 → throw--types-barrel — emit an index.ts barrel per folder plus a root index.ts re-exporting everythingexecuteGraphQL<T> helper--fragments — emit reusable named fragments for object-type selections; operations reference fragment spreads (...UserFields) bash npx @metaengine/graphql-react schema.graphql ./src/api --fragments --one-of-inputs — render @oneOf input types as idiomatic TypeScript discriminated unions (exactly one member set) bash npx @metaengine/graphql-react schema.graphql ./src/api --one-of-inputs --custom-scalar <Scalar=target> — override the TS type emitted for a custom scalar. Repeatable. Unsupported targets are hard errors — no silent fallbacks. | Target | Emitted TS type | |--------|-----------------| | string | string | | number | number | | boolean | boolean | | Date | Date | bash npx @metaengine/graphql-react schema.graphql ./src/api \ --custom-scalar DateTime=string \ --custom-scalar UUID=string Well-known scalars (DateTime, Decimal, Long, UUID, ...) are mapped to idiomatic TS types out of the box; any unmapped custom scalar defaults to string. Integer-like scalars map to number so values in request variables survive JSON.stringify.--tanstack-query — generate TanStack Query hooks (useQuery/useMutation) alongside the plain API functions. Requires @tanstack/react-query. bash npx @metaengine/graphql-react schema.graphql ./src/api --tanstack-query --base-url-env <name> — environment variable name for base URL (default: REACT_APP_API_BASE_URL)--service-suffix <suffix> — service naming suffix (default: Api)--options-threshold <n> — parameter count threshold for options object (default: 4)--documentation — render SDL type/field descriptions as JSDoc comments--date-transformation — convert Date-typed scalar fields (e.g. DateTime) in responses to Date objects--types-barrel — emit an index.ts barrel per folder plus a root index.ts re-exporting everything--clean — clean output directory (remove files no longer in generation)--verbose — verbose logging--error-handling — smart error handling via a ClientConfig.errorHandling config: 403 / 404 → null, 400 / 409 / 422 → error body, 401 / 500 / 502 / 503 → throw bash npx @metaengine/graphql-react schema.graphql ./src/api --error-handling --retries <max-attempts> — retry retryable responses (429, 503) with exponential backoff, configured on ClientConfig.retry bash npx @metaengine/graphql-react schema.graphql ./src/api --retries 3 .proto sourcesuseQuery/useMutation hooks alongside the plain API functionsGrpcStatusCode taxonomy and GrpcError type, classified by gRPC status code rather than HTTP status--base-url-env <name> — environment variable name for base URL (default: REACT_APP_API_BASE_URL)--service-suffix <suffix> — service naming suffix (default: Api)--options-threshold <n> — parameter count threshold for options object (default: 4)--documentation — generate JSDoc comments--date-transformation — convert google.protobuf.Timestamp response fields to Date objects--clean — clean output directory (remove files no longer in generation)--verbose — verbose logging--tanstack-query — generate TanStack Query hooks (useQuery/useMutation) alongside the plain API functions. Requires @tanstack/react-query. bash npx @metaengine/protobuf-react service.proto ./src/api --tanstack-query --middleware — emit fetch middleware infrastructure (Middleware type + chainMiddleware + createFetchWithMiddleware)--bearer-auth <env-var-name> — Bearer token authentication; reads from process.env.<name> and adds Authorization: Bearer <token> to every request. bash npx @metaengine/protobuf-react service.proto ./src/api --bearer-auth API_TOKEN --basic-auth <userEnv:passEnv> — Basic authentication from two named env vars; sends Authorization: Basic <base64(user:password)>. bash npx @metaengine/protobuf-react service.proto ./src/api --basic-auth API_USER:API_PASS --timeout <seconds> — per-request timeout via AbortSignal.timeout. bash npx @metaengine/protobuf-react service.proto ./src/api --timeout 30 --custom-header <header=envVarName> — static header from env var. Repeatable. bash npx @metaengine/protobuf-react service.proto ./src/api \ --custom-header X-Tenant-ID=TENANT_ID \ --custom-header X-App-Id=APP_ID --error-handling — gRPC-native error handling. Emits a GrpcError type and GrpcStatusCode taxonomy: NOT_FOUND / PERMISSION_DENIED → null, INVALID_ARGUMENT / ALREADY_EXISTS / FAILED_PRECONDITION → error body, UNAUTHENTICATED / INTERNAL / UNAVAILABLE → throw--types-barrel — emit an index.ts barrel per folder plus a root index.ts re-exporting everything--type-mapping <name=target> — opt-in override for the TypeScript type emitted for a protobuf type, keyed by its fully-qualified name. Repeatable. Targets: string, number, Date, boolean. Unsupported targets are hard errors — no silent fallbacks. | Target | Emitted TS type | |--------|-----------------| | string | string | | number | number | | Date | Date | | boolean | boolean | bash npx @metaengine/protobuf-react service.proto ./src/api \ --type-mapping google.protobuf.Timestamp=string \ --type-mapping google.protobuf.Duration=string > Integer scalars (including int64 / uint64) map to number by design so request bodies survive JSON.stringify and parsed responses match the wire shape. A bigint target is therefore not offered..proto sources@Injectable services, configurable providedIn scope, and a base-URL injection tokenGrpcStatusCode taxonomy and GrpcError type, classified by gRPC status code rather than HTTP statusprovideApiInterceptors() factory--provided-in <value> — injection scope (root, any, platform)--base-url-token <name> — injection token name for base URL (default: BASE_URL)--inject-function — use inject() instead of constructor injection--service-suffix <suffix> — service naming suffix (default: Service)--options-threshold <n> — parameter count threshold for options object (default: 4)--documentation — generate JSDoc comments--bearer-auth <env-var-name> — Bearer token authentication via a DI injection token. bash npx @metaengine/protobuf-angular service.proto ./src/app/api --bearer-auth API_TOKEN Generates services/api-interceptors.ts with a bearerAuthInterceptor and a matching InjectionToken. Register it at bootstrap with the generated provideApiInterceptors().--basic-auth <userEnv:passEnv> — Basic authentication from two env vars. Generates a basicAuthInterceptor. bash npx @metaengine/protobuf-angular service.proto ./src/app/api --basic-auth API_USER:API_PASS --timeout <seconds> — gRPC-Connect protocol timeout, emitted as a grpc-timeout header on every call. bash npx @metaengine/protobuf-angular service.proto ./src/app/api --timeout 30 --custom-header <header-name> — declare a static header slot for runtime population. Repeatable. Angular has no env-var access in the browser, so header values are set at runtime rather than baked in. bash npx @metaengine/protobuf-angular service.proto ./src/app/api \ --custom-header X-Tenant-ID \ --custom-header X-App-Id --error-handling — gRPC-native error handling. Emits a GrpcError type and GrpcStatusCode taxonomy: NOT_FOUND / PERMISSION_DENIED → null, INVALID_ARGUMENT / ALREADY_EXISTS / FAILED_PRECONDITION → error body, UNAUTHENTICATED / INTERNAL / UNAVAILABLE → throw--date-transformation — convert google.protobuf.Timestamp response fields to Date objects--types-barrel — emit an index.ts barrel per folder plus a root index.ts re-exporting everything--clean — clean output directory (remove files no longer in generation)--verbose — verbose logging--type-mapping <name=target> — opt-in override for the TypeScript type emitted for a protobuf type, keyed by its fully-qualified name. Repeatable. Unsupported targets are hard errors — no silent fallbacks. | Target | Emitted TS type | |--------|-----------------| | string | string | | number | number | | Date | Date | | boolean | boolean | bash npx @metaengine/protobuf-angular service.proto ./src/app/api \ --type-mapping google.protobuf.Timestamp=string \ --type-mapping google.protobuf.Duration=string > Integer scalars (including int64 / uint64) map to number by design so request bodies survive JSON.stringify and parsed responses match the wire shape. A bigint target is therefore not offered.fetch.proto sources--base-url-env <name> — environment variable name for base URL (default: API_BASE_URL)--service-suffix <suffix> — service naming suffix (default: Service)--options-threshold <n> — parameter count threshold for options object (default: 4)--documentation — generate JSDoc comments--date-transformation — convert google.protobuf.Timestamp response fields to Date objects--clean — clean output directory (remove files no longer in generation)--verbose — verbose logging--bearer-auth <env-var-name> — Bearer token authentication. Exposes an auth config field accepting a token string or async token provider, and adds Authorization: Bearer <token> to every request. bash npx @metaengine/protobuf-fetch service.proto ./src/api --bearer-auth API_TOKEN --basic-auth <userEnv:passEnv> — Basic authentication. Reads username and password from the two named env vars and sends Authorization: Basic <base64(user:password)>. bash npx @metaengine/protobuf-fetch service.proto ./src/api --basic-auth API_USER:API_PASS --timeout <seconds> — per-request timeout via AbortSignal.timeout. bash npx @metaengine/protobuf-fetch service.proto ./src/api --timeout 30 --custom-header <header=envVarName> — static header from env var. Repeatable. bash npx @metaengine/protobuf-fetch service.proto ./src/api \ --custom-header X-Tenant-ID=TENANT_ID \ --custom-header X-App-Id=APP_ID --import-meta-env — use import.meta.env for env access (Vite, SvelteKit) instead of process.env--result-pattern — return ApiResult<T> instead of throwing, for structured error handling without exceptions--middleware — emit Middleware interface (onRequest, onResponse, onError) and accept a middleware array on ClientConfig--error-handling — gRPC-native error handling. Emits a GrpcError type and a GrpcStatusCode taxonomy, classifying errors by gRPC status code: NOT_FOUND / PERMISSION_DENIED → null, INVALID_ARGUMENT / ALREADY_EXISTS / FAILED_PRECONDITION → error body, UNAUTHENTICATED / INTERNAL / UNAVAILABLE → throw--types-barrel — emit an index.ts barrel per folder plus a root index.ts re-exporting everything--type-mapping <name=target> — opt-in override for the TypeScript type emitted for a protobuf type, keyed by its fully-qualified name. Repeatable. Unsupported targets are hard errors — no silent fallbacks. | Target | Emitted TS type | |--------|-----------------| | string | string | | number | number | | Date | Date | | boolean | boolean | bash npx @metaengine/protobuf-fetch service.proto ./src/api \ --type-mapping google.protobuf.Timestamp=string \ --type-mapping google.protobuf.Duration=string > Integer scalars (including int64 / uint64) map to number by design so request bodies survive JSON.stringify and parsed responses match the wire shape. A bigint target is therefore not offered.--types-barrel flag — emits an index.ts barrel per folder (models/index.ts, services/index.ts) plus a root index.ts, so consumers can import everything from one entry point. Service files are re-exported under a namespace (export * as UsersApi from './users.service') to avoid TS2308 duplicate-identifier errors; models are re-exported flat. bash npx @metaengine/openapi-fetch api.yaml ./src/api --types-barrel oneOf members of the form { "type": "null" } now contribute | null to the property type instead of generating a spurious Null interface.const: <value> on a schema generates a literal type (channel: 'web') instead of falling back to string.allOf combining a $ref with an inline override no longer drops the inline branch.type: ["array","null"] and nullable items now generate Array<string | null> / Array<string | null> | null instead of collapsing to Array<string>.$ref JSON-Pointer escapes (~1, ~0) resolve correctly instead of falling back to unknown.$dynamicRef / $dynamicAnchor recursive schemas resolve to proper self-referencing types.contentEncoding / contentMediaType binary schemas generate Blob output, matching 3.0 format: binary.webhooks: schemas generate typed payload interfaces.Array<'a' | 'b'> instead of Array<string>.--documentation, auto-generated @returns text uses the resource noun instead of leaking the URL action segment.Content-Type: application/json; FormData and Blob bodies now let the platform set the boundary, fixing multipart uploads.import statements when an enum contains URL-like string values (e.g. 'http://...').--strict-validation no longer rejects valid 3.1 specs whose component keys contain / or ~.--types-barrel flag — emits an index.ts barrel per folder (models/index.ts, plus the .api service files) and a root index.ts, so consumers can import everything from one entry point. Services are re-exported under a namespace to avoid name collisions; models are re-exported flat. bash npx @metaengine/openapi-react api.yaml ./src/app/api --types-barrel oneOf members of the form { "type": "null" } now contribute | null to the property type instead of generating a spurious Null interface.const: <value> on a schema generates a literal type (channel: 'web') instead of falling back to string.allOf combining a $ref with an inline override no longer drops the inline branch.type: ["array","null"] and nullable items now generate Array<string | null> / Array<string | null> | null instead of collapsing to Array<string>.$ref JSON-Pointer escapes (~1, ~0) resolve correctly instead of falling back to unknown.$dynamicRef / $dynamicAnchor recursive schemas resolve to proper self-referencing types.contentEncoding / contentMediaType binary schemas generate Blob output, matching 3.0 format: binary.webhooks: schemas generate typed payload interfaces.Array<'a' | 'b'> instead of Array<string>.--documentation, auto-generated @returns text uses the resource noun instead of leaking the URL action segment.ApiClientContext now defaults to undefined and resolves the default client lazily — importing the module no longer throws when env vars are unset. Test suites and multi-tenant apps that supply their own client via ApiClientProvider are unaffected.Record<string, string>); all arguments are passed through to the service method.--strict-validation no longer rejects valid 3.1 specs whose component keys contain / or ~.--types-barrel flag — emits an index.ts barrel per folder (models/index.ts, services/index.ts) plus a root index.ts, so consumers can import everything from one entry point. Services are re-exported under a namespace to avoid name collisions; models are re-exported flat. bash npx @metaengine/openapi-angular api.yaml ./src/app/api --types-barrel oneOf members of the form { "type": "null" } now contribute | null to the property type instead of generating a spurious Null interface.const: <value> on a schema generates a literal type (channel: 'web') instead of falling back to string.allOf combining a $ref with an inline override no longer drops the inline branch.type: ["array","null"] and nullable items now generate Array<string | null> / Array<string | null> | null instead of collapsing to Array<string>.$ref JSON-Pointer escapes (~1, ~0) resolve correctly instead of falling back to unknown.$dynamicRef / $dynamicAnchor recursive schemas resolve to proper self-referencing types.contentEncoding / contentMediaType binary schemas generate Blob output, matching 3.0 format: binary.webhooks: schemas generate typed payload interfaces.Array<'a' | 'b'> instead of Array<string>.--documentation, auto-generated @returns text uses the resource noun (...the retrieved pets) instead of leaking the URL action segment (...the retrieved findByStatus data).--interceptors with no configured concern no longer emits a dead-code api-interceptors.ts.import lines.--strict-validation no longer rejects valid 3.1 specs whose component keys contain / or ~.--error-handling widens nullable types twice — when --error-handling was enabled, nullable response types could be typed as T | null | null. The duplicate widening is now suppressed so the response type is T | null as intended.users: User[] instead of users: { id: number; ... }[]@deprecated JSDoc tags emitted regardless of --documentation — deprecated types and properties always get the @deprecated tag so IDE tooling can warn even when JSDoc generation is otherwise offhandleError<T> body in the base service (handled by the error interceptor)timeout(N) pipe operator in service methods (handled by the timeout interceptor)Authorization: '' header placeholder (set by the bearer-auth interceptor)--http-resource options leaking across schemas — in projects with multiple OpenAPI schemas, options scoped to one schema no longer leak to others--date-transformation empty no-op output — when a schema has no date operations, the transformation utility is no longer emitted as an empty no-op--error-handling widens nullable types twice — nullable response types are no longer typed as T | null | null* -prefixed body alignment * , eliminating stray indentationoneOf members combined with a discriminator keep their wire-format annotations in the generated TypeScriptcreateClient() factory — services no longer pull config from a http-utils module. Each generated service method takes an apiClient: ApiClient as its first argument, obtained from createClient(config). The previous http-utils.ts and api-config.ts files are no longer emitted; consumers need to migrate their imports and call sites to the new factory shape--tanstack-query now wires through a React Context — the generated client.ts exports ApiClientContext, ApiClientProvider, and useApiClient(). Generated hooks resolve their client via useApiClient(), so consumers must wrap their app once with <ApiClientProvider value={createClient({ ... })}>users: User[] instead of users: { id: number; ... }[]@deprecated JSDoc tags emitted regardless of --documentation — deprecated types and properties always get the @deprecated tag so IDE tooling can warn even when JSDoc generation is otherwise offHttpError(0, ...) — failed fetches no longer bubble a raw TypeError to consumers; all network failures normalize into the package's HttpError shape with status code 0--service-suffix doubles the Api suffix in barrel aliases — the generated index.ts no longer produces aliases like UsersApiApi when --service-suffix Api is in effect*/ in service files — the trailing blank line between a comment block and the function it documents is removed * , eliminating stray indentationoneOf members combined with a discriminator keep their wire-format annotations in the generated TypeScriptfetch--include-tags <tags> — filter operations by OpenAPI tag (comma-separated, case-insensitive)--base-url-env <name> — environment variable name for base URL (default: API_BASE_URL)--service-suffix <suffix> — service naming suffix (default: Api)--options-threshold <n> — parameter count threshold for options object (default: 4)--documentation — generate JSDoc comments--strict-validation — strict OpenAPI spec validation--date-transformation — convert (string, date-time) and (string, date) response fields to Date objects--clean — clean output directory (remove files no longer in generation)--verbose — verbose logging--bearer-auth <env-var-name> — Bearer token from env var. Adds Authorization: Bearer <token> to every request. bash npx @metaengine/openapi-fetch api.yaml ./src/api --bearer-auth API_TOKEN --timeout <seconds> — per-request timeout via AbortSignal.timeout. bash npx @metaengine/openapi-fetch api.yaml ./src/api --timeout 30 --retries <max-attempts> — exponential backoff retries on 429 and 503 (base 0.5s, max delay 30s). bash npx @metaengine/openapi-fetch api.yaml ./src/api --retries 3 --custom-header <header=envVarName> — static header from env var. Repeatable. bash npx @metaengine/openapi-fetch api.yaml ./src/api \ --custom-header X-Tenant-ID=TENANT_ID \ --custom-header X-App-Id=APP_ID --import-meta-env — use import.meta.env for env access (Vite, SvelteKit) instead of process.env--result-pattern — return ApiResult<T> instead of throwing, for structured error handling without exceptions--middleware — emit Middleware interface (onRequest, onResponse, onError) and accept a middleware array on ClientConfig--error-handling — smart error handling based on HTTP status semantics (404/403 → null, 400/422/409 → error body, 401/5xx → throw)--type-mapping <slug=target> — opt-in override for the TypeScript type emitted for a given OpenAPI (type, format) pair. Repeatable. Unknown slugs or targets are hard errors — no silent fallbacks. | Slug | OpenAPI (type, format) | Default | Override | |------|--------------------------|---------|----------| | int64 | (integer, int64) | number | int64=bigint | | decimal | (number, decimal) | number | decimal=string | | date-time | (string, date-time) | Date | date-time=string | | date | (string, date) | Date | date=string | bash npx @metaengine/openapi-fetch api.yaml ./src/api \ --type-mapping int64=bigint \ --type-mapping date-time=string --type-mapping <slug=target> flag — Opt-in override for the TypeScript type emitted for a given OpenAPI (type, format) pair. Repeatable. Unknown slugs or targets are hard errors — no silent fallbacks. | Slug | OpenAPI (type, format) | Default | Override | |------|--------------------------|---------|----------| | int64 | (integer, int64) | number | int64=bigint | | decimal | (number, decimal) | number | decimal=string | | date-time | (string, date-time) | Date | date-time=string | | date | (string, date) | Date | date=string | bash npx @metaengine/openapi-react api.yaml ./src/app/api \ --type-mapping int64=bigint \ --type-mapping date-time=string (integer, int64) now generates number again — 1.0.8 switched the default to bigint in the name of precision, but number is the more practical default: JSON.parse returns number anyway, and most APIs never cross Number.MAX_SAFE_INTEGER (2^53 − 1). If you need the full 64-bit range, opt in via --type-mapping int64=bigint ([#6](https://github.com/meta-engine/openapi-angular/issues/6))--type-mapping <slug=target> flag — Opt-in override for the TypeScript type emitted for a given OpenAPI (type, format) pair. Repeatable. Unknown slugs or targets are hard errors — no silent fallbacks. | Slug | OpenAPI (type, format) | Default | Override | |------|--------------------------|---------|----------| | int64 | (integer, int64) | number | int64=bigint | | decimal | (number, decimal) | number | decimal=string | | date-time | (string, date-time) | Date | date-time=string | | date | (string, date) | Date | date=string | bash npx @metaengine/openapi-angular api.yaml ./src/app/api \ --type-mapping int64=bigint \ --type-mapping date-time=string --interceptors flag — Generates an api-interceptors.ts file with Angular-native HTTP interceptor infrastructure:Array<Blob> FormData serialization corrupts binary data — The generated FormData builder used JSON.stringify() on array fields, corrupting binary data. Now detects arrays via Array.isArray() and appends each element individually, matching standard multipart file upload behavior. Also fixes the model type mapping: type: array with items: { format: binary } now correctly generates Array<Blob> instead of Array<string> ([#5](https://github.com/meta-engine/openapi-angular/issues/5))for...of iteration causes TS2358 — Object.entries(body) returned a specific union type where instanceof Blob failed on primitive members. Added [string, unknown] cast to restore proper type narrowingforEach callbacks to for...of loops; the forEach(... => { / }); brace pattern caused the formatter to miscalculate indentation levelsdiscriminator.mapping — When an OpenAPI schema uses discriminator.propertyName without a mapping object, the mapping is now inferred from oneOf $ref names per the OpenAPI 3.0 specuseQuery/useMutation hook generation with proper destructuring, options pattern for mutations with 2+ params, and hook name collision avoidance--base-url-envIsBinaryResponse flag and conditional apiCall generation in http-utilsDate objects in responses via --date-transformationapiCallStream import resolution and TanStack Query streaming exclusion--documentationuseQuery/useMutation importsapiCallStream import resolutionapi-configString() for type safety.api.ts instead of .service.ts)ServiceSuffix, ExportAsDefault, UseAsyncAwait optionsformat: binary properties mapped to string instead of Blob — Multipart form-data file fields (C# IFormFile) now correctly generate as Blob in TypeScript interfaces. Since File extends Blob, both File objects from <input type="file"> and programmatic Blob instances are accepted ([#4](https://github.com/meta-engine/openapi-angular/issues/4))instanceof Blob check in FormData builder — Object.entries() value typed as unknown so instanceof Blob works without type narrowing issues{expiredOnly}) in httpResource methods are now correctly handled via the shared URL template generatorstyle: deepObject (bracket notation) and explode: false (comma-separated arrays), matching Observable method behaviorhttpResource API doesn't support responseType — Observable methods remain available for these--lazy-resource flag — Adds an optional trigger?: Signal<unknown> parameter to all generated httpResource methods, enabling lazy loading patterns where resources stay idle until explicitly triggered--http-resource when used standalone--date-transformation flag — Automatically converts ISO date strings in API responses to JavaScript Date objects--http-resource flag — Generate Signal-based httpResource methods alongside traditional Observable methods for GET operations (Angular 19.2+)--date-transformation flag — Convert date strings in responses to Date objects