Open ootkin opened 8 months ago
This looks like a bug. Thank you for finding this!
See also: #913
We've got some custom 'x-' properties right inside the root object (same level as 'openapi', 'info', ...), which get lost upon 'join'. Maybe this is the same issue?
Are there any workarounds until it's fixed? Except blunt text append to generated schema.
@MarcelHoell not exactly the same, but rather similar. Currently, we have to specify the fields to be merged in the code, and I think it will be difficult to merge unknown fields correctly (although it is still worth investigating).
@artsiommiksiuk unfortunately I cannot come up with a workaround here. Just in case, we accept PRs here!
Describe the bug
security
section is not joined in the output if a schema specify the security section in the root levelTo Reproduce
spec1.yaml
:spec2.yaml
:run command:
npx @redocly/cli join spec1.yaml spec2.yaml -o joined.yaml
output:
Expected behavior
the security in the root level must be present in the output
OpenAPI description
oas version: 3.1
Redocly Version(s)
1.6.0
Node.js
Version(s)v20.10.0