Skip to content

Commit

Permalink
19392 cco field details removed
Browse files Browse the repository at this point in the history
  • Loading branch information
vysakh-menon-aot committed Mar 22, 2024
1 parent 7dd97b9 commit 2436ff9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 30 deletions.
1 change: 0 additions & 1 deletion src/registry_schemas/example_data/schema_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,6 @@
}

CONSENT_CONTINUATION_OUT = {
'details': 'A note to explain the consent to continue out',
'foreignJurisdiction': FOREIGN_JURISDICTION,
'courtOrder': COURT_ORDER
}
Expand Down
9 changes: 0 additions & 9 deletions src/registry_schemas/schemas/consent_continuation_out.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@
"foreignJurisdiction"
],
"properties": {
"details": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 2000,
"description": "A brief note to explain the consent to continue out."
},
"foreignJurisdiction": {
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/foreign_jurisdiction"
},
Expand Down
2 changes: 1 addition & 1 deletion src/registry_schemas/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"""


__version__ = '2.18.20' # pylint: disable=invalid-name
__version__ = '2.18.21' # pylint: disable=invalid-name
19 changes: 0 additions & 19 deletions tests/unit/test_consent_continuation_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,3 @@ def test_consent_continuation_out_invalid_jurisdiction():
print(errors)

assert not is_valid


@pytest.mark.parametrize('details', [
('some details'),
(None)
])
def test_consent_continuation_out_validate_details(details):
"""Assert that the JSONSchema is validating details."""
legal_filing = {'consentContinuationOut': copy.deepcopy(CONSENT_CONTINUATION_OUT)}
legal_filing['consentContinuationOut']['details'] = details

is_valid, errors = validate(legal_filing, 'consent_continuation_out')

if errors:
for err in errors:
print(err.message)
print(errors)

assert is_valid

0 comments on commit 2436ff9

Please sign in to comment.