Skip to content

Commit d35ab4f

Browse files
mosofskyMichael Osofskyclaudepre-commit-ci[bot]
authored
Added schema abc-supply-plan-12.0.0.json (SchemaStore#5510)
* Added schema abc-supply-plan-12.0.0.json - Added abc-supply-plan-12.0.0.json schema file - Updated catalog.json to include version 12.0.0 and set as default - Updated schema-validation.jsonc with validation configuration - Added positive test case for version 12.0.0 - Copied negative test cases from version 11.4.0 with updated schema references Key changes in version 12.0.0: - Added expiryAdjustmentsAnnotation property to ABCMaterialState (AnnotationMap type, required) Testing: - ✅ Validated schema-specific: node ./cli.js check --schema-name=abc-supply-plan-12.0.0.json - ✅ Validated full test suite: node ./cli.js check (all 783 schemas pass) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Michael Osofsky <michael@abc-plan.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 38a5b15 commit d35ab4f

10 files changed

+2187
-2
lines changed

src/api/json/catalog.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
"name": "ABCSupplyPlan",
220220
"description": "ABCSupplyPlan representing all the state for performing inventory optimization and expiry analysis in ABC-Plan MasterPlanner",
221221
"fileMatch": ["abc-supply-plan-*.json"],
222-
"url": "https://www.schemastore.org/abc-supply-plan-11.4.0.json",
222+
"url": "https://www.schemastore.org/abc-supply-plan-12.0.0.json",
223223
"versions": {
224224
"1.0.0": "https://www.schemastore.org/abc-supply-plan-1.0.0.json",
225225
"2.0.0": "https://www.schemastore.org/abc-supply-plan-2.0.0.json",
@@ -236,7 +236,8 @@
236236
"11.1.0": "https://www.schemastore.org/abc-supply-plan-11.1.0.json",
237237
"11.2.0": "https://www.schemastore.org/abc-supply-plan-11.2.0.json",
238238
"11.3.0": "https://www.schemastore.org/abc-supply-plan-11.3.0.json",
239-
"11.4.0": "https://www.schemastore.org/abc-supply-plan-11.4.0.json"
239+
"11.4.0": "https://www.schemastore.org/abc-supply-plan-11.4.0.json",
240+
"12.0.0": "https://www.schemastore.org/abc-supply-plan-12.0.0.json"
240241
}
241242
},
242243
{
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-12.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-12.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-12.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-12.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-12.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
@@ -749,6 +749,28 @@
749749
"abcArePlanningFrequencyChangesOnPlanningMonths"
750750
]
751751
},
752+
"abc-supply-plan-12.0.0.json": {
753+
"unknownFormat": ["abc-draft-js_RawDraftContentState"],
754+
"unknownKeywords": [
755+
"abcIsFirstDayOfMonth",
756+
"abcIsLastDayOfMonth",
757+
"abcIsAfter0001-01-01",
758+
"abcIsBefore9999-12-31",
759+
"abcDoMaterialIDsExist",
760+
"abcIsAcyclic",
761+
"abcAreAllocationMethodsHomogeneous",
762+
"abcIsValidColor",
763+
"abcNoDuplicateValuesForOrderingProperty",
764+
"abcHasNonOverlappingTimeDependentValues",
765+
"abcHasUninterruptedTimeDependentValues",
766+
"abcIsExpirationDateOnOrAfterManufactureDate",
767+
"abcIsReleaseDateOnOrAfterPlanDate",
768+
"abcIsReleaseDateOnOrAfterManufactureDate",
769+
"abcIsExpirationDateOnOrAfterReleaseDate",
770+
"abcDemandDetailsMatchDemandRows",
771+
"abcArePlanningFrequencyChangesOnPlanningMonths"
772+
]
773+
},
752774
"anywork-ac-1.0.json": {
753775
"externalSchema": ["base.json"]
754776
},

0 commit comments

Comments
 (0)