diff --git a/src/registry_schemas/schemas/change_of_address.json b/src/registry_schemas/schemas/change_of_address.json index e86d03a..faceae8 100644 --- a/src/registry_schemas/schemas/change_of_address.json +++ b/src/registry_schemas/schemas/change_of_address.json @@ -14,55 +14,49 @@ }, "allOf": [ { - "if": { - "properties": { - "legalType": { - "const": "CP" - } - } - }, - "then": { - "properties": { - "offices": { - "registeredOffice": { - "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/office" + "if": { + "properties": { + "legalType": { + "const": "CP" + } + } + }, + "then": { + "properties": { + "offices": { + "registeredOffice": { + "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/office" + }, + "required": [ + "registeredOffice" + ] + } }, "required": [ - "registeredOffice" + "offices" ] - } - }, - "required": [ - "offices" - ] - }}, - { - "if": { - "properties": { - "legalType": { - "enum": ["BC", "BEN"] - } - } - }, - "then": { - "properties": { - "offices": { - "registeredOffice": { - "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/office" - }, - "recordsOffice": { - "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/office" + }, + "else": { + "properties": { + "offices": { + "registeredOffice": { + "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/office" + }, + "recordsOffice": { + "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/office" + }, + "required": [ + "registeredOffice", + "recordsOffice" + ] + } }, "required": [ - "registeredOffice", "recordsOffice" + "offices" ] } - }, - "required": [ - "offices" - ] - }} - ], + } + ], "required": [ "legalType" ] @@ -73,4 +67,4 @@ "$ref": "#/definitions/changeOfAddress" } } -} \ No newline at end of file +} diff --git a/src/registry_schemas/schemas/correction.json b/src/registry_schemas/schemas/correction.json index 94ac80d..7472949 100644 --- a/src/registry_schemas/schemas/correction.json +++ b/src/registry_schemas/schemas/correction.json @@ -120,9 +120,13 @@ "properties": { "legalType": { "enum": [ - "BEN", "BC", + "BEN", + "C", + "CBEN", "CC", + "CCC", + "CUL", "ULC" ] } diff --git a/src/registry_schemas/version.py b/src/registry_schemas/version.py index abd2115..029133b 100644 --- a/src/registry_schemas/version.py +++ b/src/registry_schemas/version.py @@ -23,4 +23,4 @@ """ -__version__ = '2.18.27' # pylint: disable=invalid-name +__version__ = '2.18.28' # pylint: disable=invalid-name