Skip to content

The key property named deprecated is wrong behavior #626

New issue

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

Open
miyaji255 opened this issue Sep 1, 2024 · 1 comment · May be fixed by #651
Open

The key property named deprecated is wrong behavior #626

miyaji255 opened this issue Sep 1, 2024 · 1 comment · May be fixed by #651

Comments

@miyaji255
Copy link

I Cannot generate OpenAPI v3.1.0 types from json schema.

https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.1/schema.json

> curl https://spec.openapis.org/oas/3.1/schema/2022-10-07 | pnpm json2ts > ./src/openapi/OpenAPIV31.d.ts
[
  'Error at key "properties" in file "undefined": deprecated must be a boolean'
]
[
  'Error at key "properties" in file "undefined": deprecated must be a boolean'
]
[
  ValidationError
      at C:\Users\user\Documents\workspace\hono-typia-openapi\node_modules\.pnpm\j[email protected]\node_modules\json-schema-to-typescript\dist\src\index.js:97:19
      at Generator.next (<anonymous>)
      at fulfilled (C:\Users\user\Documents\workspace\hono-typia-openapi\node_modules\.pnpm\j[email protected]\node_modules\json-schema-to-typescript\dist\src\index.js:5:58)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
]
BatLeDev added a commit to BatLeDev/json-schema-to-typescript that referenced this issue Feb 11, 2025
@dwjohnston
Copy link

Just here to say that I'm running into the exact same problem. It's surprising that a type definition for OpenAPI isn't more available on the internet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants