The GenerateCoreTs barrel file generator creates export * from "..." for every .ts file. When two modules in different packages export the same simple name (e.g., Schema trait in models/ and Schema union in models/jsonschema/), the TS compiler rejects the duplicate export.
Current workaround: rename the type alias to avoid collision.
Long-term fix options:
GenerateCoreTs could detect duplicate names and use named re-exports
- The generator could ensure unique simple names across all packages
- Future: OpenAPI/AsyncAPI should use JSON Schema models directly instead of duplicating schema entities, eliminating the shared
Schema trait
The
GenerateCoreTsbarrel file generator createsexport * from "..."for every.tsfile. When two modules in different packages export the same simple name (e.g.,Schematrait inmodels/andSchemaunion inmodels/jsonschema/), the TS compiler rejects the duplicate export.Current workaround: rename the type alias to avoid collision.
Long-term fix options:
GenerateCoreTscould detect duplicate names and use named re-exportsSchematrait