Data Types
deprecated_string_types
module-attribute
Boolean
Boolean(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: ScalarType
Element tag: <bool>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
Case
Case(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: NonScalarType
Element tag: <case>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
Choice
Choice(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str], discriminator_key: str)
Bases: NonScalarType
Element tag: <object>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
Date
Date(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: ScalarType
Element tag: <date>
To configure the date format, create a date-format attribute on the
element. E.g. <date name="..." ... date-format="%Y-%m-%d" />
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
Email(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: ScalarType
Element tag: <email>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
FieldValidation
dataclass
Float
Float(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: ScalarType
Element tag: <float>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
Integer
Integer(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: ScalarType
Element tag: <integer>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
List
List(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: NonScalarType
Element tag: <list>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
Object
Object(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: NonScalarType
Element tag: <object>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
Percentage
Percentage(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: ScalarType
Element tag: <percentage>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
PythonCode
PythonCode(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: ScalarType
Element tag: <pythoncode>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
SQLCode
SQLCode(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: ScalarType
Element tag: <sql>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
String
String(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: ScalarType
Element tag: <string>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
Time
Time(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: ScalarType
Element tag: <time>
To configure the date format, create a date-format attribute on the
element. E.g. <time name="..." ... time-format="%H:%M:%S" />
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.
URL
URL(children: Dict[str, Any], format_attr: FormatAttr, optional: bool, name: Optional[str], description: Optional[str])
Bases: ScalarType
Element tag: <url>
children
property
Return a SimpleNamespace of the children of this DataType.
_constructor_validation
Creates a "FieldValidation" object for ValidatorService to run over, which specifies the key, value, and validators for a given field.
Its children should be populated by its nested fields' FieldValidations.