feature/json-spec-scripts#272
Conversation
…ng and uploading json schemas for all found tags
Build PreviewYou can find files attached to the below linked Workflow Run URL (Logs).
|
|
CI was failing due to unrelated ODS_Tools test bug(s), passing CI with fix/schema-validation branch: Specific test fixes: |
Build PreviewYou can find files attached to the below linked Workflow Run URL (Logs).
|
Build PreviewYou can find files attached to the below linked Workflow Run URL (Logs).
|
Build PreviewYou can find files attached to the below linked Workflow Run URL (Logs).
|
feature/json-spec-scripts
Adds
spec_*utility scripts for generating, downloading, comparing, validating, and uploading OED JSON specs across all release tags. Also fixes two pandas 3.0 compatibility issues inextract_spec.pyand updates Example CSVs to pass 5.0.0 spec validation.Changes
utils/extract_spec.pyapply(pd.Series, 1)→apply(pd.Series)(pandas 3.0 removedconvert_dtypepositional arg)float('nan')instead ofNone)"AIR code"column when"CEDE code"is absent (pre-3.0.0 Excel files)utils/spec_*.py(new)spec_download.py— download released JSON specs from GitHub intospec-downloaded/spec_generate.py— regenerate JSON specs from source at each tag intospec-generated/spec_compare.py— diffspec-downloaded/vsspec-generated/spec_validate.py— validate specs against ods_tools validators using Example CSVs or a PiWind configspec_upload.py— upload generated specs to GitHub releasesExamples/property_location.csv: populateLocPerilsCovered=WW1andLocCurrency=GBPfor all 500 rowsmarinecargo_account.csv: addPolDedType6All(conditionally required whenPolDed6Allis set)JSON spec changes
cr_field+versioning)versioningonly)closes OasisLMF/ODS_Tools#237
closes OasisLMF/ODS_Tools#236