|
Toast Engine
|
Descriptor for one field in a schema. More...
#include <schema.hpp>
Public Attributes | |
| std::string | name |
| DataType | type {DataType::null} |
| bool | is_array {false} |
| std::string | struct_type |
| std::optional< DataValue > | default_value |
| std::string | description |
| std::optional< double > | min |
| std::optional< double > | max |
| std::string | asset_type |
| x-toast-asset-type: asset subtype constraint for asset_t fields | |
| std::string | node_type |
| x-toast-node-type: node subtype constraint for node_t fields | |
| std::vector< std::string > | variants |
| x-toast-variants: discriminator values this field applies to | |
| std::vector< std::string > | enum_options |
| "enum": allowed string values, for x-toast-type "enum" fields | |
| std::optional< TypeSwitch > | type_switch |
| x-toast-type-switch: type depends on a root controller field | |
| std::vector< SchemaField > | children |
Descriptor for one field in a schema.