We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
7.6.1
22.12.0
macOS 15.2
CreateRepositoryRequest: description: Lorem ipsum dolor sit amet. type: object discriminator: propertyName: type mapping: azure: '#/components/schemas/CreateAzureRepositoryRequest' git: '#/components/schemas/CreateGitRepositoryRequest'
run npm run generate
npm run generate
CreateRepositoryRequest: Record<string, never>;
A discriminated union of the two types, something like:
"CreateRepositoryRequest": { type: "azure" | "git"; } & ({ type: "azure"; } & components["schemas"]["CreateAzureRepositoryRequest"]) | ({ type: "git"; } & components["schemas"]["CreateGitRepositoryRequest"]);
clone: https://github.com/iulspop/bug-report-openapi-typescript-feb-13-2025 then npm i && npm run generate
npm i && npm run generate
npx @redocly/cli@latest lint
The text was updated successfully, but these errors were encountered:
No branches or pull requests
openapi-typescript version
7.6.1
Node.js version
22.12.0
OS + version
macOS 15.2
Description
Reproduce Bug
Given
When
run
npm run generate
Actual
Expected
A discriminated union of the two types, something like:
Reproduction
clone: https://github.com/iulspop/bug-report-openapi-typescript-feb-13-2025
then
npm i && npm run generate
Expected result
A discriminated union of the two types, something like:
Required
npx @redocly/cli@latest lint
)Extra
The text was updated successfully, but these errors were encountered: