Changelog

Release history

77 published releases, each linked to its exact version.

OpenAPI · Dart Dio1.0.0

  • Release the Dart Pub CLI with MetaEngine.Dart.OpenApi.Dio 1.0.0.
  • Generate typed Dart/Dio clients and models from OpenAPI JSON or YAML files and HTTP(S) URLs.
  • Configure Dio timeouts and OAuth2 refresh with client credentials or authorization code.
  • Generate native HTTP QUERY requests with typed bodies from OpenAPI 3.2 query operations.

OpenAPI · React1.3.0

  • Generate clients for OpenAPI 3.2 query operations, including their request bodies.
  • Fix --date-transformation for scalar date arrays and nested arrays containing date fields. Null entries are preserved.

OpenAPI · Fetch1.2.0

  • Generate clients for OpenAPI 3.2 query operations, including their request bodies.
  • Fix --date-transformation for scalar date arrays and nested arrays containing date fields. Null entries are preserved.

OpenAPI · Angular1.5.0

  • Generate clients for OpenAPI 3.2 query operations, including their request bodies.
  • Fix --date-transformation for scalar date arrays and nested arrays containing date fields. Null entries are preserved.

OpenAPI · React1.2.2

  • JSON error bodies using application/problem+json or another +json media type are now parsed into HttpError.body, including mixed-case media types and charset parameters.
  • Models referenced only by error responses, together with their enum and base-model dependencies, are now retained when using --include-tags.
  • Inline error-response bodies now generate named models, including when no tag filter is used.
  • Nullable primitive aliases preserve | null in generated TypeScript.
  • Models using allOf preserve required inherited properties and compatible property refinements.
  • Bundles MetaEngine.TypeScript.OpenApi.React 1.2.3.
  • Updated the bundled OpenAPI reader to Microsoft.OpenApi 3.5.4, which fixes circular-reference parsing failures ([CVE-2026-49451](https://github.com/advisories/GHSA-v5pm-xwqc-g5wc)).

OpenAPI · Fetch1.1.2

  • JSON error bodies using application/problem+json or another +json media type are now parsed into HttpError.body, including mixed-case media types and charset parameters.
  • Models referenced only by error responses, together with their enum and base-model dependencies, are now retained when using --include-tags.
  • Inline error-response bodies now generate named models, including when no tag filter is used.
  • Nullable primitive aliases preserve | null in generated TypeScript.
  • Models using allOf preserve required inherited properties and compatible property refinements.
  • Bundles MetaEngine.TypeScript.OpenApi.Fetch 1.1.3.
  • Updated the bundled OpenAPI reader to Microsoft.OpenApi 3.5.4, which fixes circular-reference parsing failures ([CVE-2026-49451](https://github.com/advisories/GHSA-v5pm-xwqc-g5wc)).

OpenAPI · Angular1.4.2

  • Models and enums referenced only by error responses are now generated, including when using --include-tags. All declared response statuses and media types participate in model discovery; no extra flag is required.
  • Inline error response bodies and their inherited 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.
  • Nullable primitive aliases preserve 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.

OpenAPI · C# HttpClient1.0.3

  • Primitive schema references preserve JSON member names. Properties that reference primitive schemas now carry 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.

OpenAPI · Angular1.4.1

  • Child schemas composed with 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.

Protobuf · C# HttpClient1.0.1

  • --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.
  • Consistent indentation in generated client methods. Some service method bodies were dedented; all generated client code is now uniformly indented.

GraphQL · C# HttpClient1.0.1

  • --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.
  • Consistent indentation in generated client methods. Some query/mutation client method bodies were dedented; all generated client code is now uniformly indented.

OpenAPI · C# HttpClient1.0.2

  • Spec defaults become C# default arguments. A required parameter that carries a schema 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).
  • Overlapping union variants resolve to the right type. When two object members of a union shared required-property sets, the converter returned the first match and could silently deserialize to the wrong variant. It now discriminates on the distinguishing property set.
  • --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.
  • Consistent indentation in generated client methods. Some service method bodies and brace-less if continuations were dedented; all generated client code is now uniformly indented.

OpenAPI · C# HttpClient1.0.1

  • --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.

Protobuf · C# HttpClient1.0.0

  • Initial release — C# code generation from Protobuf (.proto) definitions, distributed as a dotnet tool
  • gRPC-Connect services — one typed HttpClient 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, --verbose

GraphQL · C# HttpClient1.0.0

  • Initial release — C# code generation from a GraphQL schema (SDL), distributed as a dotnet tool
  • HttpClient services — typed query, mutation, and subscription clients
  • System.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

Protobuf · Angular1.1.1

  • --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.

OpenAPI · Angular1.3.1

  • New: --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

GraphQL · Angular1.1.0

  • --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

OpenAPI · C# HttpClient1.0.0

  • Initial release — C# code generation from OpenAPI specifications, distributed as a dotnet tool
  • HttpClient services — one typed service class per OpenAPI tag
  • System.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, --verbose

Protobuf · Python httpx1.0.0

  • Initial release — Python code generation from Protocol Buffers definitions
  • Pydantic v2 models — BaseModel with ConfigDict, typed fields, standalone enum types
  • Async httpx client — one service class per protobuf service, gRPC-Connect over HTTP
  • camelCase aliases — snake_case properties with Field(alias=...) mapping to the proto3 JSON wire names
  • --documentation — docstring generation from .proto comments
  • --dataclass — generate @dataclass models instead of Pydantic v2
  • --verbose — verbose logging
  • Self-contained — each platform wheel bundles a native binary; no .NET runtime required

GraphQL · Python httpx1.0.0

  • Initial release — Python code generation from GraphQL schemas (SDL)
  • Pydantic v2 models — BaseModel with ConfigDict, typed required/optional fields, standalone enum types
  • Async httpx client — typed service methods over a shared transport
  • GraphQL — --fragments (reusable named fragments), --one-of-inputs (@oneOf tagged-union inputs), --custom-scalar (map scalars to str/int/float/bool/datetime/Any)
  • Auth & resilience — --bearer-auth, --basic-auth, --retries, --timeout, --error-handling, --custom-header, --base-url-env, --sync-methods, --middleware
  • --documentation, --camel-case-aliases, --options-threshold, --service-suffix, --verbose
  • Self-contained — each platform wheel bundles a native binary; no .NET runtime required

OpenAPI · Python httpx1.0.0

  • Initial release — Python code generation from OpenAPI specifications
  • Pydantic v2 models — BaseModel with ConfigDict, typed required/optional fields, standalone enum types
  • Async httpx client — one service class per OpenAPI tag
  • --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, --verbose
  • Self-contained — each platform wheel bundles a native binary; no .NET runtime required

GraphQL · Kotlin Ktor1.0.0

  • Ktor GraphQL clients — coroutine-based suspend fun query and mutation clients
  • WebSocket subscriptions — a subscription client over graphql-transport-ws, with a configurable subscriptionUrl path
  • Models — @Serializable Kotlin data classes and enums generated from SDL types
  • Authentication — bearerAuth, bearerAuthHeader, basicAuth, and repeatable customHeaders from environment variables
  • Retries — retry enables exponential backoff on transient failures
  • Timeouts — timeout, or split timeoutConnect / timeoutRead / timeoutWrite
  • Error handling — errorHandling enables smart error handling based on HTTP semantics
  • KDoc — documentation emits doc comments from SDL descriptions
  • Fragments — fragments emits reusable named fragments for object-type selections
  • @oneOf inputs — oneOfInputs generates idiomatic tagged-union input types
  • Options-object pattern — optionsThreshold collapses long parameter lists into an options object
  • Output management — clean and configurable outputDirectory

Protobuf · Kotlin Ktor1.0.0

  • Ktor gRPC-Connect clients — coroutine-based suspend fun clients over the Connect protocol
  • Models — @Serializable Kotlin data classes generated from Protobuf messages
  • Authentication — bearerAuth, bearerAuthHeader, basicAuth, and repeatable customHeaders from environment variables
  • Timeouts — timeout, or split timeoutConnect / timeoutRead / timeoutWrite
  • KDoc — documentation emits doc comments from Protobuf descriptions
  • Validation annotations — validationAnnotations emits Jakarta Bean Validation annotations on generated data classes
  • Strict enums — strictEnums opts out of the synthetic UNKNOWN enum fallback
  • Options-object pattern — optionsThreshold collapses long parameter lists into an options object
  • Output management — clean and configurable outputDirectory

OpenAPI · Kotlin Ktor1.0.0

  • Ktor HTTP client services — coroutine-based suspend fun clients with a constructor-injected base URL
  • Models — @Serializable Kotlin data classes generated from OpenAPI schemas, with null safety (required fields non-nullable, optional fields nullable)
  • Authentication — bearerAuth, bearerAuthHeader, basicAuth, and repeatable customHeaders from environment variables
  • Resilience — timeout (or split timeoutConnect / timeoutRead / timeoutWrite) and retry with exponential backoff
  • Error handling — errorHandling enables smart error handling on the Ktor client
  • KDoc — documentation emits doc comments from OpenAPI descriptions and examples
  • Validation annotations — validationAnnotations emits Jakarta Bean Validation annotations from spec constraints
  • Strict enums — strictEnums opts out of the synthetic UNKNOWN enum fallback
  • Tag filtering — includeTags generates only the operations you need
  • Options-object pattern — optionsThreshold collapses long parameter lists into an options object
  • Strict validation — strictValidation for stricter OpenAPI spec checking
  • Output management — clean and configurable outputDirectory

GraphQL · Java Spring1.0.0

  • Spring RestClient clients — typed Query, Mutation, and Subscription clients with base-URL injection via a Spring property
  • Models — Java records generated from GraphQL types, with sealed interfaces for @oneOf tagged-union inputs and unions
  • Fragments — fragments emits reusable named fragments for object-type selections
  • Authentication — bearerAuth, bearerAuthHeader, basicAuth, and repeatable customHeaders from environment variables
  • Resilience — timeout (or split timeoutConnect / timeoutRead) and retry with exponential backoff
  • Error handling — errorHandling enables smart error handling on the HTTP client
  • JavaDoc — documentation emits doc comments from GraphQL schema descriptions
  • Options-object pattern — optionsThreshold collapses long parameter lists into an options object
  • Output management — clean and configurable outputDirectory

Protobuf · Java Spring1.0.0

  • Spring RestClient services — typed gRPC-Connect service clients with base-URL injection via a Spring property
  • Models — Java records generated from Protobuf messages, with discriminated unions for oneof groups
  • Authentication — bearerAuth, bearerAuthHeader, basicAuth, and repeatable customHeaders from environment variables
  • Resilience — timeout (or split timeoutConnect / timeoutRead) and retry with exponential backoff
  • Error handling — errorHandling enables smart error handling on the Connect client
  • JavaDoc — documentation emits doc comments from Protobuf descriptions
  • Options-object pattern — optionsThreshold collapses long parameter lists into an options object
  • Output management — clean and configurable outputDirectory

OpenAPI · Java Spring1.0.0

  • Spring RestClient services — typed service clients with base-URL injection via a Spring property
  • Models — Java types generated from OpenAPI schemas
  • Authentication — bearerAuth, bearerAuthHeader, basicAuth, and repeatable customHeaders from environment variables
  • Resilience — timeout (or split timeoutConnect / timeoutRead) and retry with exponential backoff
  • Error handling — errorHandling enables smart error handling on the RestClient
  • JavaDoc — documentation emits doc comments from OpenAPI descriptions and examples
  • Tag filtering — includeTags generates only the operations you need
  • Options-object pattern — optionsThreshold collapses long parameter lists into an options object
  • Strict validation — strictValidation for stricter OpenAPI spec checking
  • Output management — clean and configurable outputDirectory

GraphQL · Angular1.0.0

  • Angular 14+ — @Injectable services over HttpClient with RxJS observables
  • Queries, mutations & subscriptions — typed operations generated directly from a GraphQL schema (SDL)
  • Native dependency injection — configurable providedIn scope, base-URL injection token, and optional functional inject()
  • Tree-shakeable — separate file per model and per operation type
  • Production-ready — generated interceptor infrastructure, smart HTTP-status error handling, and exponential-backoff retries, available via CLI flags
  • --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

GraphQL · Fetch1.0.0

  • Framework-agnostic — runs on Node, browsers, Vite, SvelteKit, Next.js, Bun, Deno, and any TS runtime that ships fetch
  • Native Fetch API — no runtime dependencies in generated code
  • Queries, mutations & subscriptions — typed operations generated directly from a GraphQL schema (SDL), each collapsing to a one-line call to a shared executeGraphQL<T> helper
  • Tree-shakeable — separate file per model and per operation type
  • Production-ready out of the box — Bearer auth, timeouts, retries, custom headers from env vars, middleware hooks, and smart HTTP-status error handling, all available via CLI flags
  • --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 everything

GraphQL · React1.0.0

  • React 18+ — generated async API functions plus optional TanStack Query hooks
  • Queries, mutations & subscriptions — typed operations generated directly from a GraphQL schema (SDL), each collapsing to a one-line call to a shared executeGraphQL<T> helper
  • Native Fetch API — no runtime dependencies in the generated client
  • Tree-shakeable — separate file per model and per operation type
  • Production-ready — smart HTTP-status error handling and exponential-backoff retries, available via CLI flags
  • --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

Protobuf · React1.0.0

  • React + Protobuf — services, messages, and enums generated directly from .proto sources
  • gRPC/Connect transport — over the native Fetch API, no runtime dependencies in the generated client
  • TanStack Query — opt into useQuery/useMutation hooks alongside the plain API functions
  • gRPC-native error handling — a GrpcStatusCode taxonomy and GrpcError type, classified by gRPC status code rather than HTTP status
  • Production-ready — Bearer/Basic auth, timeouts, custom headers from env vars, and middleware hooks, all via CLI flags
  • Tree-shakeable — separate file per model and per service
  • --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.

Protobuf · Angular1.0.0

  • Angular gRPC-Web — services, messages, and enums generated directly from .proto sources
  • gRPC/Connect transport — POST-based gRPC-Web, the gRPC-native sibling of MetaEngine's HTTP transports
  • Native Angular DI — @Injectable services, configurable providedIn scope, and a base-URL injection token
  • Modern inject() — opt into functional injection (Angular 14+)
  • gRPC-native error handling — a GrpcStatusCode taxonomy and GrpcError type, classified by gRPC status code rather than HTTP status
  • HTTP interceptors — Bearer/Basic auth delivered as Angular HTTP interceptors via the generated provideApiInterceptors() factory
  • Tree-shakeable — separate file per model and per service
  • --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.

Protobuf · Fetch1.0.0

  • Framework-agnostic — runs on Node, browsers, Vite, SvelteKit, Next.js, Bun, Deno, and any TS runtime that ships fetch
  • Native Fetch API — no runtime dependencies in generated code
  • gRPC/Connect transport — services, messages, and enums generated directly from .proto sources
  • Tree-shakeable — separate file per model and per service
  • Production-ready out of the box — Bearer/Basic auth, timeouts, custom headers from env vars, middleware hooks, and gRPC-native error handling, all available via CLI flags
  • --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.

OpenAPI · Fetch1.1.1

  • OpenAPI 3.1 support — specs written against OpenAPI 3.1 / JSON Schema 2020-12 are now parsed and generated correctly. 3.0 specs are unaffected.
  • New: --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.
  • Array nullability is preserved: 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.
  • Top-level webhooks: schemas generate typed payload interfaces.
  • Array-typed query parameters with inline enum items render as Array<'a' | 'b'> instead of Array<string>.
  • Backslash and control characters in inline-enum string literals are now escaped, producing valid TypeScript.
  • With --documentation, auto-generated @returns text uses the resource noun instead of leaking the URL action segment.
  • Streaming requests no longer hardcode Content-Type: application/json; FormData and Blob bodies now let the platform set the boundary, fixing multipart uploads.
  • Generated service files no longer drop 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 ~.

OpenAPI · React1.2.1

  • OpenAPI 3.1 support — specs written against OpenAPI 3.1 / JSON Schema 2020-12 are now parsed and generated correctly. 3.0 specs are unaffected.
  • New: --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.
  • Array nullability is preserved: 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.
  • Top-level webhooks: schemas generate typed payload interfaces.
  • Array-typed query parameters with inline enum items render as Array<'a' | 'b'> instead of Array<string>.
  • Backslash and control characters in inline-enum string literals are now escaped, producing valid TypeScript.
  • With --documentation, auto-generated @returns text uses the resource noun instead of leaking the URL action segment.
  • The generated 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.
  • Generated hooks no longer truncate parameters whose type contains a comma (e.g. 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 ~.

OpenAPI · Angular1.2.1

  • OpenAPI 3.1 support — specs written against OpenAPI 3.1 / JSON Schema 2020-12 are now parsed and generated correctly. 3.0 specs are unaffected.
  • New: --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.
  • Array nullability is preserved: 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.
  • Top-level webhooks: schemas generate typed payload interfaces.
  • Array-typed query parameters with inline enum items render as Array<'a' | 'b'> instead of Array<string>.
  • Backslash and control characters in inline-enum string literals are now escaped, producing valid TypeScript.
  • With --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.
  • Multiple interceptors sharing an Angular import no longer emit duplicate import lines.
  • --strict-validation no longer rejects valid 3.1 specs whose component keys contain / or ~.

OpenAPI · Fetch1.0.1

  • Fixed: --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.

OpenAPI · Angular1.1.0

  • Inline enums consolidated by default — duplicate inline enum definitions are deduplicated and emitted as a single named type instead of repeating identical literal unions at each usage site
  • Inline array-of-object items emitted as named types — array properties whose items are inline object schemas now produce a named interface, e.g. users: User[] instead of users: { id: number; ... }[]
  • Discriminator mapping literals pinned on union subtypes — each subtype carries its discriminator value as a literal type so TypeScript narrows correctly when switching on the discriminator
  • @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 off
  • No inline handleError<T> body in the base service (handled by the error interceptor)
  • No timeout(N) pipe operator in service methods (handled by the timeout interceptor)
  • No empty Authorization: '' header placeholder (set by the bearer-auth interceptor)
  • Fixed: --http-resource options leaking across schemas — in projects with multiple OpenAPI schemas, options scoped to one schema no longer leak to others
  • Fixed: --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
  • Fixed: --error-handling widens nullable types twice — nullable response types are no longer typed as T | null | null
  • Fixed: JSDoc body asterisks aligned to column 3 — multi-line JSDoc inside service files now matches the canonical * -prefixed body alignment
  • Fixed: multi-line JSDoc continuation prefixes — wrapped JSDoc lines correctly start with * , eliminating stray indentation
  • Fixed: inline synthetic type names capped at 100 characters — deeply nested inline schemas no longer produce overly long generated type names
  • Fixed: discriminated union members dropping wire annotations — inline oneOf members combined with a discriminator keep their wire-format annotations in the generated TypeScript

OpenAPI · React1.1.0

  • Generated client now exports a createClient() 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({ ... })}>
  • Inline enums consolidated by default — duplicate inline enum definitions are deduplicated and emitted as a single named type instead of repeating identical literal unions at each usage site
  • Inline array-of-object items emitted as named types — array properties whose items are inline object schemas now produce a named interface, e.g. users: User[] instead of users: { id: number; ... }[]
  • Discriminator mapping literals pinned on union subtypes — each subtype carries its discriminator value as a literal type so TypeScript narrows correctly when switching on the discriminator
  • @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 off
  • Network errors during fetch wrapped as HttpError(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
  • Fixed: --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
  • Fixed: blank line after JSDoc */ in service files — the trailing blank line between a comment block and the function it documents is removed
  • Fixed: multi-line JSDoc continuation prefixes — wrapped JSDoc lines correctly start with * , eliminating stray indentation
  • Fixed: inline synthetic type names capped at 100 characters — deeply nested inline schemas no longer produce overly long generated type names
  • Fixed: array-branch FormData object serialization — when a multipart field is an array of objects, each entry is serialized correctly instead of being collapsed
  • Fixed: discriminated union members dropping wire annotations — inline oneOf members combined with a discriminator keep their wire-format annotations in the generated TypeScript

OpenAPI · Fetch1.0.0

  • Framework-agnostic — runs on Node, browsers, Vite, SvelteKit, Next.js, Bun, Deno, and any TS runtime that ships fetch
  • Native Fetch API — no runtime dependencies in generated code
  • Tree-shakeable — separate file per model and per service
  • Production-ready out of the box — Bearer auth, timeouts, retries with exponential backoff, custom headers from env vars, and middleware hooks all available via CLI flags
  • --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

OpenAPI · React1.0.3

  • New: --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

OpenAPI · Angular1.0.9

  • (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))
  • New: --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

OpenAPI · Angular1.0.8

  • New: --interceptors flag — Generates an api-interceptors.ts file with Angular-native HTTP interceptor infrastructure:
  • Fixed: 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))
  • Fixed: FormData 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 narrowing
  • Fixed: FormData indentation drift — Switched from forEach callbacks to for...of loops; the forEach(... => { / }); brace pattern caused the formatter to miscalculate indentation levels
  • Fixed: discriminated unions without explicit discriminator.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 spec

OpenAPI · React1.0.2

  • TanStack Query integration — full useQuery/useMutation hook generation with proper destructuring, options pattern for mutations with 2+ params, and hook name collision avoidance
  • Configurable base URL — replace hardcoded base URL with configurable environment variable name via --base-url-env
  • Blob/binary response support — deterministic binary detection with explicit IsBinaryResponse flag and conditional apiCall generation in http-utils
  • Response date transformation — automatic conversion of date strings to Date objects in responses via --date-transformation
  • Custom headers, bearer auth, and timeout support — unified on base HTTP shared options
  • Server streaming support — apiCallStream import resolution and TanStack Query streaming exclusion
  • Documentation generation — opt-in JSDoc generation via --documentation
  • Naming transformations — custom file type name placeholders and file name transformations support
  • Fix optional chaining inconsistency in query params and headers
  • Fix HTTP timeout generation and empty header filtering
  • Fix TanStack Query hook name collision with useQuery/useMutation imports
  • Fix apiCallStream import resolution
  • Fix mutation hook parameter order destructuring
  • Fix environment variable check in api-config
  • Fix quality-check findings: env var wiring, error dedup, queryKey comma
  • Wrap header values with String() for type safety
  • Remove non-null assertion operators from HTTP call generator
  • Fix naming conventions in React hooks
  • Align file naming with export naming (.api.ts instead of .service.ts)
  • ESLint compliance improvements in generated files
  • Remove unused ServiceSuffix, ExportAsDefault, UseAsyncAwait options

OpenAPI · Angular1.0.7

  • Fixed: format: 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))
  • Fixed: instanceof Blob check in FormData builder — Object.entries() value typed as unknown so instanceof Blob works without type narrowing issues
  • Fixed: httpResource URL path placeholders — Unresolved path parameters (e.g. {expiredOnly}) in httpResource methods are now correctly handled via the shared URL template generator
  • Fixed: false "Circular reference detected" comments on union types — oneOf/union types no longer emit incorrect circular reference warnings
  • deepObject and explode:false query parameters — httpResource methods now support style: deepObject (bracket notation) and explode: false (comma-separated arrays), matching Observable method behavior
  • Header parameter support — httpResource methods now include header parameters in the request object
  • Skip binary/text response GETs — httpResource methods are no longer generated for endpoints returning binary or text/plain responses, since Angular's httpResource API doesn't support responseType — Observable methods remain available for these

OpenAPI · Angular1.0.4

  • New: --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
  • Implies --http-resource when used standalone

OpenAPI · Angular1.0.2

  • New: --http-resource flag — Generate Signal-based httpResource methods alongside traditional Observable methods for GET operations (Angular 19.2+)
  • New: --date-transformation flag — Convert date strings in responses to Date objects