schemaΒΆ

Schema for the API and application.

Schema.

pydantic model byte_bot.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

pydantic model byte_bot.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 0x7f096aee3ec0>

  • validate_by_alias: bool = True

  • validate_by_name: bool = True