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
Description
When referencing multiple schemas within an array, the resulting typescript type is
Input
{ "global.markets": { "items": { "$ref": "#/$defs/global.market" }, "uniqueItems": true }, "global.market": { "oneOf": [ { "$ref": "#/$defs/global.region-code", "title": "Region" }, { "$ref": "#/$defs/global.country-code", "title": "Country" } ] }, "global.region-code": { "enum": [ "northern_africa", "eastern_africa", "oceania" ] }, "global.country-code": { "enum": [ "ABW", "AFG", "AGO" ] } }
Result:
"global.market": components["schemas"]["global.region-code"] | components["schemas"]["global.country-code"]; "global.markets": unknown;
openapi-typescript
6.2.6
v19.6.0
macOS 13.0.1
Expected result
global.markets should be types as an array referencing global.market
global.markets
global.market
Checklist
npx @redocly/cli@latest lint
The text was updated successfully, but these errors were encountered:
Hey there, because I'm idiot, I checked your issues regarding tuples, arrays and items and completely missed #1131 - this is probably a related issue.
Sorry, something went wrong.
The latest release fixes #1131, but I’ll leave this issue open to double-check; this may be a different bug.
Going to mark the issue as closed, because I believe the issue is resolved? But please let me know if updated versions didn’t address the issue.
No branches or pull requests
Description
When referencing multiple schemas within an array, the resulting typescript type is
Input
Result:
openapi-typescript
6.2.6
v19.6.0
macOS 13.0.1
Expected result
global.markets
should be types as an array referencingglobal.market
Checklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: