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
/home/sbe/test/test-ts-oai/node_modules/@redocly/openapi-core/lib/ref-utils.js:45
return decodeURIComponent(fragment.replace(/~1/g, '/').replace(/~0/g, '~'));
^
URIError: URI malformed
at decodeURIComponent (<anonymous>)
at unescapePointer (/home/sbe/test/test-ts-oai/node_modules/@redocly/openapi-core/lib/ref-utils.js:45:12)
at Array.map (<anonymous>)
at parsePointer (/home/sbe/test/test-ts-oai/node_modules/@redocly/openapi-core/lib/ref-utils.js:60:31)
at parseRef (/home/sbe/test/test-ts-oai/node_modules/@redocly/openapi-core/lib/ref-utils.js:56:18)
at createRef (file:///home/sbe/test/test-ts-oai/node_modules/openapi-typescript/dist/lib/utils.js:34:26)
at transformSchemaObjectCore (file:///home/sbe/test/test-ts-oai/node_modules/openapi-typescript/dist/transform/schema-object.js:315:31)
at transformSchemaObjectWithComposition (file:///home/sbe/test/test-ts-oai/node_modules/openapi-typescript/dist/transform/schema-object.js:122:28)
at transformSchemaObject (file:///home/sbe/test/test-ts-oai/node_modules/openapi-typescript/dist/transform/schema-object.js:6:18)
at transformSchemaObjectCore (file:///home/sbe/test/test-ts-oai/node_modules/openapi-typescript/dist/transform/schema-object.js:313:23)
as it tries to convert the key "25%" to a reference. having 25% as a property name seems to only be accepted if that key resolves to a primitive, but having it be an object for example renders this problem
Reproduction
run openapi-typescript with the following schema as input
openapi-typescript version
7.6.1
Node.js version
22.12.0
OS + version
Arch Linux / Linux 6.14.1-2-cachyos
Description
Process crashes with
as it tries to convert the key "25%" to a reference. having 25% as a property name seems to only be accepted if that key resolves to a primitive, but having it be an object for example renders this problem
Reproduction
run
openapi-typescript
with the following schema as inputExpected result
codegen runs successfully and creates valid output
Required
npx @redocly/cli@latest lint
)Extra
If presented with a solution the maintainers want to implement, I may be willing to do the implementation
The text was updated successfully, but these errors were encountered: