@@ -353,9 +353,9 @@ if (typeof brutusin === "undefined") {
353353 option . value = s . oneOf [ i ] ;
354354 appendChild ( option , textNode , s ) ;
355355 appendChild ( input , option , s ) ;
356- /* if (value == undefined)
356+ if ( value == undefined )
357357 continue ;
358- if (value.hasOwnProperty("type")) {
358+ /* if (value.hasOwnProperty("type")) {
359359 if (ss.hasOwnProperty("properties") ){
360360 if (ss.properties.hasOwnProperty("type")){
361361 var tryit = getSchema(ss.properties.type);
@@ -509,6 +509,7 @@ if (typeof brutusin === "undefined") {
509509 render ( td1 , td2 , propId , current , pp , propInitialValue ) ;
510510 }
511511 }
512+ // TODO: handle complex additionalProperties type definitions.
512513 if ( s . additionalProperties ) {
513514 var addPropS = getSchema ( s . additionalProperties ) ;
514515 var div = document . createElement ( "div" ) ;
@@ -818,7 +819,8 @@ if (typeof brutusin === "undefined") {
818819 if ( schema . additionalProperties ) {
819820 var childProp = name + "[*]" ;
820821 pseudoSchema . additionalProperties = childProp ;
821- if ( schema . additionalProperties . hasOwnProperty ( "type" ) ) {
822+ if ( schema . additionalProperties . hasOwnProperty ( "type" ) ||
823+ schema . additionalProperties . hasOwnProperty ( "oneOf" ) ) {
822824 populateSchemaMap ( childProp , schema . additionalProperties ) ;
823825 } else {
824826 populateSchemaMap ( childProp , SCHEMA_ANY ) ;
0 commit comments