changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "data": {
- "additionalProperties": false,
- "properties": {
- "grain": {
- "enum": [
- "year",
- "month"
- ],
- "type": "string"
- },
- "items": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "currency": {
- "description": "ISO 4217 when the unit is currency.",
- "type": [
- "string",
- "null"
- ]
- },
- "id": {
- "type": "string"
- },
- "points": {
- "anyOf": [
- {
- "items": {
- "additionalProperties": false,
- "properties": {
- "period": {
- "type": "string"
- },
- "value": {
- "type": [
- "number",
- "null"
- ]
- },
- "withheld": {
- "anyOf": [
- {
- "enum": [
- "small_cell",
- "privacy"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Why value is null: small_cell (under the floor) or privacy (two values would isolate a few people)."
- }
- },
- "required": [
- "period",
- "value",
- "withheld"
- ],
- "type": "object"
- },
- "maxItems": 24,
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "description": "Newest first. null = withheld for the reason in meta.withheld; a missing period is not zero."
- }
- },
- "required": [
- "id",
- "currency",
- "points"
- ],
- "type": "object"
- },
- "maxItems": 5,
- "type": "array"
- },
- "not_in_coverage": {
- "description": "Ids with no servable record here. Not proof the entity does not exist.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "series": {
- "enum": [
- "revenue",
- "net_profit",
- "tax_paid",
- "insured",
- "avg_wage"
- ],
- "type": "string"
- },
- "unit": {
- "enum": [
- "currency",
- "persons"
- ],
- "type": "string"
- }
- },
- "required": [
- "series",
- "grain",
- "unit",
- "items",
- "not_in_coverage"
- ],
- "type": "object"
- },
- "meta": {
- "additionalProperties": false,
- "properties": {
- "as_of": {
- "description": "Date the answer describes (YYYY-MM-DD): the state as we know it today, or the as_of date asked for.",
- "type": "string"
- },
- "coverage": {
- "additionalProperties": false,
- "properties": {
- "country": {
- "description": "ISO 3166-1 alpha-2 country the answer is about.",
- "type": [
- "string",
- "null"
- ]
- },
- "domains": {
- "additionalProperties": false,
- "description": "Per data domain: served, not_requested, or why it is withheld.",
- "properties": {
- "debt": {
- "enum": [
- "served",
- "not_requested",
- "not_collected",
- "not_licensed",
- "small_cell",
- "privacy",
- "tier",
- "unknown_for_date",
- "not_in_this_version"
- ],
- "type": "string"
- },
- "financials": {
- "enum": [
- "served",
- "not_requested",
- "not_collected",
- "not_licensed",
- "small_cell",
- "privacy",
- "tier",
- "unknown_for_date",
- "not_in_this_version"
- ],
- "type": "string"
- },
- "identity": {
- "enum": [
- "served",
- "not_requested",
- "not_collected",
- "not_licensed",
- "small_cell",
- "privacy",
- "tier",
- "unknown_for_date",
- "not_in_this_version"
- ],
- "type": "string"
- },
- "insolvency": {
- "enum": [
- "served",
- "not_requested",
- "not_collected",
- "not_licensed",
- "small_cell",
- "privacy",
- "tier",
- "unknown_for_date",
- "not_in_this_version"
- ],
- "type": "string"
- },
- "procurement": {
- "enum": [
- "served",
- "not_requested",
- "not_collected",
- "not_licensed",
- "small_cell",
- "privacy",
- "tier",
- "unknown_for_date",
- "not_in_this_version"
- ],
- "type": "string"
- },
- "score": {
- "enum": [
- "served",
- "not_requested",
- "not_collected",
- "not_licensed",
- "small_cell",
- "privacy",
- "tier",
- "unknown_for_date",
- "not_in_this_version"
- ],
- "type": "string"
- },
- "tax": {
- "enum": [
- "served",
- "not_requested",
- "not_collected",
- "not_licensed",
- "small_cell",
- "privacy",
- "tier",
- "unknown_for_date",
- "not_in_this_version"
- ],
- "type": "string"
- },
- "workforce": {
- "enum": [
- "served",
- "not_requested",
- "not_collected",
- "not_licensed",
- "small_cell",
- "privacy",
- "tier",
- "unknown_for_date",
- "not_in_this_version"
- ],
- "type": "string"
- }
- },
- "required": [
- "identity",
- "financials",
- "workforce",
- "tax",
- "debt",
- "insolvency",
- "procurement",
- "score"
- ],
- "type": "object"
- },
- "tier": {
- "anyOf": [
- {
- "enum": [
- "identity",
- "enriched",
- "evaluated"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Coverage tier of the one entity answered; null for lists (each row carries its own)."
- }
- },
- "required": [
- "country",
- "tier",
- "domains"
- ],
- "type": "object"
- },
- "next_cursor": {
- "description": "Pass as cursor for the next page, with the same parameters; null = no further page.",
- "type": [
- "string",
- "null"
- ]
- },
- "sources": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "attribution": {
- "description": "Name the publisher when you reuse the data.",
- "type": "string"
- },
- "changes_made": {
- "items": {
- "enum": [
- "selected",
- "mapped",
- "banded",
- "rounded",
- "derived",
- "suppressed"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "code": {
- "description": "Source code of the catalogue (get_coverage lists them).",
- "type": "string"
- },
- "licence": {
- "type": "string"
- },
- "licence_status": {
- "enum": [
- "confirmed",
- "not_determined",
- "own_work"
- ],
- "type": "string"
- },
- "retrieved_at": {
- "description": "When we last read the data served here (ISO 8601); null when not recorded.",
- "type": [
- "string",
- "null"
- ]
- },
- "url": {
- "description": "Dataset page of the publisher; null when it has none.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "code",
- "licence",
- "licence_status",
- "attribution",
- "url",
- "retrieved_at",
- "changes_made"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "usage": {
- "additionalProperties": false,
- "properties": {
- "cost": {
- "additionalProperties": false,
- "description": "What this answer was charged.",
- "properties": {
- "calls": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "detail_disclosures": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "identity_disclosures": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "misses": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "calls",
- "identity_disclosures",
- "detail_disclosures",
- "misses"
- ],
- "type": "object"
- },
- "remaining": {
- "additionalProperties": false,
- "description": "Left today after this answer (from the counters read at the start of the call; a parallel call of the same key may have used more).",
- "properties": {
- "calls": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "detail_disclosures": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "identity_disclosures": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "misses": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "calls",
- "identity_disclosures",
- "detail_disclosures",
- "misses"
- ],
- "type": "object"
- },
- "resets_at": {
- "description": "Next reset of the daily counters, ISO 8601 UTC.",
- "type": "string"
- }
- },
- "required": [
- "cost",
- "remaining",
- "resets_at"
- ],
- "type": "object"
- },
- "withheld": {
- "description": "Every null field or block of `data` with the reason. Missing is never zero.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "description": "Path of the null field or block in `data`, e.g. \"financials\".",
- "type": "string"
- },
- "reason": {
- "enum": [
- "not_collected",
- "not_licensed",
- "small_cell",
- "privacy",
- "tier",
- "unknown_for_date",
- "not_in_this_version"
- ],
- "type": "string"
- }
- },
- "required": [
- "field",
- "reason"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "coverage",
- "as_of",
- "sources",
- "withheld",
- "usage",
- "next_cursor"
- ],
- "type": "object"
- }
- },
- "required": [
- "data",
- "meta"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "attribution": {
- "additionalProperties": false,
- "properties": {
- "details": {
- "type": "string"
- },
- "licence": {
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "text",
- "licence",
- "details"
- ],
- "type": "object"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "budget": {
- "enum": [
- "calls",
- "identity_disclosures",
- "detail_disclosures",
- "misses"
- ],
- "type": "string"
- },
- "code": {
- "enum": [
- "invalid_request",
- "not_in_coverage",
- "quota_exceeded",
- "rate_limited",
- "busy",
- "internal_error"
- ],
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "resets_at": {
- "type": "string"
- },
- "retry_after_s": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- }
- },
- "required": [
- "error",
- "attribution"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "grain": {
+ "enum": [
+ "year",
+ "month"
+ ],
+ "type": "string"
+ },
+ "items": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "description": "ISO 4217 when the unit is currency.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "points": {
+ "anyOf": [
+ {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "partial": {
+ "const": true,
+ "description": "Present (true) only on the current calendar year, which is not over: the amount is year-to-date, not comparable with full years.",
+ "type": "boolean"
+ },
+ "period": {
+ "type": "string"
+ },
+ "period_end": {
+ "anyOf": [
+ {
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "With partial: the date of the source's last successful update (YYYY-MM-DD), the latest day the amount can include; null = not recorded."
+ },
+ "value": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "withheld": {
+ "anyOf": [
+ {
+ "enum": [
+ "small_cell",
+ "privacy"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Why value is null: small_cell (under the floor) or privacy (two values would isolate a few people)."
+ }
+ },
+ "required": [
+ "period",
+ "value",
+ "withheld"
+ ],
+ "type": "object"
+ },
+ "maxItems": 24,
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Newest first. null = withheld for the reason in meta.withheld; a missing period is not zero."
+ }
+ },
+ "required": [
+ "id",
+ "currency",
+ "points"
+ ],
+ "type": "object"
+ },
+ "maxItems": 5,
+ "type": "array"
+ },
+ "not_in_coverage": {
+ "description": "Ids with no servable record here. Not proof the entity does not exist.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "series": {
+ "enum": [
+ "revenue",
+ "net_profit",
+ "tax_paid",
+ "insured",
+ "avg_wage"
+ ],
+ "type": "string"
+ },
+ "unit": {
+ "enum": [
+ "currency",
+ "persons"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "series",
+ "grain",
+ "unit",
+ "items",
+ "not_in_coverage"
+ ],
+ "type": "object"
+ },
+ "meta": {
+ "additionalProperties": false,
+ "properties": {
+ "as_of": {
+ "description": "Date the answer describes (YYYY-MM-DD): the state as we know it today, or the as_of date asked for.",
+ "type": "string"
+ },
+ "coverage": {
+ "additionalProperties": false,
+ "properties": {
+ "country": {
+ "description": "ISO 3166-1 alpha-2 country the answer is about.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "domains": {
+ "additionalProperties": false,
+ "description": "Per data domain: served, not_requested, or why it is withheld.",
+ "properties": {
+ "debt": {
+ "enum": [
+ "served",
+ "not_requested",
+ "not_collected",
+ "not_licensed",
+ "small_cell",
+ "privacy",
+ "tier",
+ "unknown_for_date",
+ "not_in_this_version"
+ ],
+ "type": "string"
+ },
+ "financials": {
+ "enum": [
+ "served",
+ "not_requested",
+ "not_collected",
+ "not_licensed",
+ "small_cell",
+ "privacy",
+ "tier",
+ "unknown_for_date",
+ "not_in_this_version"
+ ],
+ "type": "string"
+ },
+ "identity": {
+ "enum": [
+ "served",
+ "not_requested",
+ "not_collected",
+ "not_licensed",
+ "small_cell",
+ "privacy",
+ "tier",
+ "unknown_for_date",
+ "not_in_this_version"
+ ],
+ "type": "string"
+ },
+ "insolvency": {
+ "enum": [
+ "served",
+ "not_requested",
+ "not_collected",
+ "not_licensed",
+ "small_cell",
+ "privacy",
+ "tier",
+ "unknown_for_date",
+ "not_in_this_version"
+ ],
+ "type": "string"
+ },
+ "procurement": {
+ "enum": [
+ "served",
+ "not_requested",
+ "not_collected",
+ "not_licensed",
+ "small_cell",
+ "privacy",
+ "tier",
+ "unknown_for_date",
+ "not_in_this_version"
+ ],
+ "type": "string"
+ },
+ "score": {
+ "enum": [
+ "served",
+ "not_requested",
+ "not_collected",
+ "not_licensed",
+ "small_cell",
+ "privacy",
+ "tier",
+ "unknown_for_date",
+ "not_in_this_version"
+ ],
+ "type": "string"
+ },
+ "tax": {
+ "enum": [
+ "served",
+ "not_requested",
+ "not_collected",
+ "not_licensed",
+ "small_cell",
+ "privacy",
+ "tier",
+ "unknown_for_date",
+ "not_in_this_version"
+ ],
+ "type": "string"
+ },
+ "workforce": {
+ "enum": [
+ "served",
+ "not_requested",
+ "not_collected",
+ "not_licensed",
+ "small_cell",
+ "privacy",
+ "tier",
+ "unknown_for_date",
+ "not_in_this_version"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "identity",
+ "financials",
+ "workforce",
+ "tax",
+ "debt",
+ "insolvency",
+ "procurement",
+ "score"
+ ],
+ "type": "object"
+ },
+ "tier": {
+ "anyOf": [
+ {
+ "enum": [
+ "identity",
+ "enriched",
+ "evaluated"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Coverage tier of the one entity answered; null for lists (each row carries its own)."
+ }
+ },
+ "required": [
+ "country",
+ "tier",
+ "domains"
+ ],
+ "type": "object"
+ },
+ "next_cursor": {
+ "description": "Pass as cursor for the next page, with the same parameters; null = no further page.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "sources": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "attribution": {
+ "description": "Name the publisher when you reuse the data.",
+ "type": "string"
+ },
+ "changes_made": {
+ "items": {
+ "enum": [
+ "selected",
+ "mapped",
+ "banded",
+ "rounded",
+ "derived",
+ "suppressed"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "code": {
+ "description": "Source code of the catalogue (get_coverage lists them).",
+ "type": "string"
+ },
+ "licence": {
+ "type": "string"
+ },
+ "licence_status": {
+ "enum": [
+ "confirmed",
+ "not_determined",
+ "own_work"
+ ],
+ "type": "string"
+ },
+ "retrieved_at": {
+ "description": "When we last read the data served here (ISO 8601); null when not recorded.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "url": {
+ "description": "Dataset page of the publisher; null when it has none.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "licence",
+ "licence_status",
+ "attribution",
+ "url",
+ "retrieved_at",
+ "changes_made"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "usage": {
+ "additionalProperties": false,
+ "properties": {
+ "cost": {
+ "additionalProperties": false,
+ "description": "What this answer was charged.",
+ "properties": {
+ "calls": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "detail_disclosures": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "identity_disclosures": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "misses": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "calls",
+ "identity_disclosures",
+ "detail_disclosures",
+ "misses"
+ ],
+ "type": "object"
+ },
+ "remaining": {
+ "additionalProperties": false,
+ "description": "Left today after this answer (from the counters read at the start of the call; a parallel call of the same key may have used more).",
+ "properties": {
+ "calls": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "detail_disclosures": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "identity_disclosures": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "misses": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "calls",
+ "identity_disclosures",
+ "detail_disclosures",
+ "misses"
+ ],
+ "type": "object"
+ },
+ "resets_at": {
+ "description": "Next reset of the daily counters, ISO 8601 UTC.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "cost",
+ "remaining",
+ "resets_at"
+ ],
+ "type": "object"
+ },
+ "withheld": {
+ "description": "Every null field or block of `data` with the reason. Missing is never zero.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "description": "Path of the null field or block in `data`, e.g. \"financials\".",
+ "type": "string"
+ },
+ "reason": {
+ "enum": [
+ "not_collected",
+ "not_licensed",
+ "small_cell",
+ "privacy",
+ "tier",
+ "unknown_for_date",
+ "not_in_this_version"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "coverage",
+ "as_of",
+ "sources",
+ "withheld",
+ "usage",
+ "next_cursor"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "data",
+ "meta"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "attribution": {
+ "additionalProperties": false,
+ "properties": {
+ "details": {
+ "type": "string"
+ },
+ "licence": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "text",
+ "licence",
+ "details"
+ ],
+ "type": "object"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "budget": {
+ "enum": [
+ "calls",
+ "identity_disclosures",
+ "detail_disclosures",
+ "misses"
+ ],
+ "type": "string"
+ },
+ "code": {
+ "enum": [
+ "invalid_request",
+ "not_in_coverage",
+ "quota_exceeded",
+ "rate_limited",
+ "busy",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "resets_at": {
+ "type": "string"
+ },
+ "retry_after_s": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error",
+ "attribution"
+ ],
+ "type": "object"
+ }
+]