Skip to content

Commit 2fc3a1c

Browse files
Added schema abc-supply-plan-11.0.0.json (SchemaStore#4965)
* Added schema abc-supply-plan-11.0.0.json - Added abc-supply-plan-11.0.0.json schema file - Updated catalog.json to include version 11.0.0 and set as default - Updated schema-validation.jsonc with validation configuration - Added positive test case for version 11.0.0 - Added negative test cases: - Missing schema property - Missing required tabs property - Extraneous property - Invalid fractional lot size - Invalid plan date format - Invalid strings as numbers Key changes in version 11.0.0: - Added new analytics item type "DEMAND_OR_CONSUMPTION_ALLOCATION" for demand/consumption allocation visualizations - Added "comparisonPlanID" property to metrics to support comparison between plans - Added "planId" property to DEMAND_OR_CONSUMPTION_ALLOCATION for specifying comparison plan - Added support for pie chart and time series visualizations in demand allocation analytics Testing: - node ./cli.js check * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5fccd92 commit 2fc3a1c

10 files changed

+2117
-2
lines changed

src/api/json/catalog.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
"name": "ABCSupplyPlan",
157157
"description": "ABCSupplyPlan representing all the state for performing inventory optimization and expiry analysis in ABC-Plan MasterPlanner",
158158
"fileMatch": ["abc-supply-plan-*.json"],
159-
"url": "https://www.schemastore.org/abc-supply-plan-10.1.0.json",
159+
"url": "https://www.schemastore.org/abc-supply-plan-11.0.0.json",
160160
"versions": {
161161
"1.0.0": "https://www.schemastore.org/abc-supply-plan-1.0.0.json",
162162
"2.0.0": "https://www.schemastore.org/abc-supply-plan-2.0.0.json",
@@ -168,7 +168,8 @@
168168
"8.0.0": "https://www.schemastore.org/abc-supply-plan-8.0.0.json",
169169
"9.0.0": "https://www.schemastore.org/abc-supply-plan-9.0.0.json",
170170
"10.0.0": "https://www.schemastore.org/abc-supply-plan-10.0.0.json",
171-
"10.1.0": "https://www.schemastore.org/abc-supply-plan-10.1.0.json"
171+
"10.1.0": "https://www.schemastore.org/abc-supply-plan-10.1.0.json",
172+
"11.0.0": "https://www.schemastore.org/abc-supply-plan-11.0.0.json"
172173
}
173174
},
174175
{
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-11.0.0.json",
3+
"abcMaterialsMap": {},
4+
"analytics": {
5+
"items": [],
6+
"layouts": [],
7+
"tabs": []
8+
},
9+
"planDate": "2020-03-01",
10+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
11+
"recipeMap": {},
12+
"this_is_an_invalid_property": {
13+
"this_is_an_invalid_object_property": "this_is_an_invalid_object_value"
14+
}
15+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-11.0.0.json",
3+
"abcMaterialsMap": {
4+
"1": {
5+
"abcMaterialName": "FDP",
6+
"actuals": {},
7+
"currency": "USD",
8+
"decimalPrecision": 0,
9+
"demand": {
10+
"2020-07-01": 100
11+
},
12+
"doExpiryCarryover": false,
13+
"expiryAdjustments": {},
14+
"firmOrders": [],
15+
"firmRelease": {},
16+
"firmingPeriod": 0,
17+
"inventory": {},
18+
"leadTime": 3,
19+
"lifetime": 10,
20+
"lotSizes": [
21+
{
22+
"endDate": null,
23+
"startDate": null,
24+
"timeDependentValue": 100.5
25+
}
26+
],
27+
"maximumInventories": [],
28+
"minimumInventories": [],
29+
"ordering": 1,
30+
"otherDemand": {},
31+
"otherDemandAnnotations": {},
32+
"plannedOrders": {},
33+
"plannedRelease": {},
34+
"productionMethod": "CumulativeLeadTime",
35+
"timeAggregateType": "Monthly",
36+
"x": 249,
37+
"y": 127
38+
}
39+
},
40+
"analytics": {
41+
"items": [],
42+
"layouts": [],
43+
"tabs": []
44+
},
45+
"planDate": "2020-03-01",
46+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
47+
"recipeMap": {}
48+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-11.0.0.json",
3+
"abcMaterialsMap": {},
4+
"analytics": {
5+
"items": [],
6+
"layouts": [],
7+
"tabs": []
8+
},
9+
"planDate": "March 1st, 2020",
10+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
11+
"recipeMap": {}
12+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-11.0.0.json",
3+
"abcMaterialsMap": {
4+
"1": {
5+
"abcMaterialName": "FDP",
6+
"actuals": {},
7+
"currency": "USD",
8+
"decimalPrecision": "zero",
9+
"demand": {
10+
"2020-07-01": "one hundred"
11+
},
12+
"doExpiryCarryover": false,
13+
"expiryAdjustments": {},
14+
"firmOrders": [],
15+
"firmRelease": {},
16+
"firmingPeriod": "0",
17+
"inventory": {},
18+
"leadTime": "three",
19+
"lifetime": 10,
20+
"lotSizes": [
21+
{
22+
"endDate": null,
23+
"startDate": null,
24+
"timeDependentValue": "2000"
25+
}
26+
],
27+
"maximumInventories": [],
28+
"minimumInventories": [],
29+
"ordering": 1,
30+
"otherDemand": {},
31+
"otherDemandAnnotations": {},
32+
"plannedOrders": {},
33+
"plannedRelease": {},
34+
"productionMethod": "CumulativeLeadTime",
35+
"timeAggregateType": "Monthly",
36+
"x": 249,
37+
"y": 127
38+
}
39+
},
40+
"analytics": {
41+
"items": [],
42+
"layouts": [],
43+
"tabs": []
44+
},
45+
"planDate": "2020-03-01",
46+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
47+
"recipeMap": {}
48+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"abcMaterialsMap": {},
3+
"analytics": {
4+
"items": [],
5+
"layouts": [],
6+
"tabs": []
7+
},
8+
"planDate": "2020-03-01",
9+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
10+
"recipeMap": {}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-11.0.0.json",
3+
"abcMaterialsMap": {},
4+
"analytics": {
5+
"items": [],
6+
"layouts": []
7+
},
8+
"planDate": "2020-03-01",
9+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
10+
"recipeMap": {}
11+
}

