{
	"id": "CategoryCode.json",
	"title": "Category Code",
	"description": "A Category Code.",
	"media": {"type": "application/json;profile=http://schema.org/CategoryCode"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "Intangible.json"}, {"$ref": "DefinedTerm.json"}],
	"type": "object",
	"properties": {
		"codeValue": {"$ref": "#/definitions/codeValue"},
		"inCodeSet": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/inCodeSet"}
				},
				{"$ref": "#/definitions/inCodeSet"}
			]
		}
	},
	"definitions": {
		"array": {
			"type": "array",
			"items": {"$ref": "#"}
		},
		"possibleRef": {
			"oneOf": [
				{"$ref": "#"},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"possibleRefArray": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/possibleRef"}
				},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"codeValue": {
			"title": "Code Value",
			"description": "A short textual code that uniquely identifies the value.",
			"type": "string"
		},
		"inCodeSet": {
			"title": "In Code Set",
			"description": "A CategoryCodeSet that contains this category code.",
			"anyOf": [
				{"$ref": "CategoryCodeSet.json#/definitions/possibleRef"},
				{
					"type": "string",
					"format": "uri"
				}
			]
		}
	}
}