redocly-cli
redocly-cli copied to clipboard
Join does not add component prefix to discriminator mapping if the name of the schema coincidentally contains the prefix.
Describe the bug
Assume a schema with name CreateSomethingRequest
and join is called with --prefix-components-with-info-prop
where the info property contains Something
. Then the schema definition itself is prefixed, but references to that schema inside a discriminator mapping are not prefixed. This results in an invalid openapi.
OpenAPI description 3.0.4
Redocly Version(s)
1.9.1
Node.js
Version(s)
Additional context
See comment https://github.com/Redocly/redocly-cli/pull/1444/files#r1504217718
Hi @simon-spinner! It looks like you know how to fix that. Just in case, we accept pull requests here 😉
/assign @Ayush9026 i will solve this issue.