载入中...
搜索中...
未找到
Metadata and validation constraints for one object member. 更多...
#include <SchemaTypes.h>
类 eve::schema::FieldDefinition 继承关系图:
Public 属性 | |
| std::string | name |
| bool | required = false |
| std::string | title |
| std::string | description |
| std::string | reference |
Legacy display/category reference; use ref for schema refs. | |
| std::string | defaultJson |
Public 属性 继承自 eve::schema::SchemaNode | |
| ValueType | type = ValueType::Any |
| The value kind accepted by this node. | |
| ValueType | elementType = ValueType::Any |
| Legacy homogeneous array constraint retained for compatibility. | |
| std::string | ref |
Whole-schema reference, for example combat:damage. | |
| int | refVersion = 0 |
| Exact referenced schema version; zero means the highest version. | |
| std::shared_ptr< const SchemaDefinition > | objectSchema |
| Inline object shape for an object node. | |
| std::shared_ptr< const SchemaNode > | itemSchema |
| Recursive schema for every array item. | |
| std::vector< SchemaNode > | variants |
| Union alternatives; at least one alternative is required. | |
| std::string | discriminator |
| Object member used to select a union alternative. | |
| std::map< std::string, std::string > | discriminatorMapping |
| Discriminator value to ref or zero-based variant index. | |
| std::vector< std::string > | enumValues |
| String enum values accepted by this node. | |
| std::optional< double > | minimum |
| std::optional< double > | maximum |
| std::optional< int > | minLength |
| std::optional< int > | maxLength |
| std::optional< int > | minItems |
| std::optional< int > | maxItems |
详细描述
Metadata and validation constraints for one object member.
在文件 SchemaTypes.h 第 77 行定义.
类成员变量说明
◆ defaultJson
| std::string eve::schema::FieldDefinition::defaultJson |
在文件 SchemaTypes.h 第 84 行定义.
◆ description
| std::string eve::schema::FieldDefinition::description |
在文件 SchemaTypes.h 第 81 行定义.
◆ name
| std::string eve::schema::FieldDefinition::name |
在文件 SchemaTypes.h 第 78 行定义.
◆ reference
| std::string eve::schema::FieldDefinition::reference |
Legacy display/category reference; use ref for schema refs.
在文件 SchemaTypes.h 第 83 行定义.
◆ required
| bool eve::schema::FieldDefinition::required = false |
在文件 SchemaTypes.h 第 79 行定义.
◆ title
| std::string eve::schema::FieldDefinition::title |
在文件 SchemaTypes.h 第 80 行定义.
该结构体的文档由以下文件生成:
- src/modules/schema/SchemaTypes.h
Public 属性 继承自