{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://dsacms.github.io/share-it-act-lp/schema/gov/agency-index/schema-2.0.0.json",
	"title": "Agency Source Code Inventory",
	"description": "Agency source code catalog",
	"type": "object",
	"required": [
		"version",
		"measurementType",
		"agency",
		"releases"
	],
	"properties": {
		"agency": {
			"description": "The agency acronym for Clinger Cohen Act agency, as defined by the United States Government Manual.",
			"type": "string"
		},
		"measurementType": {
			"type": "object",
			"properties": {
				"ifOther": {
					"description": "A one- or two- sentence description of the measurement type used, if 'other' is selected as the value of 'method' field.",
					"type": "string"
				},
				"method": {
					"description": "An enumerated list of methods for measuring the open source requirement.",
					"type": "string",
					"enum": [
						"linesOfCode",
						"modules",
						"cost",
						"projects",
						"systems",
						"other"
					]
				}
			},
			"additionalProperties": false
		},
		"releases": {
			"type": "array",
			"items": {
				"type": "object",
				"description": "A code.json object containing each versioned source code release made available.",
				"allOf": [
					{
						"$ref": "https://dsacms.github.io/share-it-act-lp/schema/gov/schema-2.0.0.json"
					}
				]
			},
			"description": "An array of code.json objects containing each versioned source code release made available.",
			"additionalProperties": false
		},
		"version": {
			"description": "The version of the metadata schema in use. Implements semantic versioning 2.0.0 rules as defined at http://semver.org.",
			"type": "string"
		}
	}
}