jsonary-js / jsonary

Quickly assemble clients for JSON-based APIs (powered by JSON Schema)
http://jsonary.com/
MIT License
122 stars 14 forks source link

createValue() and additional properties #115

Open geraintluff opened 11 years ago

geraintluff commented 11 years ago

Should detect for additionalPropertySchemas(), and attempt creation for any entries in origValue.

Should also check pattern properties for same.

Both of these should attempt value-creation first, and fail if coercion banned (because coercion includes dropping keys).

(Implementation: probably keep list of "handled" keys from origData, and remove when handled/attempted)