redoc icon indicating copy to clipboard operation
redoc copied to clipboard

`allOf` schema with multiple patterns is incorrectly shown in generated API Doc File

Open fulstadev opened this issue 5 months ago • 2 comments

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):

Image

Instead, you would expect both schemas to show up in the generated docs, similarly to how the docs are generated for oneOf schemas.

fulstadev avatar Jul 21 '25 11:07 fulstadev

Is it the same when building the docs with redocly build-docs file.json?

tatomyr avatar Jul 21 '25 11:07 tatomyr

Transferred, related to CE Redoc

AlexVarchuk avatar Jul 25 '25 07:07 AlexVarchuk