redoc
redoc copied to clipboard
`allOf` schema with multiple patterns is incorrectly shown in generated API Doc File
Describe the bug
When you specify the following JSON Schema:
"allOf": [
{
"type": "string",
"description" : "first",
"pattern": "^(?=.*_session_id=)(?=.*auth_token=).*$"
},
{
"type": "string",
"description" : "second",
"pattern": ".*_tracking_id=.*"
}
]
The docs generated e.g. via redocly preview-docs file.json show this as mixed up and incomplete result (note how the description "first" is shown as the description of the second allOf case):
Instead, you would expect both schemas to show up in the generated docs, similarly to how the docs are generated for oneOf schemas.
Is it the same when building the docs with redocly build-docs file.json?
Transferred, related to CE Redoc