schema#

Documentation for the schema module.

Base structs and constrained field types shared by API schemas.

class app.lib.schema.BaseStruct[source]#

Bases: Struct

Base msgspec Struct with unset-filtering dictionary export.

to_dict() → dict[str, Any][source]#

Convert populated struct fields to a plain dictionary.

Returns:

Dictionary of field names to values, excluding msgspec.UNSET fields.

class app.lib.schema.CamelizedBaseStruct[source]#

Bases: BaseStruct

Camel-cased msgspec Struct for HTTP API payloads.

class app.lib.schema.Message(message: str)[source]#

Bases: CamelizedBaseStruct

Simple human-readable status message payload.