@@ -71,6 +71,7 @@ namespace coco
7171 {" description" , " A property that holds integer values, with optional constraints and default values." },
7272 {" properties" ,
7373 {{" type" , {{" type" , " string" }, {" enum" , {" int" }}, {" description" , " The property type identifier." }}},
74+ {" nullable" , {{" type" , " boolean" }, {" description" , " Whether this property can be null." }}},
7475 {" multiple" , {{" type" , " boolean" }, {" description" , " Whether this property can hold multiple values (array)." }}},
7576 {" default" , {{" oneOf" , std::vector<json::json>{{{" type" , " integer" }}, {{" type" , " array" }, {" items" , {{" type" , " integer" }}}}}}, {" description" , " Default value(s) for this property." }}},
7677 {" min" , {{" type" , " integer" }, {" description" , " Minimum allowed value for this property." }}},
@@ -81,6 +82,7 @@ namespace coco
8182 {" description" , " A property that holds floating-point numbers, with optional constraints and default values." },
8283 {" properties" ,
8384 {{" type" , {{" type" , " string" }, {" enum" , {" float" }}, {" description" , " The property type identifier." }}},
85+ {" nullable" , {{" type" , " boolean" }, {" description" , " Whether this property can be null." }}},
8486 {" multiple" , {{" type" , " boolean" }, {" description" , " Whether this property can hold multiple values (array)." }}},
8587 {" default" , {{" oneOf" , std::vector<json::json>{{{" type" , " number" }}, {{" type" , " array" }, {" items" , {{" type" , " number" }}}}}}, {" description" , " Default value(s) for this property." }}},
8688 {" min" , {{" type" , " number" }, {" description" , " Minimum allowed value for this property." }}},
@@ -91,6 +93,7 @@ namespace coco
9193 {" description" , " A property that holds string values, with optional default values." },
9294 {" properties" ,
9395 {{" type" , {{" type" , " string" }, {" enum" , {" string" }}, {" description" , " The property type identifier." }}},
96+ {" nullable" , {{" type" , " boolean" }, {" description" , " Whether this property can be null." }}},
9497 {" multiple" , {{" type" , " boolean" }, {" description" , " Whether this property can hold multiple values (array)." }}},
9598 {" default" , {{" oneOf" , std::vector<json::json>{{{" type" , " string" }}, {{" type" , " array" }, {" items" , {{" type" , " string" }}}}}}, {" description" , " Default value(s) for this property." }}}}},
9699 {" required" , std::vector<json::json>{" type" }}};
@@ -99,6 +102,7 @@ namespace coco
99102 {" description" , " A property that holds predefined symbolic values from a restricted set of allowed values." },
100103 {" properties" ,
101104 {{" type" , {{" type" , " string" }, {" enum" , {" symbol" }}, {" description" , " The property type identifier." }}},
105+ {" nullable" , {{" type" , " boolean" }, {" description" , " Whether this property can be null." }}},
102106 {" values" , {{" type" , " array" }, {" items" , {{" type" , " string" }}}, {" description" , " The allowed symbolic values for this property." }}},
103107 {" multiple" , {{" type" , " boolean" }, {" description" , " Whether this property can hold multiple values (array)." }}},
104108 {" default" , {{" oneOf" , std::vector<json::json>{{{" type" , " string" }}, {{" type" , " array" }, {" items" , {{" type" , " string" }}}}}}, {" description" , " Default value(s) for this property." }}}}},
@@ -108,6 +112,7 @@ namespace coco
108112 {" description" , " A property that holds references to other items by their ID, restricted to a specific domain type." },
109113 {" properties" ,
110114 {{" type" , {{" type" , " string" }, {" enum" , {" item" }}, {" description" , " The property type identifier." }}},
115+ {" nullable" , {{" type" , " boolean" }, {" description" , " Whether this property can be null." }}},
111116 {" domain" , {{" type" , " string" }, {" description" , " The type of objects that are allowed as values for this property." }}},
112117 {" multiple" , {{" type" , " boolean" }, {" description" , " Whether this property can hold multiple values (array)." }}},
113118 {" default" , {{" oneOf" , std::vector<json::json>{{{" type" , " string" }, {" pattern" , " ^[a-fA-F0-9]{24}$" }}, {{" type" , " array" }, {" items" , {{" type" , " string" }, {" pattern" , " ^[a-fA-F0-9]{24}$" }}}}}}, {" description" , " Default ID value(s) for this property." }}}}},
@@ -117,6 +122,7 @@ namespace coco
117122 {" description" , " A property that holds arbitrary JSON objects conforming to a specified JSON schema." },
118123 {" properties" ,
119124 {{" type" , {{" type" , " string" }, {" enum" , {" json" }}, {" description" , " The property type identifier." }}},
125+ {" nullable" , {{" type" , " boolean" }, {" description" , " Whether this property can be null." }}},
120126 {" schema" , {{" type" , " object" }, {" description" , " The JSON schema that validates the property's value." }}},
121127 {" default" , {{" type" , " object" }, {" description" , " Default JSON object for this property." }}}}},
122128 {" required" , std::vector<json::json>{" type" , " schema" }}};
0 commit comments