Skip to content
Discussion options

You must be logged in to vote

I have the exact same issue with current FastAPI, Starlette and Pydantic versions. Dowgrading brings known security vulnerabilities unfortunately.

I still can't reproduce the issue.
With latest FastAPI (0.120.2) and Pydantic (2.12.3) it gives me:

      "MyEnum": {
        "type": "string",
        "enum": [
          "foo",
          "bar"
        ],
        "title": "MyEnum"
      },
      "MyModel": {
        "additionalProperties": {
          "type": "integer"
        },
        "propertyNames": {
          "$ref": "#/components/schemas/MyEnum"
        },
        "type": "object",
        "title": "MyModel"
      },
Full openapi schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "

Replies: 11 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #13880 on December 12, 2025 15:15.