载入中...
搜索中...
未找到
PropertySchemaJson.cpp
浏览该文件的文档.
46 const int count = descriptor.type == PropertyType::Vec2 ? 2 : (descriptor.type == PropertyType::Vec3 ? 3 : 4);
65Result<Value> propertySchemaToJsonSchema(const PropertySchema& schema, std::string_view schemaId) {
Deterministic owning value tree shared by authoring hosts.
Definition EditingValue.h:23
std::variant< std::monostate, std::int64_t, double, std::string, bool > Value
Definition Database.h:27
Definition ControlRigDocument.h:8
@ Transform
@ AssetRef
@ ObjectRef
@ ReadOnlyText
@ ReadOnly
Result< Value > propertySchemaToJsonSchema(const PropertySchema &schema, std::string_view schemaId)
Project a PropertySchema into a JSON Schema object tree (pointer-free Value).
Definition PropertySchemaJson.cpp:65
PropertySchema emptyObjectPropertySchema(std::string_view typeId)
Build an explicit empty-object payload schema.
Definition PropertySchemaJson.cpp:58
constexpr bool hasPropertyFlag(PropertyFlag value, PropertyFlag flag)
True when property flag.
Definition EditingProperty.h:63
std::vector< PropertyDescriptor > properties
Definition EditingProperty.h:120
Value documentSchema
Owned complete JSON Schema for nested documents; mutually exclusive with properties.
Definition EditingProperty.h:122