static
Class inputEx.JsonSchema
Namespace containing utility functions for conversion between inputEx JSON format and JSON Schema
based on "Json Schema Proposal Working Draft":
http://groups.google.com/group/json-schema/web/json-schema-proposal-working-draft
The proposal is still under discussion and the implementation is very minimalist.
TODO:
- we should provide a lot of json schema examples and instances that should/should not validate
- use the $ref (async calls => provide callbacks to methods)
- Inheritance
Limitations:
- ??? Please do not trust inputEx: the getValue may return a value which do NOT validate the schema (provide an example ?)
- no tuple typing for arrays
- no "Union type definition"
Methods
void
inputExToSchema
(
)
Convert the inputEx JSON fields to a JSON schema