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
Nested immutable array schemas generate syntactically-invalid readonly readonly type.
readonly readonly
const result = transformSchemaObject({ type: "object", properties: { values: { type: "array", items: { type: "array", items: { type: "string", }, }, }, }, }) expect(result).toBe(`{ readonly values?: readonly (readonly string[])[]; }`, { ctx: { immutableTypes: true } }) /* - Expected + Received { - readonly values?: readonly (readonly string[])[]; + readonly values?: readonly readonly string[][]; } */
openapi-typescript
6.4.5
18.16.1
macOS 13.5
Checklist
npx @redocly/cli@latest lint
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description
Nested immutable array schemas generate syntactically-invalid
readonly readonly
type.openapi-typescript
6.4.5
18.16.1
macOS 13.5
Checklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: