changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "designation_programs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "count": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "label": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "label",
+ "count"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "divergences": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "demandLabel": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "demandPct": {
+ "type": "number"
+ },
+ "label": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "reading": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "supplyLabel": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "supplyPct": {
+ "type": "number"
+ },
+ "window": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "label",
+ "window",
+ "supplyLabel",
+ "supplyPct",
+ "demandLabel",
+ "demandPct",
+ "reading"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "generated_at": {
+ "format": "date",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "headline": {
+ "additionalProperties": false,
+ "properties": {
+ "designations": {
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "seizureCountries": {
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "seizureYear": {
+ "minimum": 1900,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "usOverdoseLatest": {
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "usOverdoseWindow": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "usOverdoseYear": {
+ "minimum": 1900,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "usOverdoseYoY": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "wastewaterCities": {
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "worldSeizureTonnes": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "usOverdoseLatest",
+ "usOverdoseYoY",
+ "usOverdoseYear",
+ "usOverdoseWindow",
+ "worldSeizureTonnes",
+ "seizureYear",
+ "designations",
+ "seizureCountries",
+ "wastewaterCities"
+ ],
+ "type": "object"
+ },
+ "interpretation": {
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "note": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "overdose_by_substance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "deaths": {
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "label": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "substance": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "yoy": {
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "substance",
+ "label",
+ "deaths",
+ "yoy"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "const": "narcoscope.api.overview.v1"
+ },
+ "top_seizure_countries": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "iso3": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ },
+ "kg": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "iso3",
+ "name",
+ "kg"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema",
+ "generated_at",
+ "note",
+ "headline",
+ "overdose_by_substance",
+ "top_seizure_countries",
+ "designation_programs",
+ "divergences",
+ "interpretation"
+ ],
+ "type": "object"
+}