-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common.py: Improved handling of jsonschema
Handle urn references and allOf conditional in schema_dict_fields_generator (plus added tests)
- Loading branch information
Ed (ODSC)
committed
Dec 11, 2024
1 parent
d543d67
commit c1ceec2
Showing
13 changed files
with
6,908 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Test | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ matrix.python-version }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install dependencies | ||
run: pip install -e .[dev] | ||
- name: Run tests | ||
run: py.test tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
[ | ||
{ | ||
"statementID": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", | ||
"statementType": "entityStatement", | ||
"isComponent": false, | ||
"statementDate": "2017-11-18", | ||
"entityType": "registeredEntity", | ||
"name": "CHRINON LTD", | ||
"foundingDate": "2010-11-18", | ||
"identifiers": [ | ||
{ | ||
"scheme": "GB-COH", | ||
"id": "07444723" | ||
} | ||
], | ||
"publicListing": { | ||
"hasPublicListing": true, | ||
"companyFilingsURLs": ["http://example.com/"], | ||
"securitiesListings": [] | ||
}, | ||
"publicationDetails": { | ||
"publicationDate": "2018-02-13", | ||
"bodsVersion": "0.3", | ||
"publisher": { | ||
"name": "CHRINON LTD" | ||
} | ||
}, | ||
"additional": true | ||
}, | ||
{ | ||
"statementID": "019a93f1-e470-42e9-957b-03559861b2e2", | ||
"statementType": "personStatement", | ||
"isComponent": false, | ||
"statementDate": "2017-11-18", | ||
"personType": "knownPerson", | ||
"nationalities": [ | ||
{ | ||
"code": "GB", | ||
"name": "United Kingdom of Great Britain and Northern Ireland (the)" | ||
} | ||
], | ||
"names": [ | ||
{ | ||
"type": "individual", | ||
"fullName": "Christopher Taggart", | ||
"givenName": "Christopher", | ||
"familyName": "Taggart" | ||
}, | ||
{ | ||
"type": "alternative", | ||
"fullName": "Chris Taggart" | ||
} | ||
], | ||
"birthDate": "1964-04", | ||
"addresses": [ | ||
{ | ||
"type": "service", | ||
"address": "Aston House, Cornwall Avenue, London", | ||
"country": "GB", | ||
"postCode": "N3 1LF" | ||
} | ||
], | ||
"publicationDetails": { | ||
"publicationDate": "2018-02-13", | ||
"bodsVersion": "0.3", | ||
"publisher": { | ||
"name": "CHRINON LTD" | ||
} | ||
} | ||
}, | ||
{ | ||
"statementID": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c", | ||
"statementType": "ownershipOrControlStatement", | ||
"isComponent": false, | ||
"statementDate": "2017-11-18", | ||
"subject": { | ||
"describedByEntityStatement": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7" | ||
}, | ||
"interestedParty": { | ||
"describedByPersonStatement": "019a93f1-e470-42e9-957b-03559861b2e2" | ||
}, | ||
"interests": [ | ||
{ | ||
"type": "shareholding", | ||
"directOrIndirect": "direct", | ||
"beneficialOwnershipOrControl": true, | ||
"startDate": "2016-04-06", | ||
"share": { | ||
"exact": 100, | ||
"minimum": 100, | ||
"maximum": 100 | ||
} | ||
} | ||
], | ||
"publicationDetails": { | ||
"publicationDate": "2018-02-13", | ||
"bodsVersion": "0.3", | ||
"publisher": { | ||
"name": "CHRINON LTD" | ||
} | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
[ | ||
{ | ||
"statementID": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", | ||
"statementType": "entityStatement", | ||
"isComponent": false, | ||
"statementDate": "2017-11-18", | ||
"entityType": "registeredEntity", | ||
"name": "CHRINON LTD", | ||
"foundingDate": "2010-11-18", | ||
"identifiers": [ | ||
{ | ||
"scheme": "GB-COH", | ||
"id": "07444723" | ||
} | ||
], | ||
"publicListing": { | ||
"hasPublicListing": true, | ||
"companyFilingsURLs": ["http://example.com/"], | ||
"securitiesListings": [] | ||
}, | ||
"publicationDetails": { | ||
"publicationDate": "2018-02-13", | ||
"bodsVersion": "0.3", | ||
"publisher": { | ||
"name": "CHRINON LTD" | ||
} | ||
} | ||
}, | ||
{ | ||
"statementID": "019a93f1-e470-42e9-957b-03559861b2e2", | ||
"statementType": "personStatement", | ||
"isComponent": false, | ||
"statementDate": "2017-11-18", | ||
"personType": "knownPerson", | ||
"nationalities": [ | ||
{ | ||
"code": "GB", | ||
"name": "United Kingdom of Great Britain and Northern Ireland (the)" | ||
} | ||
], | ||
"names": [ | ||
{ | ||
"type": "individual", | ||
"fullName": "Christopher Taggart", | ||
"givenName": "Christopher", | ||
"familyName": "Taggart" | ||
}, | ||
{ | ||
"type": "alternative", | ||
"fullName": "Chris Taggart" | ||
} | ||
], | ||
"birthDate": "1964-04", | ||
"addresses": [ | ||
{ | ||
"type": "service", | ||
"address": "Aston House, Cornwall Avenue, London", | ||
"country": "GB", | ||
"postCode": "N3 1LF" | ||
} | ||
], | ||
"publicationDetails": { | ||
"publicationDate": "2018-02-13", | ||
"bodsVersion": "0.3", | ||
"publisher": { | ||
"name": "CHRINON LTD" | ||
} | ||
} | ||
}, | ||
{ | ||
"statementID": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c", | ||
"statementType": "ownershipOrControlStatement", | ||
"isComponent": false, | ||
"statementDate": "2017-11-18", | ||
"subject": { | ||
"describedByEntityStatement": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7" | ||
}, | ||
"interestedParty": { | ||
"describedByPersonStatement": "019a93f1-e470-42e9-957b-03559861b2e2" | ||
}, | ||
"interests": [ | ||
{ | ||
"type": "shareholding", | ||
"directOrIndirect": "direct", | ||
"beneficialOwnershipOrControl": true, | ||
"startDate": "2016-04-06", | ||
"share": { | ||
"exact": 100, | ||
"minimum": 100, | ||
"maximum": 100 | ||
} | ||
} | ||
], | ||
"publicationDetails": { | ||
"publicationDate": "2018-02-13", | ||
"bodsVersion": "0.3", | ||
"publisher": { | ||
"name": "CHRINON LTD" | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.