{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Public Data Catalog decision record","type":"object","properties":{"snapshot_date":{"anyOf":[{"type":"null"},{"type":"string","minLength":1,"format":"date"}]},"source_id":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1},"publisher":{"anyOf":[{"type":"null"},{"type":"string","minLength":1}]},"source_url":{"type":"string","minLength":1,"format":"uri"},"topic":{"type":"string","minLength":1},"region":{"type":"string","minLength":1},"coverage":{"type":"string","minLength":1},"subjects":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","minLength":1},"subtopic":{"type":"string","minLength":1}},"required":["category","subtopic"],"additionalProperties":false}},"rights_class":{"enum":["Open","Limited","Dataset-specific"]},"listing":{"type":"object","properties":{"checked":{"anyOf":[{"type":"null"},{"type":"string","minLength":1,"format":"date"}]},"recheck_after":{"anyOf":[{"type":"null"},{"type":"string","minLength":1,"format":"date"}]},"terms_recheck_after":{"anyOf":[{"type":"null"},{"type":"string","minLength":1,"format":"date"}]},"access_recheck_after":{"anyOf":[{"type":"null"},{"type":"string","minLength":1,"format":"date"}]},"evidence":{"type":"string","minLength":1,"format":"uri"},"evidence_role":{"type":"string","minLength":1},"access_note":{"type":"string","minLength":1},"rights_note":{"type":"string","minLength":1},"terms_due_as_of_snapshot":{"type":"boolean"},"access_due_as_of_snapshot":{"type":"boolean"}},"required":["checked","recheck_after","terms_recheck_after","access_recheck_after","evidence","evidence_role","access_note","rights_note"],"additionalProperties":false},"record_kind":{"type":"string","minLength":1},"fields":{"type":"object","properties":{"access.methods":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"array","minItems":1,"uniqueItems":true,"items":{"enum":["api","file","view"]}},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"api.base_url":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"string","minLength":1,"format":"uri"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"api.docs_url":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"string","minLength":1,"format":"uri"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"api.key":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"enum":["none","free key","paid","account"]},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"api.https":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"boolean"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"api.browser":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"boolean"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"api.rate_limit":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"string","minLength":1},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"api.free_tier":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"string","minLength":1},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"file.url":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"string","minLength":1,"format":"uri"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"file.format":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"string","minLength":1},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"file.bytes":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"integer","minimum":0},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"file.updated":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"string","minLength":1,"format":"date"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"license.name":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"string","minLength":1},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"license.url":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"string","minLength":1,"format":"uri"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"license.credit":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"string","minLength":1},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"},"presentation":{"enum":["literal","template","part of notice","instruction"]}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"license.share_alike":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"boolean"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]},"license.non_commercial":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value":{"type":"boolean"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["value","url","checked","recheck_after"],"additionalProperties":false}]}},"required":["access.methods","api.base_url","api.docs_url","api.key","api.https","api.browser","api.rate_limit","api.free_tier","file.url","file.format","file.bytes","file.updated","license.name","license.url","license.credit","license.share_alike","license.non_commercial"],"additionalProperties":false},"uses":{"type":"object","properties":{"live_site":{"anyOf":[{"type":"object","properties":{"status":{"const":"not checked"}},"required":["status"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["terms are silent"]},"conditions":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","checked","recheck_after","conditions"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["allowed with conditions"]},"conditions":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","checked","recheck_after","quote","conditions"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["allowed","prohibited"]},"conditions":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","checked","recheck_after","quote"],"additionalProperties":false}]},"redistribute":{"anyOf":[{"type":"object","properties":{"status":{"const":"not checked"}},"required":["status"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["terms are silent"]},"conditions":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","checked","recheck_after","conditions"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["allowed with conditions"]},"conditions":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","checked","recheck_after","quote","conditions"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["allowed","prohibited"]},"conditions":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","checked","recheck_after","quote"],"additionalProperties":false}]},"commercial":{"anyOf":[{"type":"object","properties":{"status":{"const":"not checked"}},"required":["status"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["terms are silent"]},"conditions":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","checked","recheck_after","conditions"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["allowed with conditions"]},"conditions":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","checked","recheck_after","quote","conditions"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["allowed","prohibited"]},"conditions":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","checked","recheck_after","quote"],"additionalProperties":false}]},"ai_training":{"anyOf":[{"type":"object","properties":{"status":{"const":"not checked"}},"required":["status"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["terms are silent"]},"conditions":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","checked","recheck_after","conditions"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["allowed with conditions"]},"conditions":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","checked","recheck_after","quote","conditions"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["allowed","prohibited"]},"conditions":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1,"pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"url":{"type":"string","minLength":1,"format":"uri"},"checked":{"type":"string","minLength":1,"format":"date"},"quote":{"type":"string","minLength":1},"note":{"type":"string","minLength":1},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","checked","recheck_after","quote"],"additionalProperties":false}]}},"required":["live_site","redistribute","commercial","ai_training"],"additionalProperties":false},"scopes":{"type":"object","patternProperties":{"^[a-z0-9][a-z0-9-]{0,47}$":{"type":"object","properties":{"method":{"enum":["api","file"]},"product":{"type":"string","minLength":1},"tier":{"type":"string","minLength":1},"route":{"type":"string","minLength":1,"format":"uri"},"price":{"anyOf":[{"type":"object","properties":{"status":{"const":"not checked"}},"required":["status"],"additionalProperties":false},{"type":"object","properties":{"status":{"enum":["no charge","payment required"]},"url":{"type":"string","minLength":1,"format":"uri"},"quote":{"type":"string","minLength":1},"checked":{"type":"string","minLength":1,"format":"date"},"recheck_after":{"type":"string","minLength":1,"format":"date"},"due_as_of_snapshot":{"type":"boolean"}},"required":["status","url","quote","checked","recheck_after"],"additionalProperties":false}]}},"required":["method","product","tier","route","price"],"additionalProperties":false}},"additionalProperties":false}},"required":["snapshot_date","source_id","name","publisher","source_url","topic","region","coverage","subjects","rights_class","listing","record_kind","fields","uses","scopes"],"additionalProperties":false}
