| Field | Value |
| Identifier | urn:obsp:schema:v3.1:sourcerelease |
|---|
| Dialect | https://json-schema.org/draft/2020-12/schema |
|---|
| Used by functions | Admit |
Properties
| Property | Required | Type | Description |
schemaVersion | yes | reference | |
sourceReleaseUni | yes | reference | |
sourceUni | yes | reference | |
distributionRef | yes | string | |
providerReleaseMarker | no | string | null | |
etag | no | string | null | |
contentDigest | yes | reference | |
contentLength | yes | integer | |
mediaType | yes | string | |
encoding | no | string | null | |
sourceTime | no | string | null | |
acquiredAt | yes | reference | |
recordedAt | yes | reference | |
correctionState | yes | enumeration | |
rightsState | yes | enumeration | |
supersedes | no | string | null | |
correctionOf | no | string | null | |
storageObjectRef | no | string | |
evidenceRefs | no | array | |
claim | yes | string | |
extensions | no | reference | |
Positive fixtures
source-release.valid.json
Negative fixtures
source-release.missing-digest.json: required at /: 'contentDigest' is a required property
Mappings to open standards
A mapping to a standard, never a conformance statement.
- maps to NS-1 Identifier and artifact catalog (UNI) (relation REL-NS-1)
- maps to DataCite metadata and DOIs (relation EXT-DATACITE)
Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:obsp:schema:v3.1:sourcerelease",
"title": "SourceRelease",
"type": "object",
"required": [
"schemaVersion",
"sourceReleaseUni",
"sourceUni",
"distributionRef",
"contentDigest",
"contentLength",
"mediaType",
"acquiredAt",
"recordedAt",
"correctionState",
"rightsState",
"claim"
],
"properties": {
"schemaVersion": {
"$ref": "#/$defs/SchemaVersion"
},
"sourceReleaseUni": {
"$ref": "#/$defs/Uni"
},
"sourceUni": {
"$ref": "#/$defs/Uni"
},
"distributionRef": {
"type": "string",
"minLength": 1
},
"providerReleaseMarker": {
"type": [
"string",
"null"
]
},
"etag": {
"type": [
"string",
"null"
]
},
"contentDigest": {
"$ref": "#/$defs/Digest"
},
"contentLength": {
"type": "integer",
"minimum": 0
},
"mediaType": {
"type": "string",
"minLength": 1
},
"encoding": {
"type": [
"string",
"null"
]
},
"sourceTime": {
"type": [
"string",
"null"
]
},
"acquiredAt": {
"$ref": "#/$defs/IsoDateTime"
},
"recordedAt": {
"$ref": "#/$defs/IsoDateTime"
},
"correctionState": {
"enum": [
"CURRENT",
"SUPERSEDED",
"WITHDRAWN",
"RECALLED",
"DISPUTED"
]
},
"rightsState": {
"enum": [
"UNKNOWN",
"REVIEW_REQUIRED",
"APPROVED_FOR_SCOPE",
"DENIED"
]
},
"supersedes": {
"type": [
"string",
"null"
]
},
"correctionOf": {
"type": [
"string",
"null"
]
},
"storageObjectRef": {
"type": "string",
"minLength": 1
},
"evidenceRefs": {
"type": "array",
"items": {
"$ref": "#/$defs/EvidenceRef"
}
},
"claim": {
"type": "string",
"minLength": 1
},
"extensions": {
"$ref": "#/$defs/Extensions"
}
},
"additionalProperties": false,
"$defs": {
"Uni": {
"type": "string",
"minLength": 8,
"maxLength": 256
},
"SchemaVersion": {
"type": "string",
"const": "3.1.0"
},
"IsoDateTime": {
"type": "string",
"minLength": 20
},
"Digest": {
"type": "string",
"pattern": "^sha256:[a-f0-9]{64}$"
},
"EvidenceRef": {
"type": "object",
"required": [
"uri",
"digest"
],
"properties": {
"uri": {
"type": "string",
"minLength": 1
},
"digest": {
"$ref": "#/$defs/Digest"
},
"kind": {
"type": "string"
}
},
"additionalProperties": false
},
"Extensions": {
"type": "object",
"propertyNames": {
"pattern": "^[a-z0-9]+(\\.[a-z0-9]+)+$"
},
"additionalProperties": true
}
}
}