Skip to content

Issue: $dynamicRef is not supported in Swagger UI / OpenAPI 3.1 #10651

@owjs3901

Description

@owjs3901

Hi, I'm using OpenAPI 3.1 with JSON Schema 2020-12 features to model generic types using $dynamicRef and $dynamicAnchor. Swagger UI correctly renders the schema, but the Interaction panel ("Try it out") does not support it at all.

Schema view works

The schema containing $dynamicRef / $dynamicAnchor renders normally in the Schema section.
Swagger UI accepts the structure and shows the generic type correctly.

Interaction view does not work

However, in the Interaction panel (request body editor):

$dynamicRef is ignored

The resolved schema is not applied

The generated example becomes null, {}, or an empty schema

Validation does not work

UI behaves as if $dynamicRef is not part of the spec

This makes $dynamicRef unusable for any API interaction, even though the Schema tab displays it perfectly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions