Sha256: 60410324508bc924a8266cc81e942a725fb0efb9cf8f90e6be752c3d644b3fd2

Contents?: true

Size: 1.26 KB

Versions: 8

Compression:

Stored size: 1.26 KB

Contents

{
    "$schema"    : "http://json-schema.org/draft-04/hyper-schema#",
    "id"         : "https://github.com/shyouhei/RFC7159/blob/master/spec/acceptance/valid/0009-complicated/0001-jsonschema.json",
    "title"      : "Sample blog post",
    "description": "This is a JSON Schema, see http://json-schema.org",
    "type"       : "object",
    "definitions": {
	"uint64_t": {
	    "type"   : "integer",
	    "mininum": 0,
	    "maximum": 18446744073709551615
	},
        "post": {
            "type"      : "object",
            "properties": {
                "userId": { "$ref": "#/definitions/uint64_t" },
		"title" : {
		    "type"     : "string",
		    "minLength": 1,
		    "maxLength": 64
		},
		"body": {
		    "type"     : "string",
		    "minLength": 1,
		    "maxLength": 32768
		},
		"tags": {
		    "type" : "object"
		},
                "createdAt"  : { "$ref": "#/definitions/uint64_t" },
                "updatedAt"  : { "$ref": "#/definitions/uint64_t" },
                "publishedAt": {
		    "oneOf": [
			{ "$ref": "#/definitions/uint64_t" },
			{ "enum": [ null ] }
		    ]
		}
            },
            "additionalProperties": false,
            "required": [ "userId", "title", "body" ]
        }
    },
    "oneOf": [
        { "$ref": "#/definitions/post" }
    ]
}

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
RFC8259-8259.01 spec/acceptance/valid/0009-complicated/0001-jsonschema.json
RFC7159-7159.06 spec/acceptance/valid/0009-complicated/0001-jsonschema.json
RFC8259-8259 spec/acceptance/valid/0009-complicated/0001-jsonschema.json
RFC7159-7159.05 spec/acceptance/valid/0009-complicated/0001-jsonschema.json
RFC7159-7159.04 spec/acceptance/valid/0009-complicated/0001-jsonschema.json
RFC7159-7159.03 spec/acceptance/valid/0009-complicated/0001-jsonschema.json
RFC7159-7159.02 spec/acceptance/valid/0009-complicated/0001-jsonschema.json
RFC7159-7159.01 spec/acceptance/valid/0009-complicated/0001-jsonschema.json