changedOutput schema / properties / data / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "atc_code": {
- "type": [
- "string",
- "null"
- ]
- },
- "cis": {
- "pattern": "^\\d{8}$",
- "type": "string"
- },
- "is_mitm": {
- "type": "boolean"
- },
- "kind": {
- "const": "mitm",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "source": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "cis",
- "name",
- "is_mitm",
- "atc_code",
- "source"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "candidates": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "cis": {
- "pattern": "^\\d{8}$",
- "type": "string"
- },
- "holder": {
- "type": [
- "string",
- "null"
- ]
- },
- "marketing_status": {
- "type": [
- "string",
- "null"
- ]
- },
- "name": {
- "type": "string"
- },
- "shortage_status": {
- "anyOf": [
- {
- "enum": [
- "rupture",
- "tension",
- "arret_commercialisation",
- "remise_a_disposition",
- "autre"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "cis",
- "name",
- "holder",
- "marketing_status",
- "shortage_status"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "capped": {
- "type": "boolean"
- },
- "kind": {
- "const": "candidates",
- "type": "string"
- },
- "total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "total",
- "capped",
- "candidates"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "did_you_mean": {
- "type": [
- "string",
- "null"
- ]
- },
- "kind": {
- "const": "not_found",
- "type": "string"
- },
- "possibly_related_shortages": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "ansm_updated_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ansm_url": {
- "format": "uri",
- "type": "string"
- },
- "dci": {
- "type": [
- "string",
- "null"
- ]
- },
- "expected_return": {
- "additionalProperties": false,
- "properties": {
- "earliest": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "latest": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "part": {
- "anyOf": [
- {
- "enum": [
- "debut",
- "mi",
- "fin"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "passed": {
- "type": "boolean"
- },
- "precision": {
- "anyOf": [
- {
- "enum": [
- "day",
- "month",
- "quarter",
- "year"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "raw": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "earliest",
- "latest",
- "precision",
- "part",
- "raw",
- "passed"
- ],
- "type": "object"
- },
- "match_confidence": {
- "type": [
- "number",
- "null"
- ]
- },
- "match_note": {
- "const": "probable match",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "returned_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "scope": {
- "enum": [
- "ville",
- "hopital",
- "ville_hopital",
- "inconnu"
- ],
- "type": "string"
- },
- "scope_raw": {
- "type": [
- "string",
- "null"
- ]
- },
- "shortage_id": {
- "type": "string"
- },
- "status": {
- "enum": [
- "rupture",
- "tension",
- "arret_commercialisation",
- "remise_a_disposition",
- "autre"
- ],
- "type": "string"
- },
- "status_label_fr": {
- "type": "string"
- }
- },
- "required": [
- "shortage_id",
- "name",
- "dci",
- "status",
- "status_label_fr",
- "scope",
- "scope_raw",
- "expected_return",
- "returned_at",
- "ansm_updated_at",
- "ansm_url",
- "match_confidence"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "kind",
- "possibly_related_shortages",
- "did_you_mean"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "atc_code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "cis": {
+ "pattern": "^\\d{8}$",
+ "type": "string"
+ },
+ "is_mitm": {
+ "type": "boolean"
+ },
+ "kind": {
+ "const": "mitm",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "source": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "cis",
+ "name",
+ "is_mitm",
+ "atc_code",
+ "source"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "atc_code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "is_mitm": {
+ "type": "boolean"
+ },
+ "kind": {
+ "const": "aggregated",
+ "type": "string"
+ },
+ "medicines": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "cis": {
+ "pattern": "^\\d{8}$",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cis",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "query": {
+ "type": "string"
+ },
+ "source": {
+ "type": "string"
+ },
+ "total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "query",
+ "total",
+ "is_mitm",
+ "atc_code",
+ "medicines",
+ "source"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "candidates": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "atc_code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "cis": {
+ "pattern": "^\\d{8}$",
+ "type": "string"
+ },
+ "holder": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "is_mitm": {
+ "type": "boolean"
+ },
+ "marketing_status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "shortage_status": {
+ "anyOf": [
+ {
+ "enum": [
+ "rupture",
+ "tension",
+ "arret_commercialisation",
+ "remise_a_disposition",
+ "autre"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "cis",
+ "name",
+ "holder",
+ "marketing_status",
+ "shortage_status",
+ "is_mitm",
+ "atc_code"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "capped": {
+ "type": "boolean"
+ },
+ "kind": {
+ "const": "candidates",
+ "type": "string"
+ },
+ "total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "total",
+ "capped",
+ "candidates"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "did_you_mean": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "kind": {
+ "const": "not_found",
+ "type": "string"
+ },
+ "possibly_related_shortages": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "ansm_updated_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "ansm_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "dci": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "expected_return": {
+ "additionalProperties": false,
+ "properties": {
+ "earliest": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "latest": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "part": {
+ "anyOf": [
+ {
+ "enum": [
+ "debut",
+ "mi",
+ "fin"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "passed": {
+ "type": "boolean"
+ },
+ "precision": {
+ "anyOf": [
+ {
+ "enum": [
+ "day",
+ "month",
+ "quarter",
+ "year"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "earliest",
+ "latest",
+ "precision",
+ "part",
+ "raw",
+ "passed"
+ ],
+ "type": "object"
+ },
+ "match_confidence": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "match_note": {
+ "const": "probable match",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "returned_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "scope": {
+ "enum": [
+ "ville",
+ "hopital",
+ "ville_hopital",
+ "inconnu"
+ ],
+ "type": "string"
+ },
+ "scope_raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "shortage_id": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "rupture",
+ "tension",
+ "arret_commercialisation",
+ "remise_a_disposition",
+ "autre"
+ ],
+ "type": "string"
+ },
+ "status_label_fr": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "shortage_id",
+ "name",
+ "dci",
+ "status",
+ "status_label_fr",
+ "scope",
+ "scope_raw",
+ "expected_return",
+ "returned_at",
+ "ansm_updated_at",
+ "ansm_url",
+ "match_confidence"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "kind",
+ "possibly_related_shortages",
+ "did_you_mean"
+ ],
+ "type": "object"
+ }
+]