schemaΒΆ

Schema for the API and application.

Schema.

pydantic model src.server.lib.schema.BaseModel[source]

Bases: BaseModel

Base Settings.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Show JSON schema
{
   "title": "BaseModel",
   "description": "Base Settings.",
   "type": "object",
   "properties": {}
}

Config:
  • validate_assignment: bool = True

  • from_attributes: bool = True

  • use_enum_values: bool = True

  • arbitrary_types_allowed: bool = True

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

pydantic model src.server.lib.schema.CamelizedBaseModel[source]

Bases: BaseModel

Camelized Base pydantic schema.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Show JSON schema
{
   "title": "CamelizedBaseModel",
   "description": "Camelized Base pydantic schema.",
   "type": "object",
   "properties": {}
}

Config:
  • validate_assignment: bool = True

  • from_attributes: bool = True

  • use_enum_values: bool = True

  • arbitrary_types_allowed: bool = True

  • populate_by_name: bool = True

  • alias_generator: function = <function camel_case at 0x7f73c9a90720>

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.