Summary
The OpenAPI generator crashes when it tries to emit a component schema for a oneof that contains a void variant.
Current behavior
Running bdlc openapi3 against the generated Swagger petstore BDL fails with GenerateOasError: Unknown primitive type: void.
Expected behavior
oneof variants that use void should still be representable in generated OpenAPI so the overall schema generation can complete.
Impact
This blocks end-to-end OpenAPI regeneration for schemas that model response variants with empty bodies.
Relevant files
bdl-ts/src/generator/openapi/oas-30-generator.ts
bdl-ts/src/generator/openapi/oas-30-generator.test.ts
Summary
The OpenAPI generator crashes when it tries to emit a component schema for a
oneofthat contains avoidvariant.Current behavior
Running
bdlc openapi3against the generated Swagger petstore BDL fails withGenerateOasError: Unknown primitive type: void.Expected behavior
oneofvariants that usevoidshould still be representable in generated OpenAPI so the overall schema generation can complete.Impact
This blocks end-to-end OpenAPI regeneration for schemas that model response variants with empty bodies.
Relevant files
bdl-ts/src/generator/openapi/oas-30-generator.tsbdl-ts/src/generator/openapi/oas-30-generator.test.ts