Hi!
We are trying to create a field and associate it to a previously created fieldset, but the same error continues to show.
ApiException: 422 INVALID_FORMAT (details: {"messages":["#/data/relationships/fieldset/data: failed schema #/definitions/field/links/0/schema/properties/data/properties/relationships/properties/fieldset/properties/data: No subschema in \"anyOf\" matched."]})
How the field and fieldset are created:
const navigationKey = "navigation";
// Create fieldset
const styleFieldset = await client.fieldsets.create(navigationKey, {
title: 'Style',
hint: 'Some text here',
position: 3,
collapsible: true,
startCollapsed: true
});
// Bg color
await client.fields.create(navigationKey, {
label: 'Background',
apiKey: 'bg',
hint: 'The background color of the navigation element',
fieldType: 'color',
localized: true,
fieldset: { type: "fieldset", id: styleFieldset.id }
});
For the field set we’ve also tried fieldset: { type: styleFieldset.itemType.id, id: styleFieldset.id }
.
not sure what is wrong.