codecombat / treema

jQuery plugin that generates HTML interfaces to edit JSON data defined by json-schema.
http://codecombat.github.io/treema/
MIT License
152 stars 36 forks source link

Consider using custom property treemaType instead of overloading format #35

Open sderickson opened 10 years ago

sderickson commented 10 years ago

To signal to Treema what custom node is what type, it uses type and format to check for entries that match. Perhaps instead of relying on these, we should use a custom schema property to signal to Treema which strategy to use. This way it's more explicit what we're doing.