diff --git a/requirements.txt b/requirements.txt index eb2ba82..9844433 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ flask -jsonschema[format] -referencing +jsonschema[format]==4.17.3 requests strict-rfc3339 diff --git a/src/registry_schemas/example_data/schema_data.py b/src/registry_schemas/example_data/schema_data.py index 90a1487..d1678cf 100644 --- a/src/registry_schemas/example_data/schema_data.py +++ b/src/registry_schemas/example_data/schema_data.py @@ -37,6 +37,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-04-15T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' } } @@ -49,6 +50,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-04-15T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP', 'state': 'ACTIVE', 'goodStanding': True, @@ -70,6 +72,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-04-15T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP', 'state': 'HISTORICAL', 'stateFiling': 'https://LEGAL-API-HOST/api/v2/businesses/IDENTIFIER/filings/FILING_ID' @@ -263,6 +266,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' }, 'annualReport': { @@ -536,6 +540,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' }, 'correction': { @@ -626,6 +631,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' }, 'correction': { @@ -680,6 +686,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' }, 'correction': { @@ -792,6 +799,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' }, 'correction': { @@ -1219,6 +1227,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - BC1234567', + 'businessName': 'legal name - BC1234567', 'legalType': 'BC' }, 'correction': { @@ -1637,6 +1646,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - FM1234567', + 'businessName': 'legal name - FM1234567', 'legalType': 'GP' }, 'correction': { @@ -1842,6 +1852,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - FM1234567', + 'businessName': 'legal name - FM1234567', 'legalType': 'GP' }, 'correction': { @@ -2512,6 +2523,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-04-15T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' } } @@ -2562,6 +2574,7 @@ 'foundingDate': '2018-01-01T00:00:00+00:00', 'identifier': 'U1234567', 'legalName': 'legal name - Test', + 'businessName': 'legal name - Test', 'legalType': 'BC' }, 'alteration': ALTERATION @@ -2582,6 +2595,7 @@ 'identifier': 'BC1234567', 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'legalName': 'legal name - BC1234567', + 'businessName': 'legal name - BC1234567', 'legalType': 'BC' }, 'conversion': BEN_CONVERSION @@ -2603,6 +2617,7 @@ 'identifier': 'BC1234567', 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'legalName': 'legal name - BC1234567', + 'businessName': 'legal name - BC1234567', 'legalType': 'BC' }, 'transition': TRANSITION @@ -2622,6 +2637,7 @@ 'foundingDate': '2018-01-01T00:00:00+00:00', 'identifier': 'U1234567', 'legalName': 'legal name - Test', + 'businessName': 'legal name - Test', 'legalType': 'BC' }, 'registrarsNotation': REGISTRARS_NOTATION @@ -2641,6 +2657,7 @@ 'foundingDate': '2018-01-01T00:00:00+00:00', 'identifier': 'U1234567', 'legalName': 'legal name - Test', + 'businessName': 'legal name - Test', 'legalType': 'BC' }, 'registrarsOrder': REGISTRARS_ORDER @@ -2660,6 +2677,7 @@ 'foundingDate': '2018-01-01T00:00:00+00:00', 'identifier': 'U1234567', 'legalName': 'legal name - Test', + 'businessName': 'legal name - Test', 'legalType': 'BC' }, 'courtOrder': COURT_ORDER @@ -2679,6 +2697,7 @@ 'foundingDate': '2018-01-01T00:00:00+00:00', 'identifier': 'FM1234567', 'legalName': 'legal name - Test', + 'businessName': 'legal name - Test', 'legalType': 'GP' }, 'changeOfRegistration': CHANGE_OF_REGISTRATION @@ -2704,6 +2723,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' }, 'changeOfName': { diff --git a/src/registry_schemas/schemas/business.json b/src/registry_schemas/schemas/business.json index 68753a4..eddd0b6 100644 --- a/src/registry_schemas/schemas/business.json +++ b/src/registry_schemas/schemas/business.json @@ -14,11 +14,18 @@ }, "legalName": { "type": "string", - "title": "The Legal_name Schema", + "title": "The Legal Name of the business.", "default": "", "examples": ["legal_name"], "pattern": "^(.*)$" }, + "businessName": { + "type": "string", + "title": "The business name of the business. For firms, this will be the same as the operating name. For other business legal types, this will likely be the same as the legal name.", + "default": "", + "examples": ["business_name"], + "pattern": "^(.*)$" + }, "legalType": { "type": "string", "title": "The Legal Type of the business.", @@ -151,6 +158,9 @@ "legalName": { "$ref": "#/definitions/legalName" }, + "businessName": { + "$ref": "#/definitions/businessName" + }, "legalType": { "$ref": "#/definitions/legalType" },