strapi / rfcs

RFCs for Strapi future changes
68 stars 33 forks source link

Add options object to custom field attributes #43

Closed remidej closed 2 years ago

remidej commented 2 years ago

(this is not a new RFC, it's an update to the existing #42)

The pluginOptions key is intended for any plugin to add options to any attribute. Custom fields on the other hand should only apply options to attribute’s with type: "customField".

We want to provide a more native-like interface. pluginOptions looks strange since other plugins (for example i18n) can add options there as well. The custom fields’ options should be more isolated.

Therefore we introduce an options object at the root of the custom field attribute object.