diff --git a/sql/json/fetch_history.result.schema.json b/sql/json/fetch_history.result.schema.json index b0c919a7..1b530602 100644 --- a/sql/json/fetch_history.result.schema.json +++ b/sql/json/fetch_history.result.schema.json @@ -1,21 +1,21 @@ { "$schema": "http://json-schema.org/schema#", "id": "http://softwareheritage.org/schemas/fetch_history.result.schema.json", "definitions": { - "counter": { - "type": "integer", - "minimum": 0 - } + "counter": { + "type": "integer", + "minimum": 0 + } }, "type": "object", "properties": { - "occurrences": { "$ref": "#/definitiones/counter" }, - "directories": { "$ref": "#/definitiones/counter" }, - "revisions": { "$ref": "#/definitiones/counter" }, - "releases": { "$ref": "#/definitiones/counter" }, - "contents": { "$ref": "#/definitiones/counter" }, - "fake" : { "type": "boolean" } + "occurrences": { "$ref": "#/definitions/counter" }, + "directories": { "$ref": "#/definitions/counter" }, + "revisions": { "$ref": "#/definitions/counter" }, + "releases": { "$ref": "#/definitions/counter" }, + "contents": { "$ref": "#/definitions/counter" }, + "fake" : { "type": "boolean" } } } diff --git a/sql/json/revision.metadata.schema.json b/sql/json/revision.metadata.schema.json index e04c4b9f..4ee22627 100644 --- a/sql/json/revision.metadata.schema.json +++ b/sql/json/revision.metadata.schema.json @@ -1,92 +1,92 @@ { "$schema": "http://json-schema.org/schema#", "id": "http://softwareheritage.org/schemas/myschema.json", "definitions": { - "person": { - "type": "object", - "properties": { - "name": { - "title": "full name", - "type": "string" - }, - "email": { - "title": "email address", - "type": "string", - "format": "email" - } - } - }, - "pkgid": { - "title": "debian source package identifier", - "type": "array", - "items": [ - { - "title": "package name", - "type": "string" - }, - { - "title": "package version", - "type": "string" - } - ] - } + "person": { + "type": "object", + "properties": { + "name": { + "title": "full name", + "type": "string" + }, + "email": { + "title": "email address", + "type": "string", + "format": "email" + } + } + }, + "pkgid": { + "title": "debian source package identifier", + "type": "array", + "items": [ + { + "title": "package name", + "type": "string" + }, + { + "title": "package version", + "type": "string" + } + ] + } }, "type": "object", "properties": { - "original_artifact": { - "type": "object", - "properties": { - "name": { "type": "string" }, - "length": { "type": "integer", "minimum": 0 }, - "sha1": { "type": "string" }, - "sha1_git": { "type": "string" }, - "sha256": { "type": "string" }, - "archive_type": { "type": "string" } - } - }, + "original_artifact": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "length": { "type": "integer", "minimum": 0 }, + "sha1": { "type": "string" }, + "sha1_git": { "type": "string" }, + "sha256": { "type": "string" }, + "archive_type": { "type": "string" } + } + }, - "package_info": { - "type": "object", - "properties": { - "name": { "type": "string" }, - "version": { "type": "string" }, - "changelog": { - "type": "object", - "properties": { - "date": { "type": "string", "format": "date-time" }, - "person": { "$ref": "#/definitions/person" }, - "history": { - "type": "array", - "items": { "$ref": "#/definitions/pkgid" } - } - } - }, - "maintainers": { - "type": "object", - "properties": { - } - }, - "pgp_signature": { - "type": "object", - "properties": { - "date": { "type": "string", "format": "date-time" }, - "keyid": { "type": "string" }, - "person": { "$ref": "#/definitions/person" } - } - }, - "lister_metadata": { - "type": "object", - "properties": { - "id": { "type": "integer" }, - "lister": { "type": "string" } - } - } - } - } + "package_info": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "version": { "type": "string" }, + "changelog": { + "type": "object", + "properties": { + "date": { "type": "string", "format": "date-time" }, + "person": { "$ref": "#/definitions/person" }, + "history": { + "type": "array", + "items": { "$ref": "#/definitions/pkgid" } + } + } + }, + "maintainers": { + "type": "object", + "properties": { + } + }, + "pgp_signature": { + "type": "object", + "properties": { + "date": { "type": "string", "format": "date-time" }, + "keyid": { "type": "string" }, + "person": { "$ref": "#/definitions/person" } + } + }, + "lister_metadata": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "lister": { "type": "string" } + } + } + } + } } - + }