+ private static JsonObject createAnyOfJsonProperty(String name, String defaultValue) {
+ JsonObject result = new JsonObject();
+ result.addProperty("title", name);
+ result.addProperty("type", "string");
+ result.addProperty("default", defaultValue);
+ result.addProperty("readOnly", "True");
+ return result;
+ }
+
+ private static JsonObject createAnyOfJsonObject(String name, JsonObject allProperties) {
+ JsonObject result = new JsonObject();
+ result.addProperty("title", name);
+ result.addProperty("type", "object");
+ result.add("properties", allProperties);
+ return result;
+ }
+