This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": "http://some.site.somewhere/entry-schema#", | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "description": "schema for an fstab entry", | |
| "type": "object", | |
| "required": [ "storage" ], | |
| "properties": { | |
| "storage": { | |
| "type": "object", | |
| "oneOf": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "type": "object", | |
| "properties": { | |
| "/": { "$ref": "http://some.site.somewhere/entry-schema#" } | |
| }, | |
| "patternProperties": { | |
| "^(/[^/]+)+$": { "$ref": "http://some.site.somewhere/entry-schema#" } | |
| }, | |
| "additionalProperties": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <!-- There is, at present, no official xsd for (X)HTML5. A pity. Usefulness would depend on the parser and extensions made by the site. --> | |
| <title>testcase</title> | |
| <style type="text/css"> | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "definitions": { | |
| "def1": {}, | |
| "def2": { | |
| "id": "http://other.site/schema#", | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/def1" } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "schema": { | |
| "minimum": 1.1, | |
| "exclusiveMinimum": true | |
| }, | |
| "data": 1.2, | |
| "useV4": false, | |
| "useId": false | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "id": "http://json-schema.org/geojson/geometry.json#", | |
| "title": "geometry", | |
| "description": "One geometry as defined by GeoJSON", | |
| "type": "object", | |
| "required": [ "type", "coordinates" ], | |
| "oneOf": [ | |
| { | |
| "title": "Point", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "id": "http://json-schema.org/geojson/geojson.json#", | |
| "title": "Geo JSON object", | |
| "description": "Schema for a Geo JSON object", | |
| "type": "object", | |
| "required": [ "type" ], | |
| "oneOf": [ | |
| { "$ref": "http://json-schema.org/geojson/geometry.json#" }, | |
| { "$ref": "#/definitions/geometryCollection" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.github.fge.jsonschema.processing; | |
| import com.github.fge.jsonschema.exceptions.ProcessingException; | |
| import com.github.fge.jsonschema.report.MessageProvider; | |
| import com.github.fge.jsonschema.report.ProcessingMessage; | |
| import com.github.fge.jsonschema.report.ProcessingReport; | |
| import com.google.common.base.Function; | |
| import com.google.common.collect.ImmutableMap; | |
| import com.google.common.collect.Maps; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/draft-03/schema#", | |
| "id": "http://json-schema.org/draft-03/schema#", | |
| "type": "object", | |
| "properties": { | |
| "type": { | |
| "type": [ { "$ref": "#/definitions/simpleType" }, "array" ], | |
| "items": { | |
| "type": [ { "$ref": "#/definitions/simpleType" }, { "$ref": "#" } ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "oneOf": [ | |
| { | |
| "description": "a single animal", | |
| "$ref": "#/definitions/animal" | |
| }, | |
| { | |
| "description": "a collection of animals", | |
| "type": "array", |