Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The JSON schema for the BaseModel class #8980

Closed
1 task done
Ostenya opened this issue Mar 9, 2024 · 2 comments
Closed
1 task done

The JSON schema for the BaseModel class #8980

Ostenya opened this issue Mar 9, 2024 · 2 comments
Labels
bug V2 Bug related to Pydantic V2 duplicate

Comments

@Ostenya
Copy link

Ostenya commented Mar 9, 2024

Initial Checks

  • I confirm that I'm using Pydantic V2

Description

On running the code in the example below I receive "AssertionError: this is a bug! please report it"

Example Code

from pydantic import BaseModel

BaseModel.model_json_schema()

Python, Pydantic & OS Version

pydantic version: 2.6.3
        pydantic-core version: 2.16.3
          pydantic-core build: profile=release pgo=true
                 install path: C:\...\venv\Lib\site-packages\pydantic
               python version: 3.12.1 (tags/v3.12.1:2305ca5, Dec  7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)]
                     platform: Windows-10-10.0.19045-SP0
             related packages: typing_extensions-4.9.0
                       commit: unknown
@Ostenya Ostenya added bug V2 Bug related to Pydantic V2 pending Awaiting a response / confirmation labels Mar 9, 2024
@Viicos
Copy link
Contributor

Viicos commented Mar 12, 2024

This is a duplicate of #8896, which was fixed in #8928.

@sydney-runkle
Copy link
Member

Yep, thanks @Viicos!

@sydney-runkle sydney-runkle added duplicate and removed pending Awaiting a response / confirmation labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug V2 Bug related to Pydantic V2 duplicate
Projects
None yet
Development

No branches or pull requests

3 participants