You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specification should be considered valid and schemas should be generated normally.
Actual behavior
InvalidTypeError: Type "http" is not a valid type
at validateType (C:\Users\marek\GitHub\openapi-ts-json-schema-poc\node_modules\@openapi-contrib\openapi-schema-to-json-schema\dist\lib\converters\schema.js:93:15)
at convertSchema (C:\Users\marek\GitHub\openapi-ts-json-schema-poc\node_modules\@openapi-contrib\openapi-schema-to-json-schema\dist\lib\converters\schema.js:75:9)
at convertProperties (C:\Users\marek\GitHub\openapi-ts-json-schema-poc\node_modules\@openapi-contrib\openapi-schema-to-json-schema\dist\lib\converters\schema.js:112:22)
at convertSchema (C:\Users\marek\GitHub\openapi-ts-json-schema-poc\node_modules\@openapi-contrib\openapi-schema-to-json-schema\dist\lib\converters\schema.js:58:39)
at convertFromSchema (C:\Users\marek\GitHub\openapi-ts-json-schema-poc\node_modules\@openapi-contrib\openapi-schema-to-json-schema\dist\lib\converters\schema.js:14:23)
at openapiSchemaToJsonSchema (C:\Users\marek\GitHub\openapi-ts-json-schema-poc\node_modules\@openapi-contrib\openapi-schema-to-json-schema\dist\index.js:52:37)
at convertOpenApiToJsonSchema (C:\Users\marek\GitHub\openapi-ts-json-schema-poc\node_modules\openapi-ts-json-schema\dist\utils\convertOpenApiToJsonSchema.js:16:71)
at openapiToTsJsonSchema (C:\Users\marek\GitHub\openapi-ts-json-schema-poc\node_modules\openapi-ts-json-schema\dist\openapiToTsJsonSchema.js:30:70)
at async waitForActual (node:assert:800:5)
at async Function.doesNotReject (node:assert:941:33)
🐛 Bug Report
Generator validates incorrectly security schemas with
type: http
andscheme: bearer
and rejects it.To reproduce, I've created a test repository and a test workflow. The issue happens both on windows and linux.
Reproduction
Expected behavior
Specification should be considered valid and schemas should be generated normally.
Actual behavior
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: