changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "envelope": {
+ "properties": {
+ "contract_version": {
+ "const": "1.0"
+ },
+ "representation": {
+ "enum": [
+ "source",
+ "source_records",
+ "parsed_source",
+ "transformed"
+ ]
+ },
+ "returned_at": {
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
+ "type": "string"
+ },
+ "sources": {
+ "items": {
+ "$ref": "#/$defs/source"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "unresolved": {
+ "items": {
+ "$ref": "#/$defs/unresolved"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "contract_version",
+ "representation",
+ "sources",
+ "returned_at"
+ ],
+ "type": "object"
+ },
+ "paths": {
+ "items": {
+ "items": {
+ "type": [
+ "string",
+ "integer"
+ ]
+ },
+ "type": "array"
+ },
+ "type": "array"
+ },
+ "source": {
+ "properties": {
+ "cache_hit": {
+ "type": "boolean"
+ },
+ "frozen": {
+ "type": "boolean"
+ },
+ "retrieved_at": {
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
+ "type": "string"
+ },
+ "sha256": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "url": {
+ "pattern": "^https://(www|data|efts)\\.sec\\.gov/",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url",
+ "retrieved_at",
+ "frozen",
+ "cache_hit"
+ ],
+ "type": "object"
+ },
+ "unresolved": {
+ "properties": {
+ "reason": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "reason"
+ ],
+ "type": "object"
+ }
+ },
+ "$id": "edgar://contract/1.0/lookup_company",
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "allOf": [
+ {
+ "$ref": "#/$defs/envelope"
+ },
+ {
+ "properties": {
+ "matches": {
+ "items": {
+ "properties": {
+ "cik": {
+ "pattern": "^\\d{10}$",
+ "type": "string"
+ },
+ "matched_on": {
+ "enum": [
+ "cik",
+ "ticker",
+ "title"
+ ]
+ },
+ "numbers_as_text": {
+ "$ref": "#/$defs/paths"
+ },
+ "record": {
+ "required": [
+ "cik_str",
+ "ticker",
+ "title"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "cik",
+ "matched_on",
+ "record",
+ "numbers_as_text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "representation": {
+ "const": "source_records"
+ },
+ "status": {
+ "enum": [
+ "resolved",
+ "ambiguous",
+ "not_found"
+ ]
+ }
+ },
+ "required": [
+ "query",
+ "status",
+ "matches"
+ ]
+ }
+ ],
+ "type": "object"
+}