From 4998de9f4ff4aeae450e6556e768daf19ff70926 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Fri, 24 Oct 2025 16:40:51 -0400 Subject: [PATCH] Fix ISO currency year name Signed-off-by: Juan Cruz Viotti --- generate/iso/currency/main.py | 2 +- schemas/iso/currency/{2025 => 2015}/alpha-code.json | 0 schemas/iso/currency/{2025 => 2015}/alpha-currency.json | 0 schemas/iso/currency/{2025 => 2015}/alpha-fund.json | 0 schemas/iso/currency/{2025 => 2015}/alpha-precious-metal.json | 0 schemas/iso/currency/{2025 => 2015}/alpha-test.json | 0 schemas/iso/currency/{2025 => 2015}/alpha-unknown.json | 0 schemas/iso/currency/{2025 => 2015}/historical/alpha-code.json | 0 .../iso/currency/{2025 => 2015}/historical/alpha-currency.json | 0 .../iso/currency/{2025 => 2015}/historical/numeric-code.json | 0 .../currency/{2025 => 2015}/historical/numeric-currency.json | 0 .../iso/currency/{2025 => 2015}/numeric-code-additional.json | 0 schemas/iso/currency/{2025 => 2015}/numeric-code.json | 0 schemas/iso/currency/{2025 => 2015}/numeric-currency.json | 0 schemas/iso/currency/{2025 => 2015}/numeric-fund.json | 0 schemas/iso/currency/{2025 => 2015}/numeric-precious-metal.json | 0 schemas/iso/currency/{2025 => 2015}/numeric-test.json | 0 schemas/iso/currency/{2025 => 2015}/numeric-unknown.json | 0 test/iso/currency/{2025 => 2015}/alpha-code.test.json | 2 +- test/iso/currency/{2025 => 2015}/alpha-currency.test.json | 2 +- test/iso/currency/{2025 => 2015}/alpha-fund.test.json | 2 +- test/iso/currency/{2025 => 2015}/alpha-precious-metal.test.json | 2 +- test/iso/currency/{2025 => 2015}/alpha-test.test.json | 2 +- test/iso/currency/{2025 => 2015}/alpha-unknown.test.json | 2 +- .../iso/currency/{2025 => 2015}/historical/alpha-code.test.json | 2 +- .../currency/{2025 => 2015}/historical/alpha-currency.test.json | 2 +- .../currency/{2025 => 2015}/historical/numeric-code.test.json | 2 +- .../{2025 => 2015}/historical/numeric-currency.test.json | 2 +- .../currency/{2025 => 2015}/numeric-code-additional.test.json | 2 +- test/iso/currency/{2025 => 2015}/numeric-code.test.json | 2 +- test/iso/currency/{2025 => 2015}/numeric-currency.test.json | 2 +- test/iso/currency/{2025 => 2015}/numeric-fund.test.json | 2 +- .../currency/{2025 => 2015}/numeric-precious-metal.test.json | 2 +- test/iso/currency/{2025 => 2015}/numeric-test.test.json | 2 +- test/iso/currency/{2025 => 2015}/numeric-unknown.test.json | 2 +- 35 files changed, 18 insertions(+), 18 deletions(-) rename schemas/iso/currency/{2025 => 2015}/alpha-code.json (100%) rename schemas/iso/currency/{2025 => 2015}/alpha-currency.json (100%) rename schemas/iso/currency/{2025 => 2015}/alpha-fund.json (100%) rename schemas/iso/currency/{2025 => 2015}/alpha-precious-metal.json (100%) rename schemas/iso/currency/{2025 => 2015}/alpha-test.json (100%) rename schemas/iso/currency/{2025 => 2015}/alpha-unknown.json (100%) rename schemas/iso/currency/{2025 => 2015}/historical/alpha-code.json (100%) rename schemas/iso/currency/{2025 => 2015}/historical/alpha-currency.json (100%) rename schemas/iso/currency/{2025 => 2015}/historical/numeric-code.json (100%) rename schemas/iso/currency/{2025 => 2015}/historical/numeric-currency.json (100%) rename schemas/iso/currency/{2025 => 2015}/numeric-code-additional.json (100%) rename schemas/iso/currency/{2025 => 2015}/numeric-code.json (100%) rename schemas/iso/currency/{2025 => 2015}/numeric-currency.json (100%) rename schemas/iso/currency/{2025 => 2015}/numeric-fund.json (100%) rename schemas/iso/currency/{2025 => 2015}/numeric-precious-metal.json (100%) rename schemas/iso/currency/{2025 => 2015}/numeric-test.json (100%) rename schemas/iso/currency/{2025 => 2015}/numeric-unknown.json (100%) rename test/iso/currency/{2025 => 2015}/alpha-code.test.json (96%) rename test/iso/currency/{2025 => 2015}/alpha-currency.test.json (97%) rename test/iso/currency/{2025 => 2015}/alpha-fund.test.json (94%) rename test/iso/currency/{2025 => 2015}/alpha-precious-metal.test.json (95%) rename test/iso/currency/{2025 => 2015}/alpha-test.test.json (95%) rename test/iso/currency/{2025 => 2015}/alpha-unknown.test.json (95%) rename test/iso/currency/{2025 => 2015}/historical/alpha-code.test.json (95%) rename test/iso/currency/{2025 => 2015}/historical/alpha-currency.test.json (96%) rename test/iso/currency/{2025 => 2015}/historical/numeric-code.test.json (95%) rename test/iso/currency/{2025 => 2015}/historical/numeric-currency.test.json (95%) rename test/iso/currency/{2025 => 2015}/numeric-code-additional.test.json (95%) rename test/iso/currency/{2025 => 2015}/numeric-code.test.json (96%) rename test/iso/currency/{2025 => 2015}/numeric-currency.test.json (97%) rename test/iso/currency/{2025 => 2015}/numeric-fund.test.json (94%) rename test/iso/currency/{2025 => 2015}/numeric-precious-metal.test.json (95%) rename test/iso/currency/{2025 => 2015}/numeric-test.test.json (94%) rename test/iso/currency/{2025 => 2015}/numeric-unknown.test.json (94%) diff --git a/generate/iso/currency/main.py b/generate/iso/currency/main.py index eba239d8..a92e89dd 100644 --- a/generate/iso/currency/main.py +++ b/generate/iso/currency/main.py @@ -346,7 +346,7 @@ def main(): project_root = os.path.dirname(os.path.dirname(os.path.dirname(script_dir))) current_data_file = os.path.join(project_root, "external", "iso", "currency", "list-one.json") historical_data_file = os.path.join(project_root, "external", "iso", "currency", "list-three.json") - output_dir = os.path.join(project_root, "schemas", "iso", "currency", "2025") + output_dir = os.path.join(project_root, "schemas", "iso", "currency", "2015") # Generate current schemas if not os.path.exists(current_data_file): diff --git a/schemas/iso/currency/2025/alpha-code.json b/schemas/iso/currency/2015/alpha-code.json similarity index 100% rename from schemas/iso/currency/2025/alpha-code.json rename to schemas/iso/currency/2015/alpha-code.json diff --git a/schemas/iso/currency/2025/alpha-currency.json b/schemas/iso/currency/2015/alpha-currency.json similarity index 100% rename from schemas/iso/currency/2025/alpha-currency.json rename to schemas/iso/currency/2015/alpha-currency.json diff --git a/schemas/iso/currency/2025/alpha-fund.json b/schemas/iso/currency/2015/alpha-fund.json similarity index 100% rename from schemas/iso/currency/2025/alpha-fund.json rename to schemas/iso/currency/2015/alpha-fund.json diff --git a/schemas/iso/currency/2025/alpha-precious-metal.json b/schemas/iso/currency/2015/alpha-precious-metal.json similarity index 100% rename from schemas/iso/currency/2025/alpha-precious-metal.json rename to schemas/iso/currency/2015/alpha-precious-metal.json diff --git a/schemas/iso/currency/2025/alpha-test.json b/schemas/iso/currency/2015/alpha-test.json similarity index 100% rename from schemas/iso/currency/2025/alpha-test.json rename to schemas/iso/currency/2015/alpha-test.json diff --git a/schemas/iso/currency/2025/alpha-unknown.json b/schemas/iso/currency/2015/alpha-unknown.json similarity index 100% rename from schemas/iso/currency/2025/alpha-unknown.json rename to schemas/iso/currency/2015/alpha-unknown.json diff --git a/schemas/iso/currency/2025/historical/alpha-code.json b/schemas/iso/currency/2015/historical/alpha-code.json similarity index 100% rename from schemas/iso/currency/2025/historical/alpha-code.json rename to schemas/iso/currency/2015/historical/alpha-code.json diff --git a/schemas/iso/currency/2025/historical/alpha-currency.json b/schemas/iso/currency/2015/historical/alpha-currency.json similarity index 100% rename from schemas/iso/currency/2025/historical/alpha-currency.json rename to schemas/iso/currency/2015/historical/alpha-currency.json diff --git a/schemas/iso/currency/2025/historical/numeric-code.json b/schemas/iso/currency/2015/historical/numeric-code.json similarity index 100% rename from schemas/iso/currency/2025/historical/numeric-code.json rename to schemas/iso/currency/2015/historical/numeric-code.json diff --git a/schemas/iso/currency/2025/historical/numeric-currency.json b/schemas/iso/currency/2015/historical/numeric-currency.json similarity index 100% rename from schemas/iso/currency/2025/historical/numeric-currency.json rename to schemas/iso/currency/2015/historical/numeric-currency.json diff --git a/schemas/iso/currency/2025/numeric-code-additional.json b/schemas/iso/currency/2015/numeric-code-additional.json similarity index 100% rename from schemas/iso/currency/2025/numeric-code-additional.json rename to schemas/iso/currency/2015/numeric-code-additional.json diff --git a/schemas/iso/currency/2025/numeric-code.json b/schemas/iso/currency/2015/numeric-code.json similarity index 100% rename from schemas/iso/currency/2025/numeric-code.json rename to schemas/iso/currency/2015/numeric-code.json diff --git a/schemas/iso/currency/2025/numeric-currency.json b/schemas/iso/currency/2015/numeric-currency.json similarity index 100% rename from schemas/iso/currency/2025/numeric-currency.json rename to schemas/iso/currency/2015/numeric-currency.json diff --git a/schemas/iso/currency/2025/numeric-fund.json b/schemas/iso/currency/2015/numeric-fund.json similarity index 100% rename from schemas/iso/currency/2025/numeric-fund.json rename to schemas/iso/currency/2015/numeric-fund.json diff --git a/schemas/iso/currency/2025/numeric-precious-metal.json b/schemas/iso/currency/2015/numeric-precious-metal.json similarity index 100% rename from schemas/iso/currency/2025/numeric-precious-metal.json rename to schemas/iso/currency/2015/numeric-precious-metal.json diff --git a/schemas/iso/currency/2025/numeric-test.json b/schemas/iso/currency/2015/numeric-test.json similarity index 100% rename from schemas/iso/currency/2025/numeric-test.json rename to schemas/iso/currency/2015/numeric-test.json diff --git a/schemas/iso/currency/2025/numeric-unknown.json b/schemas/iso/currency/2015/numeric-unknown.json similarity index 100% rename from schemas/iso/currency/2025/numeric-unknown.json rename to schemas/iso/currency/2015/numeric-unknown.json diff --git a/test/iso/currency/2025/alpha-code.test.json b/test/iso/currency/2015/alpha-code.test.json similarity index 96% rename from test/iso/currency/2025/alpha-code.test.json rename to test/iso/currency/2015/alpha-code.test.json index 55d6e050..29d3822a 100644 --- a/test/iso/currency/2025/alpha-code.test.json +++ b/test/iso/currency/2015/alpha-code.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/alpha-code.json", + "target": "../../../../schemas/iso/currency/2015/alpha-code.json", "tests": [ { "description": "Invalid type - integer", diff --git a/test/iso/currency/2025/alpha-currency.test.json b/test/iso/currency/2015/alpha-currency.test.json similarity index 97% rename from test/iso/currency/2025/alpha-currency.test.json rename to test/iso/currency/2015/alpha-currency.test.json index bc9922ae..e77108a2 100644 --- a/test/iso/currency/2025/alpha-currency.test.json +++ b/test/iso/currency/2015/alpha-currency.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/alpha-currency.json", + "target": "../../../../schemas/iso/currency/2015/alpha-currency.json", "tests": [ { "description": "Invalid type - integer", diff --git a/test/iso/currency/2025/alpha-fund.test.json b/test/iso/currency/2015/alpha-fund.test.json similarity index 94% rename from test/iso/currency/2025/alpha-fund.test.json rename to test/iso/currency/2015/alpha-fund.test.json index 1084bc74..6d03b721 100644 --- a/test/iso/currency/2025/alpha-fund.test.json +++ b/test/iso/currency/2015/alpha-fund.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/alpha-fund.json", + "target": "../../../../schemas/iso/currency/2015/alpha-fund.json", "tests": [ { "description": "Invalid type - integer", diff --git a/test/iso/currency/2025/alpha-precious-metal.test.json b/test/iso/currency/2015/alpha-precious-metal.test.json similarity index 95% rename from test/iso/currency/2025/alpha-precious-metal.test.json rename to test/iso/currency/2015/alpha-precious-metal.test.json index 6e520408..08832f35 100644 --- a/test/iso/currency/2025/alpha-precious-metal.test.json +++ b/test/iso/currency/2015/alpha-precious-metal.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/alpha-precious-metal.json", + "target": "../../../../schemas/iso/currency/2015/alpha-precious-metal.json", "tests": [ { "description": "Invalid type - integer", diff --git a/test/iso/currency/2025/alpha-test.test.json b/test/iso/currency/2015/alpha-test.test.json similarity index 95% rename from test/iso/currency/2025/alpha-test.test.json rename to test/iso/currency/2015/alpha-test.test.json index dfd92315..e3f72c29 100644 --- a/test/iso/currency/2025/alpha-test.test.json +++ b/test/iso/currency/2015/alpha-test.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/alpha-test.json", + "target": "../../../../schemas/iso/currency/2015/alpha-test.json", "tests": [ { "description": "Invalid type - integer", diff --git a/test/iso/currency/2025/alpha-unknown.test.json b/test/iso/currency/2015/alpha-unknown.test.json similarity index 95% rename from test/iso/currency/2025/alpha-unknown.test.json rename to test/iso/currency/2015/alpha-unknown.test.json index db1a0096..95b3f0dc 100644 --- a/test/iso/currency/2025/alpha-unknown.test.json +++ b/test/iso/currency/2015/alpha-unknown.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/alpha-unknown.json", + "target": "../../../../schemas/iso/currency/2015/alpha-unknown.json", "tests": [ { "description": "Invalid type - integer", diff --git a/test/iso/currency/2025/historical/alpha-code.test.json b/test/iso/currency/2015/historical/alpha-code.test.json similarity index 95% rename from test/iso/currency/2025/historical/alpha-code.test.json rename to test/iso/currency/2015/historical/alpha-code.test.json index 606b41a9..8760fe3d 100644 --- a/test/iso/currency/2025/historical/alpha-code.test.json +++ b/test/iso/currency/2015/historical/alpha-code.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../../schemas/iso/currency/2025/historical/alpha-code.json", + "target": "../../../../../schemas/iso/currency/2015/historical/alpha-code.json", "tests": [ { "description": "Invalid type - integer", diff --git a/test/iso/currency/2025/historical/alpha-currency.test.json b/test/iso/currency/2015/historical/alpha-currency.test.json similarity index 96% rename from test/iso/currency/2025/historical/alpha-currency.test.json rename to test/iso/currency/2015/historical/alpha-currency.test.json index f0fc488c..3006c89f 100644 --- a/test/iso/currency/2025/historical/alpha-currency.test.json +++ b/test/iso/currency/2015/historical/alpha-currency.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../../schemas/iso/currency/2025/historical/alpha-currency.json", + "target": "../../../../../schemas/iso/currency/2015/historical/alpha-currency.json", "tests": [ { "description": "Invalid type - integer", diff --git a/test/iso/currency/2025/historical/numeric-code.test.json b/test/iso/currency/2015/historical/numeric-code.test.json similarity index 95% rename from test/iso/currency/2025/historical/numeric-code.test.json rename to test/iso/currency/2015/historical/numeric-code.test.json index 6dfcc6ba..772a1eab 100644 --- a/test/iso/currency/2025/historical/numeric-code.test.json +++ b/test/iso/currency/2015/historical/numeric-code.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../../schemas/iso/currency/2025/historical/numeric-code.json", + "target": "../../../../../schemas/iso/currency/2015/historical/numeric-code.json", "tests": [ { "description": "Invalid type - string", diff --git a/test/iso/currency/2025/historical/numeric-currency.test.json b/test/iso/currency/2015/historical/numeric-currency.test.json similarity index 95% rename from test/iso/currency/2025/historical/numeric-currency.test.json rename to test/iso/currency/2015/historical/numeric-currency.test.json index 6406c9c8..c648c831 100644 --- a/test/iso/currency/2025/historical/numeric-currency.test.json +++ b/test/iso/currency/2015/historical/numeric-currency.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../../schemas/iso/currency/2025/historical/numeric-currency.json", + "target": "../../../../../schemas/iso/currency/2015/historical/numeric-currency.json", "tests": [ { "description": "Invalid type - string", diff --git a/test/iso/currency/2025/numeric-code-additional.test.json b/test/iso/currency/2015/numeric-code-additional.test.json similarity index 95% rename from test/iso/currency/2025/numeric-code-additional.test.json rename to test/iso/currency/2015/numeric-code-additional.test.json index 0e923e57..370b22c5 100644 --- a/test/iso/currency/2025/numeric-code-additional.test.json +++ b/test/iso/currency/2015/numeric-code-additional.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/numeric-code-additional.json", + "target": "../../../../schemas/iso/currency/2015/numeric-code-additional.json", "tests": [ { "description": "Invalid type - string", diff --git a/test/iso/currency/2025/numeric-code.test.json b/test/iso/currency/2015/numeric-code.test.json similarity index 96% rename from test/iso/currency/2025/numeric-code.test.json rename to test/iso/currency/2015/numeric-code.test.json index 77c667b5..7d03c771 100644 --- a/test/iso/currency/2025/numeric-code.test.json +++ b/test/iso/currency/2015/numeric-code.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/numeric-code.json", + "target": "../../../../schemas/iso/currency/2015/numeric-code.json", "tests": [ { "description": "Invalid type - string", diff --git a/test/iso/currency/2025/numeric-currency.test.json b/test/iso/currency/2015/numeric-currency.test.json similarity index 97% rename from test/iso/currency/2025/numeric-currency.test.json rename to test/iso/currency/2015/numeric-currency.test.json index 8fc7baaa..93d54613 100644 --- a/test/iso/currency/2025/numeric-currency.test.json +++ b/test/iso/currency/2015/numeric-currency.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/numeric-currency.json", + "target": "../../../../schemas/iso/currency/2015/numeric-currency.json", "tests": [ { "description": "Invalid type - string", diff --git a/test/iso/currency/2025/numeric-fund.test.json b/test/iso/currency/2015/numeric-fund.test.json similarity index 94% rename from test/iso/currency/2025/numeric-fund.test.json rename to test/iso/currency/2015/numeric-fund.test.json index d8ac034d..af6cc7e9 100644 --- a/test/iso/currency/2025/numeric-fund.test.json +++ b/test/iso/currency/2015/numeric-fund.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/numeric-fund.json", + "target": "../../../../schemas/iso/currency/2015/numeric-fund.json", "tests": [ { "description": "Invalid type - string", diff --git a/test/iso/currency/2025/numeric-precious-metal.test.json b/test/iso/currency/2015/numeric-precious-metal.test.json similarity index 95% rename from test/iso/currency/2025/numeric-precious-metal.test.json rename to test/iso/currency/2015/numeric-precious-metal.test.json index 90fb5553..55ce09a2 100644 --- a/test/iso/currency/2025/numeric-precious-metal.test.json +++ b/test/iso/currency/2015/numeric-precious-metal.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/numeric-precious-metal.json", + "target": "../../../../schemas/iso/currency/2015/numeric-precious-metal.json", "tests": [ { "description": "Invalid type - string", diff --git a/test/iso/currency/2025/numeric-test.test.json b/test/iso/currency/2015/numeric-test.test.json similarity index 94% rename from test/iso/currency/2025/numeric-test.test.json rename to test/iso/currency/2015/numeric-test.test.json index 2dafd167..e6c13b0c 100644 --- a/test/iso/currency/2025/numeric-test.test.json +++ b/test/iso/currency/2015/numeric-test.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/numeric-test.json", + "target": "../../../../schemas/iso/currency/2015/numeric-test.json", "tests": [ { "description": "Invalid type - string", diff --git a/test/iso/currency/2025/numeric-unknown.test.json b/test/iso/currency/2015/numeric-unknown.test.json similarity index 94% rename from test/iso/currency/2025/numeric-unknown.test.json rename to test/iso/currency/2015/numeric-unknown.test.json index 024763ba..7ae372fb 100644 --- a/test/iso/currency/2025/numeric-unknown.test.json +++ b/test/iso/currency/2015/numeric-unknown.test.json @@ -1,6 +1,6 @@ { "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", - "target": "../../../../schemas/iso/currency/2025/numeric-unknown.json", + "target": "../../../../schemas/iso/currency/2015/numeric-unknown.json", "tests": [ { "description": "Invalid type - string",