From f7d9a496cdf887a4d2d65e3225a8b550fdf46aac Mon Sep 17 00:00:00 2001 From: "vysakh.menon" Date: Fri, 23 Aug 2024 14:44:23 -0700 Subject: [PATCH 1/3] 22353 correction of continuation in business --- .../schemas/change_of_address.json | 80 +++++++++---------- src/registry_schemas/schemas/correction.json | 6 +- src/registry_schemas/version.py | 2 +- 3 files changed, 43 insertions(+), 45 deletions(-) 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..ace8f19 100644 --- a/src/registry_schemas/schemas/correction.json +++ b/src/registry_schemas/schemas/correction.json @@ -123,7 +123,11 @@ "BEN", "BC", "CC", - "ULC" + "ULC", + "CBEN", + "C", + "CCC", + "CUL" ] } } 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 From cc972005e908e0c9b29fef5e109d11aee70c513c Mon Sep 17 00:00:00 2001 From: "vysakh.menon" Date: Fri, 23 Aug 2024 14:57:00 -0700 Subject: [PATCH 2/3] no message --- src/registry_schemas/schemas/correction.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registry_schemas/schemas/correction.json b/src/registry_schemas/schemas/correction.json index ace8f19..ef11fe1 100644 --- a/src/registry_schemas/schemas/correction.json +++ b/src/registry_schemas/schemas/correction.json @@ -124,8 +124,8 @@ "BC", "CC", "ULC", - "CBEN", "C", + "CBEN", "CCC", "CUL" ] From cfa6b0eb6d01e1ade12a915dcc62aaf822431e51 Mon Sep 17 00:00:00 2001 From: "vysakh.menon" Date: Fri, 23 Aug 2024 15:03:23 -0700 Subject: [PATCH 3/3] no message --- src/registry_schemas/schemas/correction.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/registry_schemas/schemas/correction.json b/src/registry_schemas/schemas/correction.json index ef11fe1..7472949 100644 --- a/src/registry_schemas/schemas/correction.json +++ b/src/registry_schemas/schemas/correction.json @@ -120,14 +120,14 @@ "properties": { "legalType": { "enum": [ - "BEN", "BC", - "CC", - "ULC", + "BEN", "C", "CBEN", + "CC", "CCC", - "CUL" + "CUL", + "ULC" ] } }