-
Notifications
You must be signed in to change notification settings - Fork 82
Using Jsonix in Web Pages
{ "id":"#", "definitions":{ "Cpu.Temperature":{ "type":"object", "title":"Cpu.Temperature", "properties":{ "show":{ "title":"show", "allOf":[ { "$ref":"#/definitions/BoolVar" } ], "propertyType":"element", "elementName":{ "localPart":"show", "namespaceURI":"" } }, "command":{ "title":"command", "allOf":[ { "$ref":"#/definitions/CommandStringVar" } ], "propertyType":"element", "elementName":{ "localPart":"command", "namespaceURI":"" } } }, "typeType":"classInfo", "propertiesOrder":[ "show", "command" ] }, "Cpu":{ "type":"object", "title":"Cpu", "properties":{ "temperature":{ "title":"temperature", "allOf":[ { "$ref":"#/definitions/Cpu.Temperature" } ], "propertyType":"element", "elementName":{ "localPart":"temperature", "namespaceURI":"" } }, "solaris":{ "title":"solaris", "allOf":[ { "$ref":"#/definitions/Cpu.Solaris" } ], "propertyType":"element", "elementName":{ "localPart":"solaris", "namespaceURI":"" } } }, "typeType":"classInfo", "propertiesOrder":[ "temperature", "solaris" ] }, "Variable":{ "type":"object", "title":"Variable", "properties":{ }, "typeType":"classInfo", "typeName":{ "localPart":"variable", "namespaceURI":"" } }, "CommandStringVar":{ "required":[ "dataOrVar" ], "allOf":[ { "$ref":"#/definitions/MultiPartVariable" }, { "type":"object", "title":"CommandStringVar", "properties":{ "dataOrVar":{ "title":"dataOrVar", "allOf":[ { "type":"array", "items":{ "anyOf":[ { "anyOf":[ { "$ref":"http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema#/definitions/string" } ], "elementName":{ "localPart":"data", "namespaceURI":"" } }, { "anyOf":[ { "$ref":"#/definitions/NameReference" } ], "elementName":{ "localPart":"var", "namespaceURI":"" } } ] }, "minItems":1 } ], "propertyType":"elements" } } } ], "typeType":"classInfo", "typeName":{ "localPart":"commandStringVar", "namespaceURI":"" }, "propertiesOrder":[ "dataOrVar" ] }, "Cpu.Solaris":{ "type":"object", "title":"Cpu.Solaris", "properties":{ "showPhysicalSummaryRows":{ "title":"showPhysicalSummaryRows", "allOf":[ { "$ref":"#/definitions/MyEnum" } ], "propertyType":"element", "elementName":{ "localPart":"showPhysicalSummaryRows", "namespaceURI":"" } } }, "typeType":"classInfo", "propertiesOrder":[ "showPhysicalSummaryRows" ] }, "BoolVar":{ "required":[ "data", "var" ], "allOf":[ { "$ref":"#/definitions/Variable" }, { "type":"object", "title":"BoolVar", "properties":{ "data":{ "title":"data", "allOf":[ { "$ref":"http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema#/definitions/boolean" } ], "propertyType":"element", "elementName":{ "localPart":"data", "namespaceURI":"" } }, "var":{ "title":"var", "allOf":[ { "$ref":"#/definitions/NameReference" } ], "propertyType":"element", "elementName":{ "localPart":"var", "namespaceURI":"" } } } } ], "typeType":"classInfo", "typeName":{ "localPart":"boolVar", "namespaceURI":"" }, "propertiesOrder":[ "data", "var" ] }, "SingleLineStringVar":{ "required":[ "dataOrVar" ], "allOf":[ { "$ref":"#/definitions/MultiPartVariable" }, { "type":"object", "title":"SingleLineStringVar", "properties":{ "dataOrVar":{ "title":"dataOrVar", "allOf":[ { "type":"array", "items":{ "anyOf":[ { "anyOf":[ { "$ref":"http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema#/definitions/string" } ], "elementName":{ "localPart":"data", "namespaceURI":"" } }, { "anyOf":[ { "$ref":"#/definitions/NameReference" } ], "elementName":{ "localPart":"var", "namespaceURI":"" } } ] }, "minItems":1 } ], "propertyType":"elements" } } } ], "typeType":"classInfo", "typeName":{ "localPart":"singleLineStringVar", "namespaceURI":"" }, "propertiesOrder":[ "dataOrVar" ] }, "NameReferenceOrVar":{ "type":"object", "title":"NameReferenceOrVar", "properties":{ "var":{ "title":"var", "allOf":[ { "$ref":"#/definitions/NameReference" } ], "propertyType":"element", "elementName":{ "localPart":"var", "namespaceURI":"" } }, "ref":{ "title":"ref", "allOf":[ { "$ref":"http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema#/definitions/string" } ], "propertyType":"attribute", "attributeName":{ "localPart":"ref", "namespaceURI":"" } } }, "typeType":"classInfo", "typeName":{ "localPart":"nameReferenceOrVar", "namespaceURI":"" }, "propertiesOrder":[ "var", "ref" ] }, "NameReference":{ "type":"object", "title":"NameReference", "required":[ "ref" ], "properties":{ "ref":{ "title":"ref", "allOf":[ { "$ref":"http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema#/definitions/string" } ], "propertyType":"attribute", "attributeName":{ "localPart":"ref", "namespaceURI":"" } } }, "typeType":"classInfo", "typeName":{ "localPart":"nameReference", "namespaceURI":"" }, "propertiesOrder":[ "ref" ] }, "MultiPartVariable":{ "allOf":[ { "$ref":"#/definitions/Variable" }, { "type":"object", "title":"MultiPartVariable", "properties":{ } } ], "typeType":"classInfo", "typeName":{ "localPart":"multiPartVariable", "namespaceURI":"" } }, "MyEnum":{ "allOf":[ { "$ref":"http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema#/definitions/string" }, { "enum":[ "detect", "always", "never" ] } ], "typeType":"enumInfo", "typeName":{ "localPart":"myEnum", "namespaceURI":"" } } }, "anyOf":[ { "type":"object", "properties":{ "name":{ "allOf":[ { "$ref":"http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema#/definitions/QName" }, { "type":"object", "properties":{ "localPart":{ "enum":[ "cpu" ] }, "namespaceURI":{ "enum":[ "" ] } } } ] }, "value":{ "$ref":"#/definitions/Cpu" } }, "elementName":{ "localPart":"cpu", "namespaceURI":"" } } ] }