talyssonoc / structure

A simple schema/attributes library built on top of modern JavaScript
https://structure.js.org/
MIT License
301 stars 20 forks source link

Allow to pass custom identifier for dynamic types #111

Closed talyssonoc closed 5 years ago

talyssonoc commented 5 years ago

Since Joi was updated we're now required to have a well-defined identifier for each structure in order to use validation of dynamic-type attributes. Until now the class name was being used for that but it's not a reliable source for every environment. For this reason, it's not possible to set a custom identifier for a structure.