diff --git a/docs/cost/ids/sustainability.md b/docs/cost/ids/sustainability.md index 9b8a8774..3d39e324 100644 --- a/docs/cost/ids/sustainability.md +++ b/docs/cost/ids/sustainability.md @@ -1097,7 +1097,7 @@ Disclose the financial instrument type from the list: :columns: 8 OC4IDS mapping ^^^ -1. Get the [`Finance`](../../reference/schema.md#finance) object in [`.udget.finance`](project-schema.json,,budget/finance) or [`contractingProcesses.summary.finance`](project-schema.json,/definitions/ContractingProcessSummary,finance) that represents the financing arrangement. If none exists yet, [add a financing arrangement](../common.md#add-a-financing-arrangement). +1. Get the [`Finance`](../../reference/schema.md#finance) object in [`.budget.finance`](project-schema.json,,budget/finance) or [`contractingProcesses.summary.finance`](project-schema.json,/definitions/ContractingProcessSummary,finance) that represents the financing arrangement. If none exists yet, [add a financing arrangement](../common.md#add-a-financing-arrangement). 2. Set the the financing arrangement's [`.assetClass`](project-schema.json,/definitions/Finance,assetClass) and [`.type`](project-schema.json,/definitions/Finance,type) according to the instrument type: Instrument type | [`.assetClass`](project-schema.json,/definitions/Finance,assetClass) | [`.type`](project-schema.json,/definitions/Finance,type) diff --git a/manage.py b/manage.py index 4e11c338..42826c43 100755 --- a/manage.py +++ b/manage.py @@ -144,7 +144,7 @@ def _get_definition_references(schema, defn, parents=None, project_schema=None, if "properties" in schema: for key, value in schema["properties"].items(): - if value.get("type") in {"array", ["array"]} and "$ref" in value["items"]: + if value.get("type") in ["array", ["array"]] and "$ref" in value["items"]: if value["items"]["$ref"] == f"#/definitions/{defn}": references.append([*parents, key, "0"]) elif include_nested: @@ -249,7 +249,7 @@ def _update_sub_schema_reference(schema): # Add schema table properties_to_collapse = [] for key, value in definition["properties"].items(): - if value.get("type") not in {"object", ["object"]}: + if value.get("type") not in ["object", ["object"]]: properties_to_collapse.append(key) definition["content"].extend( diff --git a/mapping/sustainability.yaml b/mapping/sustainability.yaml index 1b5b4816..fc5cc7bf 100644 --- a/mapping/sustainability.yaml +++ b/mapping/sustainability.yaml @@ -924,7 +924,7 @@ - equity - guarantees mapping: |- - 1. Get the [`Finance`](../../reference/schema.md#finance) object in [`.udget.finance`](project-schema.json,,budget/finance) or [`contractingProcesses.summary.finance`](project-schema.json,/definitions/ContractingProcessSummary,finance) that represents the financing arrangement. If none exists yet, [add a financing arrangement](../common.md#add-a-financing-arrangement). + 1. Get the [`Finance`](../../reference/schema.md#finance) object in [`.budget.finance`](project-schema.json,,budget/finance) or [`contractingProcesses.summary.finance`](project-schema.json,/definitions/ContractingProcessSummary,finance) that represents the financing arrangement. If none exists yet, [add a financing arrangement](../common.md#add-a-financing-arrangement). 2. Set the the financing arrangement's [`.assetClass`](project-schema.json,/definitions/Finance,assetClass) and [`.type`](project-schema.json,/definitions/Finance,type) according to the instrument type: Instrument type | [`.assetClass`](project-schema.json,/definitions/Finance,assetClass) | [`.type`](project-schema.json,/definitions/Finance,type)