public/javascripts/inputex/build/inputex.js
function(instanceObject) {
      if(!instanceObject || !instanceObject["$schema"]) {
         throw new Error("Invalid json schema instance object. Object must have a '$schema' property.");
      }
      
      var formDef = this.schemaToInputEx(instanceObject["$schema"]);
      
      // Set the default value of each property to the instance value
      for(var i = 0 ; i < formDef.fields.length ; i++) {
         var fieldName = formDef.fields[i].name;
         formDef.fields[i].value = instanceObject[fieldName];
      }
      
      return formDef;
   }
function(instanceObject) {
      if(!instanceObject || !instanceObject["$schema"]) {
         throw new Error("Invalid json schema instance object. Object must have a '$schema' property.");
      }
      
      var formDef = this.schemaToInputEx(instanceObject["$schema"]);
      
      // Set the default value of each property to the instance value
      for(var i = 0 ; i < formDef.fields.length ; i++) {
         var fieldName = formDef.fields[i].name;
         formDef.fields[i].value = instanceObject[fieldName];
      }
      
      return formDef;
   }
function ( instanceObject ) { if ( ! instanceObject || ! instanceObject [ "$schema" ] ) { throw new Error ( "Invalid json schema instance object. Object must have a '$schema' property." ) ; } var formDef = this . schemaToInputEx ( instanceObject [ "$schema" ] ) ; // Set the default value of each property to the instance value for ( var i = 0 ; i < formDef . fields . length ; i ++ ) { var fieldName = formDef . fields [ i ] . name ; formDef . fields [ i ] . value = instanceObject [ fieldName ] ; } return formDef ; }
Create an inputEx Json form definition from a json schema instance object
Respect the "Self-Defined Schema Convention"
Create an inputEx Json form definition from a json schema instance object Respect the Self - Defined Schema Convention