aito.client.v2.responses.V2Warning

class aito.client.v2.responses.V2Warning(json: Dict)

Bases: object

A non-fatal note attached to a v2 response

The engine emits these where it would otherwise have to choose between failing and staying silent — e.g. a where naming a column that is not declared on the collection.

Parameters:

json (Dict) – the warning object

Methods

Attributes

code

the machine-readable, dotted warning code, e.g. where.unknown_field.

field

the field the warning is scoped to, if it is field-scoped

json

the raw warning object

message

the human-readable warning message

severity

info or warning, defaulting to warning

property code: str | None

the machine-readable, dotted warning code, e.g. where.unknown_field

Return type:

Optional[str]

property field: str | None

the field the warning is scoped to, if it is field-scoped

Return type:

Optional[str]

property json: Dict

the raw warning object

Return type:

Dict

property message: str | None

the human-readable warning message

Return type:

Optional[str]

property severity: str

info or warning, defaulting to warning

Return type:

str