Am trying to create a link field, but getting an unexpected error.
const component = await client.fields.create(component.id, {
label: "Component",
fieldType: "link",
apiKey: "componentlink",
validators: {
itemItemType: {
itemTypes: [item.id]
}
},
appearance: {
editor: 'link_select',
parameters: {},
addons: [],
},
});
Am getting the following error from the API:
ApiException: 422 INVALID_FIELD (details: {"field":"appearance.parameters","code":"VALIDATION_INVALID"})
The link
field requires an empty parameters
object per the docs.