Skip to content

HTML rendering broken / unusable when allOf and oneOf even if spec is considered 0 warning #2562

Open
@LasneF

Description

@LasneF

Describe the bug

given a specification with no error , no warning using redocly lint , the documentation generated via redocly build-docs "crashes" at rendering , and make it unusable

To Reproduce
given the Open API description attached

run redocly build-docs .\component-descriptor.yml

Open the HTML File produce ,

select for kind the value CAT , the HTML rendering is ok
select for kind the value DOG ; the HTML rendering is broken and does not allow anymore to choose a value

Expected behavior

Either the API specification is considered as invalid are not renderable , and the build doc should shoot an error ,can be at the build doc or at the linter level

Either it is considered as correct and the rendering should be OK

Logs
NA

OpenAPI description
cf attached file (notice that yml or json does not matter)

Redocly Version(s)
redocly --version
1.16.0

Node.js Version(s)
node --version
v18.16.0

Additional context

component-descriptor.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions