Currently users can't define configurable options for their custom types. To support a configurable approach, we should inject an options items that holds configuration data.
Here is the suggested approach:
I already updated YAML and Annotations drivers to support it. XML is a little more complicated and required some changes in XSD file.