pydantic_base

pydantic_base#

Pydantic related models and types.

Full path: iqm.station_control.interface.pydantic_base

Functions

serialize_value(value)

Serialize value type to JSON serializable type, to support complex and ndarray types.

validate_value(value)

Validate (i.e. deserialize) JSON serializable value to Python type, to support complex and ndarray types.

Classes

PydanticBase

Pydantic base model to change the behaviour of pydantic globally.

Inheritance

digraph inheritancec920503522 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "BaseModel" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Usage docs: https://docs.pydantic.dev/2.10/concepts/models/"]; "PydanticBase" [URL="iqm.station_control.interface.pydantic_base.PydanticBase.html#iqm.station_control.interface.pydantic_base.PydanticBase",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Pydantic base model to change the behaviour of pydantic globally."]; "BaseModel" -> "PydanticBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; }