Skip to content

Unnamed enum values in anyOf not rendered #1285

@andrejohansson

Description

@andrejohansson

Describe the bug

The following type:

    "field": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/AttributeId"
        },
        {
          "enum": [
            "dealValue",
            "price",
            "userRating",
            "popularityScore"
          ]
        }
      ]
    },

Does not render the enum values for some reason.

Expected behavior

To see the enum values similar to reDoc.

Current behavior

Nothing is shown.

Screenshots

Image

Same type rendered using reDocly

Image

Your Environment

  • Version used: 4.6.0, docusaurus 3.9.2
  • OpenAPI spec generated using: https://orpc.dev/
  • Operating System and version (desktop or mobile): Windows 11 ARM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions