Open alivedise opened 3 months ago
should be able to merge stuff
This is not valid behavior for JSON Schema, which is the validation language used for OpenAPI.
Each subschema in an allOf
is validated independently and cannot "see into" or "merge" other schemas. The validation here is correctly providing a warning
per the JSON Schema specification.
The reason you see the output on the html version is because all schemas have been resolved and the final output is compiled.
Describe the bug redocly lint does not consider allOf
Expected behavior redocly lint should be able to merge stuff before linting
Minimal reproducible OpenAPI snippet(if possible) I'd this openapi yaml and when I turn on 'operation-4xx-problem-details-rfc7807' to lint it, it would bring errors about type is missing; however type is defined in Problem and if I use redocly build-docs the type field is correctly generated in the html.
Screenshots The correctly generated html with type field.
Additional context error message