We had some changes that included a new markdown field. The autogenerated migration script included this code:
console.log(
âCreate Multiple-paragraph text field âCard Descriptionâ (card_description) in block model â\\uD83D\\uDC81 Speaker Spotlightâ (speaker_spotlight)â,
);
await client.fields.create(âfpLMqpz8S3G80CMeGrkjMQâ, {
id: âGPVELgr1RU21Z7jTyE3eawâ,
label: âCard Descriptionâ,
field_type: âtextâ,
api_key: âcard_descriptionâ,
validators: {
required: {},
length: { max: 820 },
sanitized_html: { sanitize_before_validation: true },
},
appearance: {
addons: [ ],
editor: âmarkdownâ,
parameters: {
toolbar: \[
âboldâ,
âcodeâ,
âitalicâ,
âlinkâ,
âordered_listâ,
âstrikethroughâ,
âunordered_listâ,
\],
},
type: âmarkdownâ,
},
default_value: ââ,
});
This resulted in an error that the âtypeâ key was not permitted. Removing the type: 'markdown' line solved the problem, and didnât seem to introduce any issues.