Skip to content

Commit 24b0b7d

Browse files
bqth29Godelaine
andauthored
Json/schemas cleaning (#1517)
* update headers Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * better $id Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * MVC header Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * cured paths Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * rollback POM Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Co-authored-by: Godelaine <godelaine.demontmorillon@rte-france.com>
1 parent 7070f88 commit 24b0b7d

132 files changed

Lines changed: 679 additions & 679 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

data/crac/crac-io/crac-io-json/src/main/resources/schemas/action-type/action-type-v1.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema#",
3-
"$id": "https://www.powsybl.org?open-rao-crac-schema=action-type-v1.0.json",
3+
"$id": "resource:/schemas/action-type/action-type-v1.0.json",
44
"enum": [
55
"close",
66
"open"

data/crac/crac-io/crac-io-json/src/main/resources/schemas/angle-cnec/angle-cnec-v1.4.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema#",
3-
"$id": "https://www.powsybl.org?open-rao-crac-schema=angle-cnec-v1.4.json",
3+
"$id": "resource:/schemas/angle-cnec/angle-cnec-v1.4.json",
44
"type": "object",
55
"properties": {
66
"id": {
@@ -51,7 +51,7 @@
5151
"thresholds": {
5252
"type": "array",
5353
"items": {
54-
"$ref": "resource:/schemas/angle-threshold/angle-threshold-v1.4.json"
54+
"$ref": "../angle-threshold/angle-threshold-v1.4.json"
5555
},
5656
"minItems": 1
5757
}

data/crac/crac-io/crac-io-json/src/main/resources/schemas/angle-threshold/angle-threshold-v1.4.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema#",
3-
"$id": "https://www.powsybl.org?open-rao-crac-schema=angle-threshold-v1.4.json",
3+
"$id": "resource:/schemas/angle-threshold/angle-threshold-v1.4.json",
44
"type": "object",
55
"properties": {
66
"unit": {

data/crac/crac-io/crac-io-json/src/main/resources/schemas/contingency/contingency-v1.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema#",
3-
"$id": "https://www.powsybl.org?open-rao-crac-schema=contingency-v1.0.json",
3+
"$id": "resource:/schemas/contingency/contingency-v1.0.json",
44
"type": "object",
55
"properties": {
66
"id": {

data/crac/crac-io/crac-io-json/src/main/resources/schemas/counter-trade-range-action/counter-trade-range-action-v1.9.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema#",
3-
"$id": "https://www.powsybl.org?open-rao-crac-schema=counter-trade-range-action-v1.9.json",
3+
"$id": "resource:/schemas/counter-trade-range-action/counter-trade-range-action-v1.9.json",
44
"type": "object",
55
"properties": {
66
"id": {
@@ -28,10 +28,10 @@
2828
"type": "number"
2929
},
3030
"exportingCountry": {
31-
"$ref": "resource:/schemas/country/country-v1.3.json"
31+
"$ref": "../country/country-v1.3.json"
3232
},
3333
"importingCountry": {
34-
"$ref": "resource:/schemas/country/country-v1.3.json"
34+
"$ref": "../country/country-v1.3.json"
3535
},
3636
"initialSetpoint": {
3737
"type": "number"
@@ -54,37 +54,37 @@
5454
"onInstantUsageRules": {
5555
"type": "array",
5656
"items": {
57-
"$ref": "resource:/schemas/on-instant-usage-rule/on-instant-usage-rule-v1.6.json"
57+
"$ref": "../on-instant-usage-rule/on-instant-usage-rule-v1.6.json"
5858
}
5959
},
6060
"onContingencyStateUsageRules": {
6161
"type": "array",
6262
"items": {
63-
"$ref": "resource:/schemas/on-contingency-state-usage-rule/on-contingency-state-usage-rule-v1.6.json"
63+
"$ref": "../on-contingency-state-usage-rule/on-contingency-state-usage-rule-v1.6.json"
6464
}
6565
},
6666
"onFlowConstraintUsageRules": {
6767
"type": "array",
6868
"items": {
69-
"$ref": "resource:/schemas/on-flow-constraint-usage-rule/on-flow-constraint-usage-rule-v1.0.json"
69+
"$ref": "../on-flow-constraint-usage-rule/on-flow-constraint-usage-rule-v1.0.json"
7070
}
7171
},
7272
"onAngleConstraintUsageRules": {
7373
"type": "array",
7474
"items": {
75-
"$ref": "resource:/schemas/on-angle-constraint-usage-rule/on-angle-constraint-usage-rule-v1.4.json"
75+
"$ref": "../on-angle-constraint-usage-rule/on-angle-constraint-usage-rule-v1.4.json"
7676
}
7777
},
7878
"onVoltageConstraintUsageRules": {
7979
"type": "array",
8080
"items": {
81-
"$ref": "resource:/schemas/on-voltage-constraint-usage-rule/on-voltage-constraint-usage-rule-v1.7.json"
81+
"$ref": "../on-voltage-constraint-usage-rule/on-voltage-constraint-usage-rule-v1.7.json"
8282
}
8383
},
8484
"onFlowConstraintInCountryUsageRules": {
8585
"type": "array",
8686
"items": {
87-
"$ref": "resource:/schemas/on-flow-constraint-in-country-usage-rule/on-flow-constraint-in-country-usage-rule-v1.3.json"
87+
"$ref": "../on-flow-constraint-in-country-usage-rule/on-flow-constraint-in-country-usage-rule-v1.3.json"
8888
}
8989
}
9090
},

data/crac/crac-io/crac-io-json/src/main/resources/schemas/counter-trade-range-action/counter-trade-range-action-v2.0.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema#",
3-
"$id": "https://www.powsybl.org?open-rao-crac-schema=counter-trade-range-action-v2.0.json",
3+
"$id": "resource:/schemas/counter-trade-range-action/counter-trade-range-action-v2.0.json",
44
"type": "object",
55
"properties": {
66
"id": {
@@ -28,10 +28,10 @@
2828
"type": "number"
2929
},
3030
"exportingCountry": {
31-
"$ref": "resource:/schemas/country/country-v1.3.json"
31+
"$ref": "../country/country-v1.3.json"
3232
},
3333
"importingCountry": {
34-
"$ref": "resource:/schemas/country/country-v1.3.json"
34+
"$ref": "../country/country-v1.3.json"
3535
},
3636
"initialSetpoint": {
3737
"type": "number"
@@ -54,37 +54,37 @@
5454
"onInstantUsageRules": {
5555
"type": "array",
5656
"items": {
57-
"$ref": "resource:/schemas/on-instant-usage-rule/on-instant-usage-rule-v2.0.json"
57+
"$ref": "../on-instant-usage-rule/on-instant-usage-rule-v2.0.json"
5858
}
5959
},
6060
"onContingencyStateUsageRules": {
6161
"type": "array",
6262
"items": {
63-
"$ref": "resource:/schemas/on-contingency-state-usage-rule/on-contingency-state-usage-rule-v2.0.json"
63+
"$ref": "../on-contingency-state-usage-rule/on-contingency-state-usage-rule-v2.0.json"
6464
}
6565
},
6666
"onFlowConstraintUsageRules": {
6767
"type": "array",
6868
"items": {
69-
"$ref": "resource:/schemas/on-flow-constraint-usage-rule/on-flow-constraint-usage-rule-v2.0.json"
69+
"$ref": "../on-flow-constraint-usage-rule/on-flow-constraint-usage-rule-v2.0.json"
7070
}
7171
},
7272
"onAngleConstraintUsageRules": {
7373
"type": "array",
7474
"items": {
75-
"$ref": "resource:/schemas/on-angle-constraint-usage-rule/on-angle-constraint-usage-rule-v2.0.json"
75+
"$ref": "../on-angle-constraint-usage-rule/on-angle-constraint-usage-rule-v2.0.json"
7676
}
7777
},
7878
"onVoltageConstraintUsageRules": {
7979
"type": "array",
8080
"items": {
81-
"$ref": "resource:/schemas/on-voltage-constraint-usage-rule/on-voltage-constraint-usage-rule-v2.0.json"
81+
"$ref": "../on-voltage-constraint-usage-rule/on-voltage-constraint-usage-rule-v2.0.json"
8282
}
8383
},
8484
"onFlowConstraintInCountryUsageRules": {
8585
"type": "array",
8686
"items": {
87-
"$ref": "resource:/schemas/on-flow-constraint-in-country-usage-rule/on-flow-constraint-in-country-usage-rule-v2.0.json"
87+
"$ref": "../on-flow-constraint-in-country-usage-rule/on-flow-constraint-in-country-usage-rule-v2.0.json"
8888
}
8989
}
9090
},

data/crac/crac-io/crac-io-json/src/main/resources/schemas/counter-trade-range-action/counter-trade-range-action-v2.2.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema#",
3-
"$id": "https://www.powsybl.org?open-rao-crac-schema=counter-trade-range-action-v2.2.json",
3+
"$id": "resource:/schemas/counter-trade-range-action/counter-trade-range-action-v2.2.json",
44
"type": "object",
55
"properties": {
66
"id": {
@@ -28,10 +28,10 @@
2828
"type": "number"
2929
},
3030
"exportingCountry": {
31-
"$ref": "resource:/schemas/country/country-v1.3.json"
31+
"$ref": "../country/country-v1.3.json"
3232
},
3333
"importingCountry": {
34-
"$ref": "resource:/schemas/country/country-v1.3.json"
34+
"$ref": "../country/country-v1.3.json"
3535
},
3636
"initialSetpoint": {
3737
"type": "number"
@@ -54,37 +54,37 @@
5454
"onInstantUsageRules": {
5555
"type": "array",
5656
"items": {
57-
"$ref": "resource:/schemas/on-instant-usage-rule/on-instant-usage-rule-v2.0.json"
57+
"$ref": "../on-instant-usage-rule/on-instant-usage-rule-v2.0.json"
5858
}
5959
},
6060
"onContingencyStateUsageRules": {
6161
"type": "array",
6262
"items": {
63-
"$ref": "resource:/schemas/on-contingency-state-usage-rule/on-contingency-state-usage-rule-v2.0.json"
63+
"$ref": "../on-contingency-state-usage-rule/on-contingency-state-usage-rule-v2.0.json"
6464
}
6565
},
6666
"onFlowConstraintUsageRules": {
6767
"type": "array",
6868
"items": {
69-
"$ref": "resource:/schemas/on-flow-constraint-usage-rule/on-flow-constraint-usage-rule-v2.0.json"
69+
"$ref": "../on-flow-constraint-usage-rule/on-flow-constraint-usage-rule-v2.0.json"
7070
}
7171
},
7272
"onAngleConstraintUsageRules": {
7373
"type": "array",
7474
"items": {
75-
"$ref": "resource:/schemas/on-angle-constraint-usage-rule/on-angle-constraint-usage-rule-v2.0.json"
75+
"$ref": "../on-angle-constraint-usage-rule/on-angle-constraint-usage-rule-v2.0.json"
7676
}
7777
},
7878
"onVoltageConstraintUsageRules": {
7979
"type": "array",
8080
"items": {
81-
"$ref": "resource:/schemas/on-voltage-constraint-usage-rule/on-voltage-constraint-usage-rule-v2.0.json"
81+
"$ref": "../on-voltage-constraint-usage-rule/on-voltage-constraint-usage-rule-v2.0.json"
8282
}
8383
},
8484
"onFlowConstraintInCountryUsageRules": {
8585
"type": "array",
8686
"items": {
87-
"$ref": "resource:/schemas/on-flow-constraint-in-country-usage-rule/on-flow-constraint-in-country-usage-rule-v2.2.json"
87+
"$ref": "../on-flow-constraint-in-country-usage-rule/on-flow-constraint-in-country-usage-rule-v2.2.json"
8888
}
8989
}
9090
},

data/crac/crac-io/crac-io-json/src/main/resources/schemas/counter-trade-range-action/counter-trade-range-action-v2.4.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema#",
3-
"$id": "https://www.powsybl.org?open-rao-crac-schema=counter-trade-range-action-v2.4.json",
3+
"$id": "resource:/schemas/counter-trade-range-action/counter-trade-range-action-v2.4.json",
44
"type": "object",
55
"properties": {
66
"id": {
@@ -28,10 +28,10 @@
2828
"type": "number"
2929
},
3030
"exportingCountry": {
31-
"$ref": "resource:/schemas/country/country-v1.3.json"
31+
"$ref": "../country/country-v1.3.json"
3232
},
3333
"importingCountry": {
34-
"$ref": "resource:/schemas/country/country-v1.3.json"
34+
"$ref": "../country/country-v1.3.json"
3535
},
3636
"initialSetpoint": {
3737
"type": "number"
@@ -54,25 +54,25 @@
5454
"onInstantUsageRules": {
5555
"type": "array",
5656
"items": {
57-
"$ref": "resource:/schemas/on-instant-usage-rule/on-instant-usage-rule-v2.0.json"
57+
"$ref": "../on-instant-usage-rule/on-instant-usage-rule-v2.0.json"
5858
}
5959
},
6060
"onContingencyStateUsageRules": {
6161
"type": "array",
6262
"items": {
63-
"$ref": "resource:/schemas/on-contingency-state-usage-rule/on-contingency-state-usage-rule-v2.0.json"
63+
"$ref": "../on-contingency-state-usage-rule/on-contingency-state-usage-rule-v2.0.json"
6464
}
6565
},
6666
"onConstraintUsageRules": {
6767
"type": "array",
6868
"items": {
69-
"$ref": "resource:/schemas/on-constraint-usage-rule/on-constraint-usage-rule-v2.4.json"
69+
"$ref": "../on-constraint-usage-rule/on-constraint-usage-rule-v2.4.json"
7070
}
7171
},
7272
"onFlowConstraintInCountryUsageRules": {
7373
"type": "array",
7474
"items": {
75-
"$ref": "resource:/schemas/on-flow-constraint-in-country-usage-rule/on-flow-constraint-in-country-usage-rule-v2.2.json"
75+
"$ref": "../on-flow-constraint-in-country-usage-rule/on-flow-constraint-in-country-usage-rule-v2.2.json"
7676
}
7777
}
7878
},

data/crac/crac-io/crac-io-json/src/main/resources/schemas/counter-trade-range-action/counter-trade-range-action-v2.6.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema#",
3-
"$id": "https://www.powsybl.org?open-rao-crac-schema=counter-trade-range-action-v2.6.json",
3+
"$id": "resource:/schemas/counter-trade-range-action/counter-trade-range-action-v2.6.json",
44
"type": "object",
55
"properties": {
66
"id": {
@@ -20,7 +20,7 @@
2020
},
2121
"activationCost": "number",
2222
"variationCosts": {
23-
"$ref": "resource:/schemas/variation-costs/variation-costs-v2.6.json"
23+
"$ref": "../variation-costs/variation-costs-v2.6.json"
2424
},
2525
"groupId": {
2626
"type": [
@@ -32,10 +32,10 @@
3232
"type": "number"
3333
},
3434
"exportingCountry": {
35-
"$ref": "resource:/schemas/country/country-v1.3.json"
35+
"$ref": "../country/country-v1.3.json"
3636
},
3737
"importingCountry": {
38-
"$ref": "resource:/schemas/country/country-v1.3.json"
38+
"$ref": "../country/country-v1.3.json"
3939
},
4040
"initialSetpoint": {
4141
"type": "number"
@@ -58,25 +58,25 @@
5858
"onInstantUsageRules": {
5959
"type": "array",
6060
"items": {
61-
"$ref": "resource:/schemas/on-instant-usage-rule/on-instant-usage-rule-v2.0.json"
61+
"$ref": "../on-instant-usage-rule/on-instant-usage-rule-v2.0.json"
6262
}
6363
},
6464
"onContingencyStateUsageRules": {
6565
"type": "array",
6666
"items": {
67-
"$ref": "resource:/schemas/on-contingency-state-usage-rule/on-contingency-state-usage-rule-v2.0.json"
67+
"$ref": "../on-contingency-state-usage-rule/on-contingency-state-usage-rule-v2.0.json"
6868
}
6969
},
7070
"onConstraintUsageRules": {
7171
"type": "array",
7272
"items": {
73-
"$ref": "resource:/schemas/on-constraint-usage-rule/on-constraint-usage-rule-v2.4.json"
73+
"$ref": "../on-constraint-usage-rule/on-constraint-usage-rule-v2.4.json"
7474
}
7575
},
7676
"onFlowConstraintInCountryUsageRules": {
7777
"type": "array",
7878
"items": {
79-
"$ref": "resource:/schemas/on-flow-constraint-in-country-usage-rule/on-flow-constraint-in-country-usage-rule-v2.2.json"
79+
"$ref": "../on-flow-constraint-in-country-usage-rule/on-flow-constraint-in-country-usage-rule-v2.2.json"
8080
}
8181
}
8282
},

0 commit comments

Comments
 (0)