schema_for()

Serialize a Pydantic model’s JSON schema, with additionalProperties set to false.

Usage

Source

schema_for(model)