src/schema-validation.jsonc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,28 @@
609609
"abcArePlanningFrequencyChangesOnPlanningMonths"
610610
]
611611
},
612+
"abc-supply-plan-11.0.0.json": {
613+
"unknownFormat": ["abc-draft-js_RawDraftContentState"],
614+
"unknownKeywords": [
615+
"abcIsFirstDayOfMonth",
616+
"abcIsLastDayOfMonth",
617+
"abcIsAfter0001-01-01",
618+
"abcIsBefore9999-12-31",
619+
"abcDoMaterialIDsExist",
620+
"abcIsAcyclic",
621+
"abcAreAllocationMethodsHomogeneous",
622+
"abcIsValidColor",
623+
"abcNoDuplicateValuesForOrderingProperty",
624+
"abcHasNonOverlappingTimeDependentValues",
625+
"abcHasUninterruptedTimeDependentValues",
626+
"abcIsExpirationDateOnOrAfterManufactureDate",
627+
"abcIsReleaseDateOnOrAfterPlanDate",
628+
"abcIsReleaseDateOnOrAfterManufactureDate",
629+
"abcIsExpirationDateOnOrAfterReleaseDate",
630+
"abcDemandDetailsMatchDemandRows",
631+
"abcArePlanningFrequencyChangesOnPlanningMonths"
632+
]
633+
},
612634
"anywork-ac-1.0.json": {
613635
"externalSchema": ["base.json"]
614636
},

0 commit comments

Comments
 (0)