static ObjectSchema convertSalesforceGlobalObjectJsonToSchema(final JsonNode payload) { final Set<Object> allSchemas = new HashSet<>(); for (final JsonNode sobject : payload) { // generate SObject schema from description final ObjectSchema sobjectSchema = new ObjectSchema(); sobjectSchema.setId(JsonUtils.DEFAULT_ID_PREFIX + ":" + sobject.get("name").asText()); sobjectSchema.setTitle(sobject.get("label").asText()); allSchemas.add(sobjectSchema); } final ObjectSchema schema = new ObjectSchema(); schema.setOneOf(allSchemas); return schema; }
ObjectSchema simpleObjectSchema(final String name, final String label) { final ObjectSchema objectSchema = new ObjectSchema(); objectSchema.setId(JsonUtils.DEFAULT_ID_PREFIX + ":" + name); objectSchema.setTitle(label); return objectSchema; } }
throws JsonProcessingException { ObjectSchema objectSchema = new ObjectSchema(); objectSchema.setTitle(name); objectSchema.setDescription(description); if (!isRaw) {
throws JsonProcessingException { ObjectSchema objectSchema = new ObjectSchema(); objectSchema.setTitle(name); objectSchema.setDescription(description); if (!isRaw) {
throws JsonProcessingException { ObjectSchema objectSchema = new ObjectSchema(); objectSchema.setTitle(name); objectSchema.setDescription(description); if (!isRaw) {
throws JsonProcessingException { ObjectSchema objectSchema = new ObjectSchema(); objectSchema.setTitle(name); objectSchema.setDescription(description); if (!isRaw) {
throws JsonProcessingException { ObjectSchema objectSchema = new ObjectSchema(); objectSchema.setTitle(name); objectSchema.setDescription(description); if (!isRaw) {