redocly-cli icon indicating copy to clipboard operation
redocly-cli copied to clipboard

Join does not add component prefix to discriminator mapping if the name of the schema coincidentally contains the prefix.

Open simon-spinner opened this issue 11 months ago • 2 comments

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

simon-spinner avatar Feb 27 '24 13:02 simon-spinner

Hi @simon-spinner! It looks like you know how to fix that. Just in case, we accept pull requests here 😉

tatomyr avatar Feb 27 '24 13:02 tatomyr

/assign @Ayush9026 i will solve this issue.

Ayush9026 avatar Apr 05 '24 12:04 Ayush9026