Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mfriesen committed May 31, 2024
1 parent a225413 commit e619199
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,8 @@ public static void setSitesSchema(final ApiClient client, final String siteId, f

SchemasApi api = new SchemasApi(client);

List<AttributeSchemaOptional> optionalKeys =
compositeKeys.stream().map(key -> new AttributeSchemaOptional().attributeKey(key)).toList();

SchemaAttributes attributes = new SchemaAttributes().allowAdditionalAttributes(Boolean.TRUE)
.optional(optionalKeys).compositeKeys(Collections
.singletonList(new AttributeSchemaCompositeKey().attributeKeys(compositeKeys)));
SchemaAttributes attributes = new SchemaAttributes().compositeKeys(
Collections.singletonList(new AttributeSchemaCompositeKey().attributeKeys(compositeKeys)));
api.setSitesSchema(siteId, new SetSitesSchemaRequest().name(name).attributes(attributes));
}
}

0 comments on commit e619199

Please sign in to comment.