fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add inAllOf flag to SchemaState interface

Technical explanation:
- Added optional boolean flag inAllOf to SchemaState interface
- This flag tracks when a schema is being processed within an allOf composition
- Purpose: prevents generation of [key: string]: never index signatures for
empty objects with additionalProperties: false inside allOf contexts
- The flag is used to avoid overriding inherited properties from other schemas
in the composition, which would break TypeScript intersection types
- Shared across all OpenAPI parser versions (2.0.x, 3.0.x, 3.1.x) for consistency

Impact: Core type definition change that enables the allOf additionalProperties fix

MaxwellAt ff574433 4067da8c

+7
+7
packages/openapi-ts/src/openApi/shared/types/schema.d.ts
··· 6 6 $ref?: string; 7 7 circularReferenceTracker: Set<string>; 8 8 /** 9 + * True if current schema is part of an allOf composition. This is used to 10 + * avoid emitting [key: string]: never for empty objects with 11 + * additionalProperties: false inside allOf, which would override inherited 12 + * properties from other schemas in the composition. 13 + */ 14 + inAllOf?: boolean; 15 + /** 9 16 * True if current schema is an object property. This is used to mark schemas 10 17 * as "both" access scopes, i.e. they can be used in both payloads and 11 18 * responses. Without this field, we'd be overusing the "both" value which