@pagefront/lint-commerce 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +33 -13
  2. package/dist/catalogue.js +4 -2
  3. package/dist/generated/release-manifest.d.ts +8 -0
  4. package/dist/generated/release-manifest.js +9 -0
  5. package/dist/generated/schema-ids.js +2 -0
  6. package/dist/generated/schemas.js +2450 -7
  7. package/dist/organization-catalogue.js +3 -2
  8. package/dist/rules/org-e-001.js +2 -0
  9. package/dist/rules/org-e-002.js +2 -0
  10. package/dist/rules/org-e-003.js +2 -0
  11. package/dist/rules/org-e-004.d.ts +11 -0
  12. package/dist/rules/org-e-004.js +18 -0
  13. package/dist/rules/org-w-001.js +2 -0
  14. package/dist/rules/org-w-002.js +2 -0
  15. package/dist/rules/org-w-003.js +2 -0
  16. package/dist/rules/org-w-004.js +2 -0
  17. package/dist/rules/org-w-005.js +2 -0
  18. package/dist/rules/org-w-006.js +2 -0
  19. package/dist/rules/pdp-e-001.js +2 -0
  20. package/dist/rules/pdp-e-002.js +2 -0
  21. package/dist/rules/pdp-e-003.js +2 -0
  22. package/dist/rules/pdp-e-004.js +2 -0
  23. package/dist/rules/pdp-e-005.js +2 -0
  24. package/dist/rules/pdp-e-006.js +2 -0
  25. package/dist/rules/pdp-e-007.js +2 -0
  26. package/dist/rules/pdp-e-008.js +2 -0
  27. package/dist/rules/pdp-e-009.js +2 -0
  28. package/dist/rules/pdp-e-010.js +2 -0
  29. package/dist/rules/pdp-e-011.js +2 -0
  30. package/dist/rules/pdp-e-012.js +2 -0
  31. package/dist/rules/pdp-e-013.js +2 -0
  32. package/dist/rules/pdp-e-014.js +2 -0
  33. package/dist/rules/pdp-e-015.js +2 -0
  34. package/dist/rules/pdp-e-016.js +2 -0
  35. package/dist/rules/pdp-e-017.d.ts +2 -0
  36. package/dist/rules/pdp-e-017.js +80 -0
  37. package/dist/rules/pdp-e-018.d.ts +11 -0
  38. package/dist/rules/pdp-e-018.js +18 -0
  39. package/dist/rules/pdp-i-001.js +2 -0
  40. package/dist/rules/pdp-w-001.js +2 -0
  41. package/dist/rules/pdp-w-002.js +2 -0
  42. package/dist/rules/pdp-w-003.js +2 -0
  43. package/dist/rules/pdp-w-004.js +2 -0
  44. package/dist/rules/pdp-w-005.js +2 -0
  45. package/dist/rules/pdp-w-006.js +2 -0
  46. package/dist/rules/pdp-w-007.js +2 -0
  47. package/dist/rules/pdp-w-008.js +2 -0
  48. package/dist/rules/pdp-w-009.js +2 -0
  49. package/dist/rules/pdp-w-010.js +2 -0
  50. package/dist/rules/pdp-w-011.js +2 -0
  51. package/dist/rules/pdp-w-012.js +2 -0
  52. package/dist/rules/pdp-w-013.js +2 -0
  53. package/dist/rules/pdp-w-014.js +2 -0
  54. package/dist/rules/pdp-w-015.js +2 -0
  55. package/dist/rules/pdp-w-016.js +2 -0
  56. package/dist/rules/pdp-w-017.js +2 -0
  57. package/dist/rules/pdp-w-018.js +2 -0
  58. package/dist/rules/pdp-w-019.js +2 -0
  59. package/dist/rules/pdp-w-020.js +2 -0
  60. package/dist/rules/pdp-w-021.js +2 -0
  61. package/dist/rules/pdp-w-022.js +2 -0
  62. package/dist/rules/pdp-w-023.js +2 -0
  63. package/dist/rules/pdp-w-024.js +2 -0
  64. package/dist/rules/pdp-w-025.js +2 -0
  65. package/dist/rules/pdp-w-026.js +2 -0
  66. package/dist/rules/pdp-w-027.js +2 -0
  67. package/dist/rules/pdp-w-028.js +2 -0
  68. package/dist/rules/pdp-w-029.js +2 -0
  69. package/dist/rules/pdp-w-030.js +2 -0
  70. package/dist/rules/pdp-w-031.js +2 -0
  71. package/dist/rules/pdp-w-032.js +2 -0
  72. package/dist/rules/pdp-w-033.js +2 -0
  73. package/dist/rules/pdp-w-034.js +2 -0
  74. package/dist/rules/pdp-w-035.js +2 -0
  75. package/dist/rules/pdp-w-036.js +2 -0
  76. package/dist/rules/pdp-w-037.js +2 -0
  77. package/dist/rules/pdp-w-038.js +2 -0
  78. package/dist/rules/pdp-w-039.js +2 -0
  79. package/dist/rules/release-schema.d.ts +18 -7
  80. package/dist/rules/release-schema.js +55 -15
  81. package/dist/schema-registry.d.ts +27 -14
  82. package/dist/schema-registry.js +29 -12
  83. package/dist/schema-validators.js +12 -4
  84. package/dist/validate-and-lint.d.ts +13 -9
  85. package/dist/validate-and-lint.js +23 -10
  86. package/dist/version.d.ts +1 -1
  87. package/dist/version.js +1 -1
  88. package/package.json +2 -2
@@ -434,14 +434,15 @@ export const SCHEMAS = {
434
434
  }
435
435
  }
436
436
  },
437
- "https://themachineweb.org/pagefront/spec/commerce/organization/v0.9.json": {
437
+ "https://themachineweb.org/pagefront/spec/commerce/organization/v0.4.0.json": {
438
438
  "$schema": "https://json-schema.org/draft/2020-12/schema",
439
- "$id": "https://themachineweb.org/pagefront/spec/commerce/organization/v0.9.json",
440
- "title": "Pagefront Commerce Organization Sheet v0.9",
441
- "description": "Formal schema for the Pagefront Commerce Organization Sheet — the sheet describing the entity behind products (brand owner, manufacturer, seller), introduced with commerce format 0.9 alongside the reference-capable legalEntity and the seller-sheet return/shipping model. The data block roots on Schema.org Organization (recognized subtypes permitted; @type is not constrained to a single value). pagefront:commerceRole is the required role discriminator, an array of one or more values from the closed enum brand_owner / manufacturer / seller. pagefront:fulfillmentTerms carries the store-wide shipping defaults as an array of Schema.org-native OfferShippingDetails objects; only the attachment shell is validated, the payload is Schema.org content. pagefront:socialAccount carries the organization's official social accounts (platform / url / handle; publisher-stated only), distinct from sameAs, which carries identity authority records only. pagefront:authorizedResellers carries the brand's authorization claim over its distribution — a pagefront:AuthorizedResellers object with an optional exhaustive flag and a reseller array whose entries name an Organization either as a reference stub (@id) or inline (name plus url and/or address), with optional Schema.org-native areaServed; valid only where commerceRole includes brand_owner (linter ORG-W-006). There is no GTIN-equivalent identifier requirement: identity is @id + name. Validates the envelope and pagefront-namespaced extensions strictly; Schema.org-typed blocks permit additional unspecified properties.",
439
+ "$id": "https://themachineweb.org/pagefront/spec/commerce/organization/v0.4.0.json",
440
+ "title": "Pagefront Commerce Organization Sheet 0.4.0",
441
+ "description": "Sheet spec version 0.4.0, a member of commerce release 0.4.0. Since 0.4.0 the envelope requires $schema. The envelope carries release in place of format_version, and $schema, which is required, names this sheet-spec version; a sheet carrying format_version belongs to the legacy draft line and validates against the legacy schema at .../organization/v0.9.json, which is otherwise identical. Formal schema for the Pagefront Commerce Organization Sheet — the sheet describing the entity behind products (brand owner, manufacturer, seller), introduced with commerce format 0.9 alongside the reference-capable legalEntity and the seller-sheet return/shipping model. The data block roots on Schema.org Organization (recognized subtypes permitted; @type is not constrained to a single value). pagefront:commerceRole is the required role discriminator, an array of one or more values from the closed enum brand_owner / manufacturer / seller. pagefront:fulfillmentTerms carries the store-wide shipping defaults as an array of Schema.org-native OfferShippingDetails objects; only the attachment shell is validated, the payload is Schema.org content. pagefront:socialAccount carries the organization's official social accounts (platform / url / handle; publisher-stated only), distinct from sameAs, which carries identity authority records only. pagefront:authorizedResellers carries the brand's authorization claim over its distribution — a pagefront:AuthorizedResellers object with an optional exhaustive flag and a reseller array whose entries name an Organization either as a reference stub (@id) or inline (name plus url and/or address), with optional Schema.org-native areaServed; valid only where commerceRole includes brand_owner (linter ORG-W-006). There is no GTIN-equivalent identifier requirement: identity is @id + name. Validates the envelope and pagefront-namespaced extensions strictly; Schema.org-typed blocks permit additional unspecified properties.",
442
442
  "type": "object",
443
443
  "required": [
444
- "format_version",
444
+ "$schema",
445
+ "release",
445
446
  "schema_org_version",
446
447
  "canonical_url",
447
448
  "sheet_url",
@@ -453,8 +454,9 @@ export const SCHEMAS = {
453
454
  "type": "string",
454
455
  "format": "uri"
455
456
  },
456
- "format_version": {
457
- "const": "0.9"
457
+ "release": {
458
+ "type": "string",
459
+ "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$"
458
460
  },
459
461
  "schema_org_version": {
460
462
  "type": "string",
@@ -867,6 +869,2447 @@ export const SCHEMAS = {
867
869
  }
868
870
  }
869
871
  },
872
+ "https://themachineweb.org/pagefront/spec/commerce/organization/v0.9.json": {
873
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
874
+ "$id": "https://themachineweb.org/pagefront/spec/commerce/organization/v0.9.json",
875
+ "title": "Pagefront Commerce Organization Sheet v0.9",
876
+ "description": "Formal schema for the Pagefront Commerce Organization Sheet — the sheet describing the entity behind products (brand owner, manufacturer, seller), introduced with commerce format 0.9 alongside the reference-capable legalEntity and the seller-sheet return/shipping model. The data block roots on Schema.org Organization (recognized subtypes permitted; @type is not constrained to a single value). pagefront:commerceRole is the required role discriminator, an array of one or more values from the closed enum brand_owner / manufacturer / seller. pagefront:fulfillmentTerms carries the store-wide shipping defaults as an array of Schema.org-native OfferShippingDetails objects; only the attachment shell is validated, the payload is Schema.org content. pagefront:socialAccount carries the organization's official social accounts (platform / url / handle; publisher-stated only), distinct from sameAs, which carries identity authority records only. pagefront:authorizedResellers carries the brand's authorization claim over its distribution — a pagefront:AuthorizedResellers object with an optional exhaustive flag and a reseller array whose entries name an Organization either as a reference stub (@id) or inline (name plus url and/or address), with optional Schema.org-native areaServed; valid only where commerceRole includes brand_owner (linter ORG-W-006). There is no GTIN-equivalent identifier requirement: identity is @id + name. Validates the envelope and pagefront-namespaced extensions strictly; Schema.org-typed blocks permit additional unspecified properties.",
877
+ "type": "object",
878
+ "required": [
879
+ "format_version",
880
+ "schema_org_version",
881
+ "canonical_url",
882
+ "sheet_url",
883
+ "generated_at",
884
+ "data"
885
+ ],
886
+ "properties": {
887
+ "$schema": {
888
+ "type": "string",
889
+ "format": "uri"
890
+ },
891
+ "format_version": {
892
+ "const": "0.9"
893
+ },
894
+ "schema_org_version": {
895
+ "type": "string",
896
+ "pattern": "^\\d+(\\.\\d+)?$"
897
+ },
898
+ "canonical_url": {
899
+ "type": "string",
900
+ "format": "uri"
901
+ },
902
+ "sheet_url": {
903
+ "type": "string",
904
+ "format": "uri"
905
+ },
906
+ "generated_at": {
907
+ "type": "string",
908
+ "format": "date-time"
909
+ },
910
+ "expires_at": {
911
+ "type": "string",
912
+ "format": "date-time"
913
+ },
914
+ "data": {
915
+ "$ref": "#/$defs/dataBlock"
916
+ }
917
+ },
918
+ "additionalProperties": false,
919
+ "$defs": {
920
+ "dataBlock": {
921
+ "type": "object",
922
+ "required": [
923
+ "@context",
924
+ "@type",
925
+ "@id",
926
+ "name",
927
+ "inLanguage",
928
+ "pagefront:commerceRole"
929
+ ],
930
+ "properties": {
931
+ "@context": {
932
+ "oneOf": [
933
+ {
934
+ "const": "https://schema.org"
935
+ },
936
+ {
937
+ "type": "array",
938
+ "items": {
939
+ "oneOf": [
940
+ {
941
+ "type": "string",
942
+ "format": "uri"
943
+ },
944
+ {
945
+ "type": "object"
946
+ }
947
+ ]
948
+ },
949
+ "minItems": 1
950
+ }
951
+ ]
952
+ },
953
+ "@type": {
954
+ "type": "string"
955
+ },
956
+ "@id": {
957
+ "type": "string",
958
+ "format": "uri"
959
+ },
960
+ "name": {
961
+ "type": "string",
962
+ "minLength": 1
963
+ },
964
+ "legalName": {
965
+ "type": "string"
966
+ },
967
+ "inLanguage": {
968
+ "type": "string"
969
+ },
970
+ "url": {
971
+ "type": "string",
972
+ "format": "uri"
973
+ },
974
+ "description": {
975
+ "type": "string"
976
+ },
977
+ "slogan": {
978
+ "type": "string"
979
+ },
980
+ "logo": {
981
+ "oneOf": [
982
+ {
983
+ "type": "string",
984
+ "format": "uri"
985
+ },
986
+ {
987
+ "type": "object"
988
+ }
989
+ ]
990
+ },
991
+ "iso6523Code": {
992
+ "type": "string"
993
+ },
994
+ "identifier": {
995
+ "oneOf": [
996
+ {
997
+ "type": "string"
998
+ },
999
+ {
1000
+ "type": "object"
1001
+ },
1002
+ {
1003
+ "type": "array",
1004
+ "items": {
1005
+ "oneOf": [
1006
+ {
1007
+ "type": "string"
1008
+ },
1009
+ {
1010
+ "type": "object"
1011
+ }
1012
+ ]
1013
+ }
1014
+ }
1015
+ ]
1016
+ },
1017
+ "sameAs": {
1018
+ "oneOf": [
1019
+ {
1020
+ "type": "string",
1021
+ "format": "uri"
1022
+ },
1023
+ {
1024
+ "type": "array",
1025
+ "items": {
1026
+ "type": "string",
1027
+ "format": "uri"
1028
+ }
1029
+ }
1030
+ ]
1031
+ },
1032
+ "email": {
1033
+ "type": "string",
1034
+ "format": "email"
1035
+ },
1036
+ "address": {
1037
+ "type": "object"
1038
+ },
1039
+ "contactPoint": {
1040
+ "oneOf": [
1041
+ {
1042
+ "type": "object"
1043
+ },
1044
+ {
1045
+ "type": "array",
1046
+ "items": {
1047
+ "type": "object"
1048
+ }
1049
+ }
1050
+ ]
1051
+ },
1052
+ "foundingDate": {
1053
+ "type": "string"
1054
+ },
1055
+ "numberOfEmployees": {
1056
+ "type": "object"
1057
+ },
1058
+ "parentOrganization": {
1059
+ "type": "object"
1060
+ },
1061
+ "subOrganization": {
1062
+ "oneOf": [
1063
+ {
1064
+ "type": "object"
1065
+ },
1066
+ {
1067
+ "type": "array",
1068
+ "items": {
1069
+ "type": "object"
1070
+ }
1071
+ }
1072
+ ]
1073
+ },
1074
+ "location": {
1075
+ "oneOf": [
1076
+ {
1077
+ "type": "object"
1078
+ },
1079
+ {
1080
+ "type": "array",
1081
+ "items": {
1082
+ "type": "object"
1083
+ }
1084
+ }
1085
+ ]
1086
+ },
1087
+ "brand": {
1088
+ "type": "object"
1089
+ },
1090
+ "aggregateRating": {
1091
+ "type": "object"
1092
+ },
1093
+ "hasCertification": {
1094
+ "type": "array",
1095
+ "items": {
1096
+ "$ref": "#/$defs/certification"
1097
+ }
1098
+ },
1099
+ "hasMerchantReturnPolicy": {
1100
+ "type": "object"
1101
+ },
1102
+ "paymentAccepted": {
1103
+ "oneOf": [
1104
+ {
1105
+ "type": "string"
1106
+ },
1107
+ {
1108
+ "type": "array",
1109
+ "items": {
1110
+ "type": "string"
1111
+ }
1112
+ }
1113
+ ]
1114
+ },
1115
+ "pagefront:commerceRole": {
1116
+ "type": "array",
1117
+ "minItems": 1,
1118
+ "items": {
1119
+ "type": "string",
1120
+ "enum": [
1121
+ "brand_owner",
1122
+ "manufacturer",
1123
+ "seller"
1124
+ ]
1125
+ }
1126
+ },
1127
+ "pagefront:fulfillmentTerms": {
1128
+ "type": "array",
1129
+ "items": {
1130
+ "type": "object",
1131
+ "required": [
1132
+ "@type"
1133
+ ],
1134
+ "properties": {
1135
+ "@type": {
1136
+ "const": "OfferShippingDetails"
1137
+ }
1138
+ },
1139
+ "additionalProperties": true
1140
+ }
1141
+ },
1142
+ "pagefront:socialAccount": {
1143
+ "type": "array",
1144
+ "items": {
1145
+ "type": "object",
1146
+ "required": [
1147
+ "platform",
1148
+ "url"
1149
+ ],
1150
+ "properties": {
1151
+ "@type": {
1152
+ "const": "pagefront:SocialAccount"
1153
+ },
1154
+ "platform": {
1155
+ "type": "string",
1156
+ "minLength": 1
1157
+ },
1158
+ "url": {
1159
+ "type": "string",
1160
+ "format": "uri"
1161
+ },
1162
+ "handle": {
1163
+ "type": "string",
1164
+ "minLength": 1
1165
+ }
1166
+ },
1167
+ "additionalProperties": true
1168
+ }
1169
+ },
1170
+ "pagefront:authorizedResellers": {
1171
+ "type": "object",
1172
+ "required": [
1173
+ "reseller"
1174
+ ],
1175
+ "properties": {
1176
+ "@type": {
1177
+ "const": "pagefront:AuthorizedResellers"
1178
+ },
1179
+ "exhaustive": {
1180
+ "type": "boolean"
1181
+ },
1182
+ "reseller": {
1183
+ "type": "array",
1184
+ "minItems": 1,
1185
+ "items": {
1186
+ "type": "object",
1187
+ "required": [
1188
+ "organization"
1189
+ ],
1190
+ "properties": {
1191
+ "organization": {
1192
+ "type": "object",
1193
+ "properties": {
1194
+ "@type": {
1195
+ "type": "string"
1196
+ },
1197
+ "@id": {
1198
+ "type": "string",
1199
+ "format": "uri"
1200
+ },
1201
+ "name": {
1202
+ "type": "string",
1203
+ "minLength": 1
1204
+ },
1205
+ "url": {
1206
+ "type": "string",
1207
+ "format": "uri"
1208
+ },
1209
+ "address": {
1210
+ "type": "object"
1211
+ }
1212
+ },
1213
+ "anyOf": [
1214
+ {
1215
+ "required": [
1216
+ "@id"
1217
+ ]
1218
+ },
1219
+ {
1220
+ "required": [
1221
+ "name",
1222
+ "url"
1223
+ ]
1224
+ },
1225
+ {
1226
+ "required": [
1227
+ "name",
1228
+ "address"
1229
+ ]
1230
+ }
1231
+ ],
1232
+ "additionalProperties": true
1233
+ },
1234
+ "areaServed": {
1235
+ "oneOf": [
1236
+ {
1237
+ "type": "object"
1238
+ },
1239
+ {
1240
+ "type": "array",
1241
+ "minItems": 1,
1242
+ "items": {
1243
+ "type": "object"
1244
+ }
1245
+ }
1246
+ ]
1247
+ }
1248
+ },
1249
+ "additionalProperties": false
1250
+ }
1251
+ }
1252
+ },
1253
+ "additionalProperties": false
1254
+ },
1255
+ "pagefront:availableLanguages": {
1256
+ "type": "array",
1257
+ "items": {
1258
+ "type": "object",
1259
+ "required": [
1260
+ "lang",
1261
+ "url"
1262
+ ],
1263
+ "properties": {
1264
+ "lang": {
1265
+ "type": "string"
1266
+ },
1267
+ "url": {
1268
+ "type": "string",
1269
+ "format": "uri"
1270
+ }
1271
+ },
1272
+ "additionalProperties": false
1273
+ }
1274
+ }
1275
+ },
1276
+ "additionalProperties": true
1277
+ },
1278
+ "certification": {
1279
+ "type": "object",
1280
+ "required": [
1281
+ "@type",
1282
+ "name"
1283
+ ],
1284
+ "properties": {
1285
+ "@type": {
1286
+ "const": "Certification"
1287
+ },
1288
+ "name": {
1289
+ "type": "string"
1290
+ },
1291
+ "issuedBy": {
1292
+ "type": "object"
1293
+ },
1294
+ "about": {
1295
+ "type": "string"
1296
+ },
1297
+ "additionalProperty": {
1298
+ "type": "array"
1299
+ }
1300
+ },
1301
+ "additionalProperties": true
1302
+ }
1303
+ }
1304
+ },
1305
+ "https://themachineweb.org/pagefront/spec/commerce/product/v0.10.0.json": {
1306
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1307
+ "$id": "https://themachineweb.org/pagefront/spec/commerce/product/v0.10.0.json",
1308
+ "title": "Pagefront Product Sheet 0.10.0",
1309
+ "description": "Formal schema for the Pagefront Product Sheet, sheet spec version 0.10.0, a member of commerce release 0.4.0. Since 0.10.0 the envelope requires $schema. The envelope carries release in place of format_version: release names the commerce release the sheet is written against, and $schema, which is required, names this sheet-spec version. A sheet carrying format_version belongs to the legacy draft line and validates against the legacy schema at .../product/v0.9.json, which is otherwise identical. History, in legacy format versions: revision of 2026-10-01 (breaking, within v0.9): configurator pricing moves from pagefront:configurator to the offer. The configurator loses basePrice, basePriceCurrency and priceFormula, its options lose priceModifier and currency, and it gains an optional @id and an exclusions[] array; configurator dimensions gain affectsPrice, inputType (select or text, for free-text dimensions) and maxLength; Offer and AggregateOffer accept pagefront:configuratorPricing, which names the configurator it prices and carries baseConfiguration, basePrice, modifiers, optional adjustments[] and a pricing completeness flag; every amount field (Offer price, AggregateOffer lowPrice and highPrice, variant price hints, promotion discountAmount, and the pricing block's basePrice, modifiers and adjustment amounts) references a shared definition, a JSON number or a plain decimal string: nonNegativeAmount for prices, bounds, base prices, price hints and discount amounts, and the signed amount for modifiers and adjustment amounts. v0.9 sheets that carried prices inside the configurator no longer validate. v0.9 was otherwise an additive release on top of v0.8: the legalEntity entry's organization now also validates in reference-stub form (@type + @id, no name) so entries can reference a Commerce Organization Sheet; the inline form and all other constraints are unchanged, and v0.8 sheets remain valid once their format_version is updated. v0.8 is an additive release on top of v0.7: it adds a pagefront:featureGroup[] array for grouped, ordered technical specifications (groups of Schema.org PropertyValue entries, with an optional pagefront:presentationValue display variant per entry), a pagefront:productHighlights[] array of ordered publisher-authored selling-point strings, and a pagefront:legalEntity[] array for role-typed legal entities behind a product (closed role enum: brand_owner, licensee, authorized_representative, importer, manufacturer — EU GPSR responsible persons and similar). gtin and gtin13 now accept a string or an array of strings (regional packaging, re-releases); category now accepts the display string, a Schema.org CategoryCode object, or a mixed array of both. The pagefront:Document role enum gains repairability_index, recall_notice, and declaration_of_conformity; the pagefront:RelatedProduct relationship enum gains service. v0.8 also adds two GPSR-driven safety fields: a pagefront:safetyWarning[] array for typed, language-scoped safety warnings (text required; optional pictogram URL and open-vocabulary hazardCategory) and a pagefront:safetyNotice[] array for structured recall/safety notices (closed noticeType enum: recall, warning; closed remedy enum: repair, replacement, refund). v0.7 sheets remain valid under v0.8 once their format_version is updated. Validates the envelope and pagefront-namespaced extensions strictly; Schema.org-typed blocks permit additional unspecified properties.",
1310
+ "type": "object",
1311
+ "required": [
1312
+ "$schema",
1313
+ "release",
1314
+ "schema_org_version",
1315
+ "canonical_url",
1316
+ "sheet_url",
1317
+ "generated_at",
1318
+ "data"
1319
+ ],
1320
+ "properties": {
1321
+ "$schema": {
1322
+ "type": "string",
1323
+ "format": "uri"
1324
+ },
1325
+ "release": {
1326
+ "type": "string",
1327
+ "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$"
1328
+ },
1329
+ "schema_org_version": {
1330
+ "type": "string",
1331
+ "pattern": "^\\d+(\\.\\d+)?$"
1332
+ },
1333
+ "canonical_url": {
1334
+ "type": "string",
1335
+ "format": "uri"
1336
+ },
1337
+ "sheet_url": {
1338
+ "type": "string",
1339
+ "format": "uri"
1340
+ },
1341
+ "generated_at": {
1342
+ "type": "string",
1343
+ "format": "date-time"
1344
+ },
1345
+ "expires_at": {
1346
+ "type": "string",
1347
+ "format": "date-time"
1348
+ },
1349
+ "data": {
1350
+ "$ref": "#/$defs/dataBlock"
1351
+ }
1352
+ },
1353
+ "additionalProperties": false,
1354
+ "$defs": {
1355
+ "dataBlock": {
1356
+ "type": "object",
1357
+ "required": [
1358
+ "@context",
1359
+ "@type",
1360
+ "@id",
1361
+ "name",
1362
+ "inLanguage"
1363
+ ],
1364
+ "properties": {
1365
+ "@context": {
1366
+ "oneOf": [
1367
+ {
1368
+ "const": "https://schema.org"
1369
+ },
1370
+ {
1371
+ "type": "array",
1372
+ "items": {
1373
+ "oneOf": [
1374
+ {
1375
+ "type": "string",
1376
+ "format": "uri"
1377
+ },
1378
+ {
1379
+ "type": "object"
1380
+ }
1381
+ ]
1382
+ },
1383
+ "minItems": 1
1384
+ }
1385
+ ]
1386
+ },
1387
+ "@type": {
1388
+ "type": "string"
1389
+ },
1390
+ "@id": {
1391
+ "type": "string",
1392
+ "format": "uri"
1393
+ },
1394
+ "url": {
1395
+ "type": "string",
1396
+ "format": "uri"
1397
+ },
1398
+ "name": {
1399
+ "type": "string",
1400
+ "minLength": 1
1401
+ },
1402
+ "inLanguage": {
1403
+ "type": "string"
1404
+ },
1405
+ "sku": {
1406
+ "type": "string"
1407
+ },
1408
+ "gtin13": {
1409
+ "$ref": "#/$defs/gtin13Value"
1410
+ },
1411
+ "gtin": {
1412
+ "$ref": "#/$defs/gtinValue"
1413
+ },
1414
+ "mpn": {
1415
+ "type": "string"
1416
+ },
1417
+ "productID": {
1418
+ "type": "string"
1419
+ },
1420
+ "productGroupID": {
1421
+ "type": "string"
1422
+ },
1423
+ "variesBy": {
1424
+ "type": "array",
1425
+ "items": {
1426
+ "type": "string"
1427
+ }
1428
+ },
1429
+ "hasVariant": {
1430
+ "type": "array",
1431
+ "items": {
1432
+ "$ref": "#/$defs/variantEntry"
1433
+ }
1434
+ },
1435
+ "brand": {
1436
+ "type": "object",
1437
+ "properties": {
1438
+ "pagefront:sheetUrl": {
1439
+ "type": "string",
1440
+ "format": "uri"
1441
+ }
1442
+ }
1443
+ },
1444
+ "description": {
1445
+ "type": "string"
1446
+ },
1447
+ "category": {
1448
+ "oneOf": [
1449
+ {
1450
+ "type": "string"
1451
+ },
1452
+ {
1453
+ "$ref": "#/$defs/categoryCode"
1454
+ },
1455
+ {
1456
+ "type": "array",
1457
+ "items": {
1458
+ "oneOf": [
1459
+ {
1460
+ "type": "string"
1461
+ },
1462
+ {
1463
+ "$ref": "#/$defs/categoryCode"
1464
+ }
1465
+ ]
1466
+ },
1467
+ "minItems": 1
1468
+ }
1469
+ ]
1470
+ },
1471
+ "color": {
1472
+ "type": "string"
1473
+ },
1474
+ "material": {
1475
+ "type": "string"
1476
+ },
1477
+ "weight": {
1478
+ "type": "object"
1479
+ },
1480
+ "height": {
1481
+ "type": "object"
1482
+ },
1483
+ "width": {
1484
+ "type": "object"
1485
+ },
1486
+ "depth": {
1487
+ "type": "object"
1488
+ },
1489
+ "countryOfOrigin": {
1490
+ "type": "string",
1491
+ "pattern": "^[A-Z]{2}$"
1492
+ },
1493
+ "image": {
1494
+ "type": "array",
1495
+ "items": {
1496
+ "$ref": "#/$defs/imageObject"
1497
+ }
1498
+ },
1499
+ "video": {
1500
+ "type": "array",
1501
+ "items": {
1502
+ "$ref": "#/$defs/videoObject"
1503
+ }
1504
+ },
1505
+ "additionalProperty": {
1506
+ "type": "array"
1507
+ },
1508
+ "hasCertification": {
1509
+ "type": "array",
1510
+ "items": {
1511
+ "$ref": "#/$defs/certification"
1512
+ }
1513
+ },
1514
+ "manufacturer": {
1515
+ "type": "object"
1516
+ },
1517
+ "offers": {
1518
+ "type": "array",
1519
+ "items": {
1520
+ "oneOf": [
1521
+ {
1522
+ "$ref": "#/$defs/offer"
1523
+ },
1524
+ {
1525
+ "$ref": "#/$defs/aggregateOffer"
1526
+ }
1527
+ ]
1528
+ },
1529
+ "minItems": 1
1530
+ },
1531
+ "aggregateRating": {
1532
+ "type": "object"
1533
+ },
1534
+ "review": {
1535
+ "type": "array"
1536
+ },
1537
+ "isVariantOf": {
1538
+ "type": "object"
1539
+ },
1540
+ "isRelatedTo": {
1541
+ "type": "array"
1542
+ },
1543
+ "isSimilarTo": {
1544
+ "type": "array"
1545
+ },
1546
+ "isPartOf": {
1547
+ "oneOf": [
1548
+ {
1549
+ "type": "object"
1550
+ },
1551
+ {
1552
+ "type": "array"
1553
+ }
1554
+ ]
1555
+ },
1556
+ "hasPart": {
1557
+ "oneOf": [
1558
+ {
1559
+ "type": "object"
1560
+ },
1561
+ {
1562
+ "type": "array"
1563
+ }
1564
+ ]
1565
+ },
1566
+ "question": {
1567
+ "type": "array",
1568
+ "items": {
1569
+ "$ref": "#/$defs/questionObject"
1570
+ }
1571
+ },
1572
+ "pagefront:document": {
1573
+ "type": "array",
1574
+ "items": {
1575
+ "$ref": "#/$defs/documentObject"
1576
+ }
1577
+ },
1578
+ "pagefront:relatedProduct": {
1579
+ "type": "array",
1580
+ "items": {
1581
+ "$ref": "#/$defs/relatedProductObject"
1582
+ }
1583
+ },
1584
+ "pagefront:featureGroup": {
1585
+ "type": "array",
1586
+ "items": {
1587
+ "$ref": "#/$defs/featureGroup"
1588
+ },
1589
+ "minItems": 1
1590
+ },
1591
+ "pagefront:productHighlights": {
1592
+ "type": "array",
1593
+ "items": {
1594
+ "type": "string"
1595
+ },
1596
+ "minItems": 1
1597
+ },
1598
+ "pagefront:legalEntity": {
1599
+ "type": "array",
1600
+ "items": {
1601
+ "$ref": "#/$defs/legalEntity"
1602
+ },
1603
+ "minItems": 1
1604
+ },
1605
+ "pagefront:safetyWarning": {
1606
+ "type": "array",
1607
+ "items": {
1608
+ "$ref": "#/$defs/safetyWarning"
1609
+ },
1610
+ "minItems": 1
1611
+ },
1612
+ "pagefront:safetyNotice": {
1613
+ "type": "array",
1614
+ "items": {
1615
+ "$ref": "#/$defs/safetyNotice"
1616
+ },
1617
+ "minItems": 1
1618
+ },
1619
+ "pagefront:sizeChart": {
1620
+ "$ref": "#/$defs/sizeChart"
1621
+ },
1622
+ "pagefront:sizeRecommendation": {
1623
+ "$ref": "#/$defs/sizeRecommendation"
1624
+ },
1625
+ "pagefront:materialComposition": {
1626
+ "type": "array",
1627
+ "items": {
1628
+ "$ref": "#/$defs/material"
1629
+ }
1630
+ },
1631
+ "pagefront:fabricComposition": {
1632
+ "type": "array",
1633
+ "items": {
1634
+ "$ref": "#/$defs/material"
1635
+ }
1636
+ },
1637
+ "pagefront:construction": {
1638
+ "$ref": "#/$defs/construction"
1639
+ },
1640
+ "pagefront:manufacturingChain": {
1641
+ "type": "array",
1642
+ "items": {
1643
+ "$ref": "#/$defs/manufacturingStage"
1644
+ }
1645
+ },
1646
+ "pagefront:gemstone": {
1647
+ "$ref": "#/$defs/gemstone"
1648
+ },
1649
+ "pagefront:configurator": {
1650
+ "$ref": "#/$defs/configurator"
1651
+ },
1652
+ "pagefront:madeToOrderTerms": {
1653
+ "$ref": "#/$defs/madeToOrderTerms"
1654
+ },
1655
+ "pagefront:manufacturerWarranty": {
1656
+ "type": "object"
1657
+ },
1658
+ "pagefront:careInstructions": {
1659
+ "type": "array",
1660
+ "items": {
1661
+ "type": "string"
1662
+ }
1663
+ },
1664
+ "pagefront:availableLanguages": {
1665
+ "type": "array",
1666
+ "items": {
1667
+ "type": "object",
1668
+ "required": [
1669
+ "lang",
1670
+ "url"
1671
+ ],
1672
+ "properties": {
1673
+ "lang": {
1674
+ "type": "string"
1675
+ },
1676
+ "url": {
1677
+ "type": "string",
1678
+ "format": "uri"
1679
+ }
1680
+ },
1681
+ "additionalProperties": false
1682
+ }
1683
+ }
1684
+ },
1685
+ "if": {
1686
+ "properties": {
1687
+ "@type": {
1688
+ "const": "ProductGroup"
1689
+ }
1690
+ },
1691
+ "required": [
1692
+ "@type"
1693
+ ]
1694
+ },
1695
+ "then": {
1696
+ "required": [
1697
+ "productGroupID"
1698
+ ]
1699
+ },
1700
+ "else": {
1701
+ "required": [
1702
+ "url"
1703
+ ],
1704
+ "anyOf": [
1705
+ {
1706
+ "required": [
1707
+ "sku"
1708
+ ]
1709
+ },
1710
+ {
1711
+ "required": [
1712
+ "gtin13"
1713
+ ]
1714
+ },
1715
+ {
1716
+ "required": [
1717
+ "gtin"
1718
+ ]
1719
+ },
1720
+ {
1721
+ "required": [
1722
+ "mpn"
1723
+ ]
1724
+ },
1725
+ {
1726
+ "required": [
1727
+ "productID"
1728
+ ]
1729
+ }
1730
+ ]
1731
+ },
1732
+ "additionalProperties": true
1733
+ },
1734
+ "amount": {
1735
+ "description": "A currency amount: a JSON number, or a decimal string with a dot as decimal point, no thousands separators and no currency symbol. A Sheet uses one of the two carriers for all its amounts.",
1736
+ "oneOf": [
1737
+ {
1738
+ "type": "number"
1739
+ },
1740
+ {
1741
+ "type": "string",
1742
+ "pattern": "^-?\\d+(\\.\\d+)?$"
1743
+ }
1744
+ ]
1745
+ },
1746
+ "nonNegativeAmount": {
1747
+ "description": "An amount that is zero or positive: the same two carriers as amount, with no leading minus. Used for prices, price bounds, base prices, price hints and discount amounts; only modifiers and adjustment amounts are signed.",
1748
+ "oneOf": [
1749
+ {
1750
+ "type": "number",
1751
+ "minimum": 0
1752
+ },
1753
+ {
1754
+ "type": "string",
1755
+ "pattern": "^\\d+(\\.\\d+)?$"
1756
+ }
1757
+ ]
1758
+ },
1759
+ "variantEntry": {
1760
+ "type": "object",
1761
+ "required": [
1762
+ "@type"
1763
+ ],
1764
+ "properties": {
1765
+ "@type": {
1766
+ "type": "string"
1767
+ },
1768
+ "@id": {
1769
+ "type": "string",
1770
+ "format": "uri"
1771
+ },
1772
+ "url": {
1773
+ "type": "string",
1774
+ "format": "uri"
1775
+ },
1776
+ "sheet_url": {
1777
+ "type": "string",
1778
+ "format": "uri"
1779
+ },
1780
+ "name": {
1781
+ "type": "string"
1782
+ },
1783
+ "sku": {
1784
+ "type": "string"
1785
+ },
1786
+ "gtin13": {
1787
+ "$ref": "#/$defs/gtin13Value"
1788
+ },
1789
+ "gtin": {
1790
+ "$ref": "#/$defs/gtinValue"
1791
+ },
1792
+ "mpn": {
1793
+ "type": "string"
1794
+ },
1795
+ "productID": {
1796
+ "type": "string"
1797
+ },
1798
+ "color": {
1799
+ "type": "string"
1800
+ },
1801
+ "size": {
1802
+ "type": "string"
1803
+ },
1804
+ "material": {
1805
+ "type": "string"
1806
+ },
1807
+ "price": {
1808
+ "$ref": "#/$defs/nonNegativeAmount"
1809
+ },
1810
+ "image": {
1811
+ "type": "string",
1812
+ "format": "uri"
1813
+ },
1814
+ "additionalProperty": {
1815
+ "type": "array"
1816
+ }
1817
+ },
1818
+ "additionalProperties": true
1819
+ },
1820
+ "imageObject": {
1821
+ "type": "object",
1822
+ "required": [
1823
+ "@type",
1824
+ "url"
1825
+ ],
1826
+ "properties": {
1827
+ "@type": {
1828
+ "const": "ImageObject"
1829
+ },
1830
+ "url": {
1831
+ "type": "string",
1832
+ "format": "uri"
1833
+ },
1834
+ "caption": {
1835
+ "type": "string"
1836
+ },
1837
+ "additionalProperty": {
1838
+ "type": "array",
1839
+ "items": {
1840
+ "type": "object",
1841
+ "properties": {
1842
+ "@type": {
1843
+ "const": "PropertyValue"
1844
+ },
1845
+ "name": {
1846
+ "type": "string"
1847
+ },
1848
+ "value": {
1849
+ "type": "string"
1850
+ }
1851
+ },
1852
+ "allOf": [
1853
+ {
1854
+ "if": {
1855
+ "properties": {
1856
+ "name": {
1857
+ "const": "role"
1858
+ }
1859
+ },
1860
+ "required": [
1861
+ "name"
1862
+ ]
1863
+ },
1864
+ "then": {
1865
+ "properties": {
1866
+ "value": {
1867
+ "enum": [
1868
+ "hero",
1869
+ "packshot",
1870
+ "lifestyle",
1871
+ "detail",
1872
+ "flatlay",
1873
+ "swatch",
1874
+ "size_chart",
1875
+ "context"
1876
+ ]
1877
+ }
1878
+ }
1879
+ }
1880
+ }
1881
+ ]
1882
+ }
1883
+ }
1884
+ },
1885
+ "additionalProperties": true
1886
+ },
1887
+ "videoObject": {
1888
+ "type": "object",
1889
+ "required": [
1890
+ "@type"
1891
+ ],
1892
+ "properties": {
1893
+ "@type": {
1894
+ "const": "VideoObject"
1895
+ },
1896
+ "url": {
1897
+ "type": "string",
1898
+ "format": "uri"
1899
+ },
1900
+ "contentUrl": {
1901
+ "type": "string",
1902
+ "format": "uri"
1903
+ },
1904
+ "embedUrl": {
1905
+ "type": "string",
1906
+ "format": "uri"
1907
+ },
1908
+ "thumbnailUrl": {
1909
+ "type": "string",
1910
+ "format": "uri"
1911
+ },
1912
+ "duration": {
1913
+ "type": "string",
1914
+ "pattern": "^P(?:\\d+Y)?(?:\\d+M)?(?:\\d+D)?(?:T(?:\\d+H)?(?:\\d+M)?(?:\\d+(?:\\.\\d+)?S)?)?$"
1915
+ },
1916
+ "uploadDate": {
1917
+ "type": "string"
1918
+ },
1919
+ "caption": {
1920
+ "type": "string"
1921
+ },
1922
+ "transcript": {
1923
+ "type": "string"
1924
+ },
1925
+ "description": {
1926
+ "type": "string"
1927
+ },
1928
+ "name": {
1929
+ "type": "string"
1930
+ },
1931
+ "additionalProperty": {
1932
+ "type": "array",
1933
+ "items": {
1934
+ "type": "object",
1935
+ "properties": {
1936
+ "@type": {
1937
+ "const": "PropertyValue"
1938
+ },
1939
+ "name": {
1940
+ "type": "string"
1941
+ },
1942
+ "value": {
1943
+ "type": "string"
1944
+ }
1945
+ },
1946
+ "allOf": [
1947
+ {
1948
+ "if": {
1949
+ "properties": {
1950
+ "name": {
1951
+ "const": "role"
1952
+ }
1953
+ },
1954
+ "required": [
1955
+ "name"
1956
+ ]
1957
+ },
1958
+ "then": {
1959
+ "properties": {
1960
+ "value": {
1961
+ "enum": [
1962
+ "overview",
1963
+ "tutorial",
1964
+ "lifestyle",
1965
+ "construction",
1966
+ "demonstration",
1967
+ "comparison",
1968
+ "unboxing",
1969
+ "spin"
1970
+ ]
1971
+ }
1972
+ }
1973
+ }
1974
+ }
1975
+ ]
1976
+ }
1977
+ }
1978
+ },
1979
+ "anyOf": [
1980
+ {
1981
+ "required": [
1982
+ "url"
1983
+ ]
1984
+ },
1985
+ {
1986
+ "required": [
1987
+ "contentUrl"
1988
+ ]
1989
+ },
1990
+ {
1991
+ "required": [
1992
+ "embedUrl"
1993
+ ]
1994
+ }
1995
+ ],
1996
+ "additionalProperties": true
1997
+ },
1998
+ "questionObject": {
1999
+ "type": "object",
2000
+ "required": [
2001
+ "@type",
2002
+ "name",
2003
+ "acceptedAnswer"
2004
+ ],
2005
+ "properties": {
2006
+ "@type": {
2007
+ "const": "Question"
2008
+ },
2009
+ "name": {
2010
+ "type": "string",
2011
+ "minLength": 1
2012
+ },
2013
+ "acceptedAnswer": {
2014
+ "type": "object",
2015
+ "required": [
2016
+ "@type",
2017
+ "text"
2018
+ ],
2019
+ "properties": {
2020
+ "@type": {
2021
+ "const": "Answer"
2022
+ },
2023
+ "text": {
2024
+ "type": "string",
2025
+ "minLength": 1
2026
+ }
2027
+ },
2028
+ "additionalProperties": true
2029
+ },
2030
+ "suggestedAnswer": {
2031
+ "type": "array",
2032
+ "items": {
2033
+ "type": "object",
2034
+ "required": [
2035
+ "@type",
2036
+ "text"
2037
+ ],
2038
+ "properties": {
2039
+ "@type": {
2040
+ "const": "Answer"
2041
+ },
2042
+ "text": {
2043
+ "type": "string",
2044
+ "minLength": 1
2045
+ }
2046
+ },
2047
+ "additionalProperties": true
2048
+ }
2049
+ }
2050
+ },
2051
+ "additionalProperties": true
2052
+ },
2053
+ "documentObject": {
2054
+ "type": "object",
2055
+ "required": [
2056
+ "@type",
2057
+ "url",
2058
+ "role"
2059
+ ],
2060
+ "properties": {
2061
+ "@type": {
2062
+ "const": "pagefront:Document"
2063
+ },
2064
+ "url": {
2065
+ "type": "string",
2066
+ "format": "uri"
2067
+ },
2068
+ "role": {
2069
+ "type": "string",
2070
+ "enum": [
2071
+ "manual",
2072
+ "assembly",
2073
+ "care_guide",
2074
+ "spec_sheet",
2075
+ "compatibility",
2076
+ "warranty",
2077
+ "certificate",
2078
+ "environmental_declaration",
2079
+ "audit_report",
2080
+ "lab_test",
2081
+ "safety_data_sheet",
2082
+ "installation_guide",
2083
+ "user_guide",
2084
+ "quick_start",
2085
+ "brochure",
2086
+ "repairability_index",
2087
+ "recall_notice",
2088
+ "declaration_of_conformity"
2089
+ ]
2090
+ },
2091
+ "name": {
2092
+ "type": "string"
2093
+ },
2094
+ "inLanguage": {
2095
+ "type": "string"
2096
+ },
2097
+ "description": {
2098
+ "type": "string"
2099
+ },
2100
+ "encodingFormat": {
2101
+ "type": "string"
2102
+ }
2103
+ },
2104
+ "additionalProperties": false
2105
+ },
2106
+ "relatedProductObject": {
2107
+ "type": "object",
2108
+ "required": [
2109
+ "@type",
2110
+ "relationship"
2111
+ ],
2112
+ "properties": {
2113
+ "@type": {
2114
+ "const": "pagefront:RelatedProduct"
2115
+ },
2116
+ "relationship": {
2117
+ "type": "string",
2118
+ "enum": [
2119
+ "accessory",
2120
+ "consumable",
2121
+ "required_part",
2122
+ "spare_part",
2123
+ "often_bought_with",
2124
+ "recommended_with",
2125
+ "replaces",
2126
+ "replaced_by",
2127
+ "bundle_component",
2128
+ "compatible_with",
2129
+ "service"
2130
+ ]
2131
+ },
2132
+ "@id": {
2133
+ "type": "string",
2134
+ "format": "uri"
2135
+ },
2136
+ "sku": {
2137
+ "type": "string"
2138
+ },
2139
+ "gtin": {
2140
+ "type": "string"
2141
+ },
2142
+ "gtin13": {
2143
+ "type": "string",
2144
+ "pattern": "^[0-9]{13}$"
2145
+ },
2146
+ "mpn": {
2147
+ "type": "string"
2148
+ },
2149
+ "name": {
2150
+ "type": "string"
2151
+ },
2152
+ "url": {
2153
+ "type": "string",
2154
+ "format": "uri"
2155
+ },
2156
+ "image": {
2157
+ "type": "string",
2158
+ "format": "uri"
2159
+ }
2160
+ },
2161
+ "anyOf": [
2162
+ {
2163
+ "required": [
2164
+ "@id"
2165
+ ]
2166
+ },
2167
+ {
2168
+ "required": [
2169
+ "sku"
2170
+ ]
2171
+ },
2172
+ {
2173
+ "required": [
2174
+ "gtin"
2175
+ ]
2176
+ },
2177
+ {
2178
+ "required": [
2179
+ "gtin13"
2180
+ ]
2181
+ },
2182
+ {
2183
+ "required": [
2184
+ "mpn"
2185
+ ]
2186
+ }
2187
+ ],
2188
+ "additionalProperties": false
2189
+ },
2190
+ "gtinValue": {
2191
+ "oneOf": [
2192
+ {
2193
+ "type": "string"
2194
+ },
2195
+ {
2196
+ "type": "array",
2197
+ "items": {
2198
+ "type": "string"
2199
+ },
2200
+ "minItems": 1
2201
+ }
2202
+ ]
2203
+ },
2204
+ "gtin13Value": {
2205
+ "oneOf": [
2206
+ {
2207
+ "type": "string",
2208
+ "pattern": "^[0-9]{13}$"
2209
+ },
2210
+ {
2211
+ "type": "array",
2212
+ "items": {
2213
+ "type": "string",
2214
+ "pattern": "^[0-9]{13}$"
2215
+ },
2216
+ "minItems": 1
2217
+ }
2218
+ ]
2219
+ },
2220
+ "categoryCode": {
2221
+ "type": "object",
2222
+ "required": [
2223
+ "@type",
2224
+ "codeValue"
2225
+ ],
2226
+ "properties": {
2227
+ "@type": {
2228
+ "const": "CategoryCode"
2229
+ },
2230
+ "codeValue": {
2231
+ "type": "string",
2232
+ "minLength": 1
2233
+ },
2234
+ "inCodeSet": {
2235
+ "oneOf": [
2236
+ {
2237
+ "type": "string",
2238
+ "format": "uri"
2239
+ },
2240
+ {
2241
+ "type": "object"
2242
+ }
2243
+ ]
2244
+ },
2245
+ "name": {
2246
+ "type": "string"
2247
+ }
2248
+ },
2249
+ "additionalProperties": true
2250
+ },
2251
+ "featureGroup": {
2252
+ "type": "object",
2253
+ "required": [
2254
+ "@type",
2255
+ "name",
2256
+ "feature"
2257
+ ],
2258
+ "properties": {
2259
+ "@type": {
2260
+ "const": "pagefront:FeatureGroup"
2261
+ },
2262
+ "name": {
2263
+ "type": "string",
2264
+ "minLength": 1
2265
+ },
2266
+ "sortOrder": {
2267
+ "type": "integer"
2268
+ },
2269
+ "feature": {
2270
+ "type": "array",
2271
+ "items": {
2272
+ "$ref": "#/$defs/featureEntry"
2273
+ },
2274
+ "minItems": 1
2275
+ }
2276
+ },
2277
+ "additionalProperties": false
2278
+ },
2279
+ "featureEntry": {
2280
+ "type": "object",
2281
+ "required": [
2282
+ "@type",
2283
+ "name",
2284
+ "value"
2285
+ ],
2286
+ "properties": {
2287
+ "@type": {
2288
+ "const": "PropertyValue"
2289
+ },
2290
+ "propertyID": {
2291
+ "type": "string"
2292
+ },
2293
+ "name": {
2294
+ "type": "string",
2295
+ "minLength": 1
2296
+ },
2297
+ "value": {
2298
+ "anyOf": [
2299
+ {
2300
+ "type": "string"
2301
+ },
2302
+ {
2303
+ "type": "number"
2304
+ },
2305
+ {
2306
+ "type": "boolean"
2307
+ }
2308
+ ]
2309
+ },
2310
+ "unitCode": {
2311
+ "type": "string"
2312
+ },
2313
+ "description": {
2314
+ "type": "string"
2315
+ },
2316
+ "pagefront:presentationValue": {
2317
+ "type": "string"
2318
+ }
2319
+ },
2320
+ "additionalProperties": true
2321
+ },
2322
+ "legalEntity": {
2323
+ "type": "object",
2324
+ "required": [
2325
+ "@type",
2326
+ "role",
2327
+ "organization"
2328
+ ],
2329
+ "properties": {
2330
+ "@type": {
2331
+ "const": "pagefront:LegalEntity"
2332
+ },
2333
+ "role": {
2334
+ "type": "string",
2335
+ "enum": [
2336
+ "brand_owner",
2337
+ "licensee",
2338
+ "authorized_representative",
2339
+ "importer",
2340
+ "manufacturer"
2341
+ ]
2342
+ },
2343
+ "organization": {
2344
+ "type": "object",
2345
+ "required": [
2346
+ "@type"
2347
+ ],
2348
+ "anyOf": [
2349
+ {
2350
+ "required": [
2351
+ "name"
2352
+ ]
2353
+ },
2354
+ {
2355
+ "required": [
2356
+ "@id"
2357
+ ]
2358
+ }
2359
+ ],
2360
+ "properties": {
2361
+ "@type": {
2362
+ "const": "Organization"
2363
+ },
2364
+ "@id": {
2365
+ "type": "string",
2366
+ "format": "uri"
2367
+ },
2368
+ "name": {
2369
+ "type": "string",
2370
+ "minLength": 1
2371
+ },
2372
+ "address": {
2373
+ "type": "object"
2374
+ },
2375
+ "url": {
2376
+ "type": "string",
2377
+ "format": "uri"
2378
+ },
2379
+ "email": {
2380
+ "type": "string",
2381
+ "format": "email"
2382
+ },
2383
+ "pagefront:sheetUrl": {
2384
+ "type": "string",
2385
+ "format": "uri"
2386
+ }
2387
+ },
2388
+ "additionalProperties": true
2389
+ }
2390
+ },
2391
+ "additionalProperties": false
2392
+ },
2393
+ "safetyWarning": {
2394
+ "type": "object",
2395
+ "required": [
2396
+ "@type",
2397
+ "text"
2398
+ ],
2399
+ "properties": {
2400
+ "@type": {
2401
+ "const": "pagefront:SafetyWarning"
2402
+ },
2403
+ "text": {
2404
+ "type": "string",
2405
+ "minLength": 1
2406
+ },
2407
+ "pictogram": {
2408
+ "type": "string",
2409
+ "format": "uri"
2410
+ },
2411
+ "hazardCategory": {
2412
+ "type": "string"
2413
+ }
2414
+ },
2415
+ "additionalProperties": false
2416
+ },
2417
+ "safetyNotice": {
2418
+ "type": "object",
2419
+ "required": [
2420
+ "@type",
2421
+ "noticeType"
2422
+ ],
2423
+ "properties": {
2424
+ "@type": {
2425
+ "const": "pagefront:SafetyNotice"
2426
+ },
2427
+ "noticeType": {
2428
+ "type": "string",
2429
+ "enum": [
2430
+ "recall",
2431
+ "warning"
2432
+ ]
2433
+ },
2434
+ "hazard": {
2435
+ "type": "string"
2436
+ },
2437
+ "remedy": {
2438
+ "type": "string",
2439
+ "enum": [
2440
+ "repair",
2441
+ "replacement",
2442
+ "refund"
2443
+ ]
2444
+ },
2445
+ "description": {
2446
+ "type": "string"
2447
+ },
2448
+ "reference": {
2449
+ "type": "string",
2450
+ "format": "uri"
2451
+ },
2452
+ "datePublished": {
2453
+ "type": "string",
2454
+ "format": "date"
2455
+ },
2456
+ "url": {
2457
+ "type": "string",
2458
+ "format": "uri"
2459
+ }
2460
+ },
2461
+ "additionalProperties": false
2462
+ },
2463
+ "certification": {
2464
+ "type": "object",
2465
+ "required": [
2466
+ "@type",
2467
+ "name"
2468
+ ],
2469
+ "properties": {
2470
+ "@type": {
2471
+ "const": "Certification"
2472
+ },
2473
+ "name": {
2474
+ "type": "string"
2475
+ },
2476
+ "issuedBy": {
2477
+ "type": "object"
2478
+ },
2479
+ "about": {
2480
+ "type": "string"
2481
+ },
2482
+ "additionalProperty": {
2483
+ "type": "array"
2484
+ }
2485
+ },
2486
+ "additionalProperties": true
2487
+ },
2488
+ "offer": {
2489
+ "type": "object",
2490
+ "required": [
2491
+ "@type"
2492
+ ],
2493
+ "properties": {
2494
+ "@type": {
2495
+ "const": "Offer"
2496
+ },
2497
+ "@id": {
2498
+ "type": "string"
2499
+ },
2500
+ "itemOffered": {
2501
+ "type": "object"
2502
+ },
2503
+ "price": {
2504
+ "$ref": "#/$defs/nonNegativeAmount"
2505
+ },
2506
+ "priceCurrency": {
2507
+ "type": "string",
2508
+ "pattern": "^[A-Z]{3}$"
2509
+ },
2510
+ "priceSpecification": {
2511
+ "oneOf": [
2512
+ {
2513
+ "type": "object"
2514
+ },
2515
+ {
2516
+ "type": "array",
2517
+ "items": {
2518
+ "type": "object"
2519
+ }
2520
+ }
2521
+ ]
2522
+ },
2523
+ "availability": {
2524
+ "type": "string",
2525
+ "pattern": "^https?://schema\\.org/(InStock|OutOfStock|PreOrder|BackOrder|InStoreOnly|LimitedAvailability|MadeToOrder|OnlineOnly|SoldOut|Discontinued|Reserved)$"
2526
+ },
2527
+ "itemCondition": {
2528
+ "type": "string",
2529
+ "pattern": "^https?://schema\\.org/(NewCondition|UsedCondition|RefurbishedCondition|DamagedCondition)$"
2530
+ },
2531
+ "seller": {
2532
+ "type": "object",
2533
+ "properties": {
2534
+ "pagefront:sheetUrl": {
2535
+ "type": "string",
2536
+ "format": "uri"
2537
+ }
2538
+ }
2539
+ },
2540
+ "shippingDetails": {
2541
+ "oneOf": [
2542
+ {
2543
+ "type": "object"
2544
+ },
2545
+ {
2546
+ "type": "array",
2547
+ "items": {
2548
+ "type": "object"
2549
+ }
2550
+ }
2551
+ ]
2552
+ },
2553
+ "hasMerchantReturnPolicy": {
2554
+ "type": "object"
2555
+ },
2556
+ "warranty": {
2557
+ "type": "object"
2558
+ },
2559
+ "areaServed": {},
2560
+ "eligibleRegion": {
2561
+ "type": "array"
2562
+ },
2563
+ "acceptedPaymentMethod": {
2564
+ "type": "array"
2565
+ },
2566
+ "pagefront:estimatedDelivery": {
2567
+ "$ref": "#/$defs/deliveryEstimate"
2568
+ },
2569
+ "pagefront:promotions": {
2570
+ "type": "array",
2571
+ "items": {
2572
+ "$ref": "#/$defs/promotion"
2573
+ }
2574
+ },
2575
+ "pagefront:priceOnRequest": {
2576
+ "$ref": "#/$defs/priceOnRequest"
2577
+ },
2578
+ "pagefront:configuratorPricing": {
2579
+ "$ref": "#/$defs/configuratorPricing"
2580
+ }
2581
+ },
2582
+ "anyOf": [
2583
+ {
2584
+ "required": [
2585
+ "price",
2586
+ "priceCurrency"
2587
+ ]
2588
+ },
2589
+ {
2590
+ "required": [
2591
+ "priceSpecification"
2592
+ ]
2593
+ },
2594
+ {
2595
+ "required": [
2596
+ "pagefront:priceOnRequest"
2597
+ ]
2598
+ }
2599
+ ],
2600
+ "dependentRequired": {
2601
+ "pagefront:configuratorPricing": [
2602
+ "price",
2603
+ "priceCurrency"
2604
+ ]
2605
+ },
2606
+ "additionalProperties": true
2607
+ },
2608
+ "aggregateOffer": {
2609
+ "type": "object",
2610
+ "required": [
2611
+ "@type",
2612
+ "lowPrice",
2613
+ "highPrice",
2614
+ "priceCurrency"
2615
+ ],
2616
+ "properties": {
2617
+ "@type": {
2618
+ "const": "AggregateOffer"
2619
+ },
2620
+ "@id": {
2621
+ "type": "string"
2622
+ },
2623
+ "lowPrice": {
2624
+ "$ref": "#/$defs/nonNegativeAmount"
2625
+ },
2626
+ "highPrice": {
2627
+ "$ref": "#/$defs/nonNegativeAmount"
2628
+ },
2629
+ "priceCurrency": {
2630
+ "type": "string",
2631
+ "pattern": "^[A-Z]{3}$"
2632
+ },
2633
+ "offerCount": {
2634
+ "type": "integer"
2635
+ },
2636
+ "availability": {
2637
+ "type": "string",
2638
+ "pattern": "^https?://schema\\.org/(InStock|OutOfStock|PreOrder|BackOrder|InStoreOnly|LimitedAvailability|MadeToOrder|OnlineOnly|SoldOut|Discontinued|Reserved)$"
2639
+ },
2640
+ "itemCondition": {
2641
+ "type": "string",
2642
+ "pattern": "^https?://schema\\.org/(NewCondition|UsedCondition|RefurbishedCondition|DamagedCondition)$"
2643
+ },
2644
+ "eligibleRegion": {
2645
+ "type": "array"
2646
+ },
2647
+ "areaServed": {},
2648
+ "validFrom": {
2649
+ "type": "string"
2650
+ },
2651
+ "validThrough": {
2652
+ "type": "string"
2653
+ },
2654
+ "seller": {
2655
+ "type": "object"
2656
+ },
2657
+ "pagefront:configuratorPricing": {
2658
+ "$ref": "#/$defs/configuratorPricing"
2659
+ }
2660
+ },
2661
+ "additionalProperties": true
2662
+ },
2663
+ "priceOnRequest": {
2664
+ "type": "object",
2665
+ "required": [
2666
+ "@type",
2667
+ "method"
2668
+ ],
2669
+ "properties": {
2670
+ "@type": {
2671
+ "const": "pagefront:PriceOnRequest"
2672
+ },
2673
+ "method": {
2674
+ "type": "string",
2675
+ "enum": [
2676
+ "authorized_retailer",
2677
+ "dealer_network",
2678
+ "quote_form",
2679
+ "email",
2680
+ "phone",
2681
+ "unspecified"
2682
+ ]
2683
+ },
2684
+ "contactUrl": {
2685
+ "type": "string",
2686
+ "format": "uri"
2687
+ },
2688
+ "contactEmail": {
2689
+ "type": "string",
2690
+ "format": "email"
2691
+ },
2692
+ "contactPhone": {
2693
+ "type": "string"
2694
+ },
2695
+ "note": {
2696
+ "type": "string"
2697
+ }
2698
+ },
2699
+ "additionalProperties": false
2700
+ },
2701
+ "sizeChart": {
2702
+ "type": "object",
2703
+ "required": [
2704
+ "@type",
2705
+ "unitCode",
2706
+ "sizes",
2707
+ "measurements"
2708
+ ],
2709
+ "properties": {
2710
+ "@type": {
2711
+ "const": "pagefront:SizeChart"
2712
+ },
2713
+ "unitCode": {
2714
+ "type": "string"
2715
+ },
2716
+ "sizes": {
2717
+ "type": "array",
2718
+ "items": {
2719
+ "type": "string"
2720
+ },
2721
+ "minItems": 1
2722
+ },
2723
+ "measurements": {
2724
+ "type": "array",
2725
+ "items": {
2726
+ "$ref": "#/$defs/measurement"
2727
+ },
2728
+ "minItems": 1
2729
+ },
2730
+ "modelReferences": {
2731
+ "type": "array",
2732
+ "items": {
2733
+ "$ref": "#/$defs/modelReference"
2734
+ }
2735
+ }
2736
+ },
2737
+ "additionalProperties": false
2738
+ },
2739
+ "measurement": {
2740
+ "type": "object",
2741
+ "required": [
2742
+ "@type",
2743
+ "name",
2744
+ "values"
2745
+ ],
2746
+ "properties": {
2747
+ "@type": {
2748
+ "const": "pagefront:Measurement"
2749
+ },
2750
+ "name": {
2751
+ "type": "string"
2752
+ },
2753
+ "values": {
2754
+ "type": "object",
2755
+ "additionalProperties": {
2756
+ "type": "number"
2757
+ }
2758
+ }
2759
+ },
2760
+ "additionalProperties": false
2761
+ },
2762
+ "modelReference": {
2763
+ "type": "object",
2764
+ "required": [
2765
+ "@type",
2766
+ "name"
2767
+ ],
2768
+ "properties": {
2769
+ "@type": {
2770
+ "const": "pagefront:ModelReference"
2771
+ },
2772
+ "name": {
2773
+ "type": "string"
2774
+ },
2775
+ "heightCm": {
2776
+ "type": "number",
2777
+ "minimum": 0
2778
+ },
2779
+ "wearsSize": {
2780
+ "type": "string"
2781
+ }
2782
+ },
2783
+ "additionalProperties": false
2784
+ },
2785
+ "sizeRecommendation": {
2786
+ "type": "object",
2787
+ "required": [
2788
+ "@type"
2789
+ ],
2790
+ "properties": {
2791
+ "@type": {
2792
+ "const": "pagefront:SizeRecommendation"
2793
+ },
2794
+ "fitProfile": {
2795
+ "type": "string",
2796
+ "enum": [
2797
+ "runs_small",
2798
+ "true_to_size",
2799
+ "runs_large"
2800
+ ]
2801
+ },
2802
+ "sizeAdjustment": {
2803
+ "$ref": "#/$defs/sizeAdjustment"
2804
+ },
2805
+ "description": {
2806
+ "type": "string"
2807
+ },
2808
+ "appliesTo": {
2809
+ "type": "string"
2810
+ }
2811
+ },
2812
+ "additionalProperties": false
2813
+ },
2814
+ "sizeAdjustment": {
2815
+ "type": "object",
2816
+ "required": [
2817
+ "@type",
2818
+ "direction",
2819
+ "magnitude"
2820
+ ],
2821
+ "properties": {
2822
+ "@type": {
2823
+ "const": "pagefront:SizeAdjustment"
2824
+ },
2825
+ "direction": {
2826
+ "type": "string",
2827
+ "enum": [
2828
+ "up",
2829
+ "down"
2830
+ ]
2831
+ },
2832
+ "magnitude": {
2833
+ "type": "number",
2834
+ "minimum": 0
2835
+ },
2836
+ "sizeSystem": {
2837
+ "type": "string"
2838
+ }
2839
+ },
2840
+ "additionalProperties": false
2841
+ },
2842
+ "material": {
2843
+ "type": "object",
2844
+ "required": [
2845
+ "@type",
2846
+ "material"
2847
+ ],
2848
+ "properties": {
2849
+ "@type": {
2850
+ "const": "pagefront:Material"
2851
+ },
2852
+ "material": {
2853
+ "type": "string"
2854
+ },
2855
+ "percentage": {
2856
+ "type": "number",
2857
+ "minimum": 0,
2858
+ "maximum": 100
2859
+ },
2860
+ "purity": {
2861
+ "type": "string"
2862
+ },
2863
+ "purityPercentage": {
2864
+ "type": "number",
2865
+ "minimum": 0,
2866
+ "maximum": 100
2867
+ },
2868
+ "provenance": {
2869
+ "type": "string",
2870
+ "enum": [
2871
+ "virgin",
2872
+ "recycled",
2873
+ "fair_mined",
2874
+ "lab_grown",
2875
+ "reclaimed",
2876
+ "deadstock"
2877
+ ]
2878
+ },
2879
+ "weightGrams": {
2880
+ "type": "number",
2881
+ "minimum": 0
2882
+ }
2883
+ },
2884
+ "additionalProperties": false
2885
+ },
2886
+ "construction": {
2887
+ "type": "object",
2888
+ "required": [
2889
+ "@type"
2890
+ ],
2891
+ "properties": {
2892
+ "@type": {
2893
+ "const": "pagefront:Construction"
2894
+ },
2895
+ "stitch": {
2896
+ "type": "string"
2897
+ },
2898
+ "gauge": {
2899
+ "type": "number"
2900
+ },
2901
+ "machine": {
2902
+ "type": "string"
2903
+ },
2904
+ "constructionNotes": {
2905
+ "type": "string"
2906
+ }
2907
+ },
2908
+ "additionalProperties": true
2909
+ },
2910
+ "manufacturingStage": {
2911
+ "type": "object",
2912
+ "required": [
2913
+ "@type",
2914
+ "stage",
2915
+ "country"
2916
+ ],
2917
+ "properties": {
2918
+ "@type": {
2919
+ "const": "pagefront:ManufacturingStage"
2920
+ },
2921
+ "stage": {
2922
+ "type": "string"
2923
+ },
2924
+ "country": {
2925
+ "type": "string",
2926
+ "pattern": "^[A-Z]{2}$"
2927
+ },
2928
+ "facility": {
2929
+ "type": "string"
2930
+ },
2931
+ "facilityCountry": {
2932
+ "type": "string",
2933
+ "pattern": "^[A-Z]{2}$"
2934
+ }
2935
+ },
2936
+ "additionalProperties": false
2937
+ },
2938
+ "gemstone": {
2939
+ "type": "object",
2940
+ "required": [
2941
+ "@type",
2942
+ "type"
2943
+ ],
2944
+ "properties": {
2945
+ "@type": {
2946
+ "const": "pagefront:Gemstone"
2947
+ },
2948
+ "type": {
2949
+ "type": "string"
2950
+ },
2951
+ "origin": {
2952
+ "type": "string",
2953
+ "enum": [
2954
+ "natural_mined",
2955
+ "lab_grown",
2956
+ "treated",
2957
+ "synthetic"
2958
+ ]
2959
+ },
2960
+ "shape": {
2961
+ "type": "string"
2962
+ },
2963
+ "caratWeight": {
2964
+ "type": "number",
2965
+ "minimum": 0
2966
+ },
2967
+ "colorGrade": {
2968
+ "type": "string"
2969
+ },
2970
+ "clarityGrade": {
2971
+ "type": "string"
2972
+ },
2973
+ "cutGrade": {
2974
+ "type": "string"
2975
+ },
2976
+ "certifyingBody": {
2977
+ "type": "string"
2978
+ }
2979
+ },
2980
+ "additionalProperties": false
2981
+ },
2982
+ "configurator": {
2983
+ "type": "object",
2984
+ "required": [
2985
+ "@type",
2986
+ "dimensions"
2987
+ ],
2988
+ "properties": {
2989
+ "@type": {
2990
+ "const": "pagefront:Configurator"
2991
+ },
2992
+ "@id": {
2993
+ "type": "string",
2994
+ "minLength": 1
2995
+ },
2996
+ "dimensions": {
2997
+ "type": "array",
2998
+ "items": {
2999
+ "$ref": "#/$defs/configuratorDimension"
3000
+ },
3001
+ "minItems": 1
3002
+ },
3003
+ "exclusions": {
3004
+ "type": "array",
3005
+ "items": {
3006
+ "$ref": "#/$defs/configurationSelection",
3007
+ "type": "object",
3008
+ "minProperties": 1
3009
+ }
3010
+ }
3011
+ },
3012
+ "additionalProperties": false
3013
+ },
3014
+ "configuratorDimension": {
3015
+ "type": "object",
3016
+ "required": [
3017
+ "name"
3018
+ ],
3019
+ "properties": {
3020
+ "name": {
3021
+ "type": "string"
3022
+ },
3023
+ "options": {
3024
+ "type": "array",
3025
+ "items": {
3026
+ "type": "object",
3027
+ "required": [
3028
+ "value"
3029
+ ],
3030
+ "properties": {
3031
+ "value": {
3032
+ "anyOf": [
3033
+ {
3034
+ "type": "string"
3035
+ },
3036
+ {
3037
+ "type": "number"
3038
+ },
3039
+ {
3040
+ "type": "boolean"
3041
+ }
3042
+ ]
3043
+ },
3044
+ "description": {
3045
+ "type": "string"
3046
+ },
3047
+ "priceModifier": false,
3048
+ "currency": false
3049
+ },
3050
+ "additionalProperties": true
3051
+ }
3052
+ },
3053
+ "affectsPrice": {
3054
+ "type": "boolean",
3055
+ "default": true
3056
+ },
3057
+ "inputType": {
3058
+ "type": "string",
3059
+ "enum": [
3060
+ "select",
3061
+ "text"
3062
+ ],
3063
+ "default": "select"
3064
+ },
3065
+ "maxLength": {
3066
+ "type": "integer",
3067
+ "minimum": 1
3068
+ },
3069
+ "system": {
3070
+ "type": "string"
3071
+ },
3072
+ "note": {
3073
+ "type": "string"
3074
+ }
3075
+ },
3076
+ "additionalProperties": false
3077
+ },
3078
+ "configurationSelection": {
3079
+ "type": "object",
3080
+ "additionalProperties": {
3081
+ "anyOf": [
3082
+ {
3083
+ "type": "string"
3084
+ },
3085
+ {
3086
+ "type": "number"
3087
+ },
3088
+ {
3089
+ "type": "boolean"
3090
+ }
3091
+ ]
3092
+ }
3093
+ },
3094
+ "configuratorPricing": {
3095
+ "type": "object",
3096
+ "required": [
3097
+ "@type",
3098
+ "configurator",
3099
+ "baseConfiguration",
3100
+ "basePrice",
3101
+ "modifiers"
3102
+ ],
3103
+ "properties": {
3104
+ "@type": {
3105
+ "const": "pagefront:ConfiguratorPricing"
3106
+ },
3107
+ "configurator": {
3108
+ "type": "object",
3109
+ "required": [
3110
+ "@id"
3111
+ ],
3112
+ "properties": {
3113
+ "@type": {
3114
+ "const": "pagefront:Configurator"
3115
+ },
3116
+ "@id": {
3117
+ "type": "string",
3118
+ "minLength": 1
3119
+ }
3120
+ },
3121
+ "additionalProperties": false
3122
+ },
3123
+ "baseConfiguration": {
3124
+ "$ref": "#/$defs/configurationSelection"
3125
+ },
3126
+ "basePrice": {
3127
+ "$ref": "#/$defs/nonNegativeAmount"
3128
+ },
3129
+ "modifiers": {
3130
+ "type": "object",
3131
+ "additionalProperties": {
3132
+ "type": "object",
3133
+ "additionalProperties": {
3134
+ "$ref": "#/$defs/amount"
3135
+ }
3136
+ }
3137
+ },
3138
+ "adjustments": {
3139
+ "type": "array",
3140
+ "items": {
3141
+ "type": "object",
3142
+ "required": [
3143
+ "when",
3144
+ "priceModifier"
3145
+ ],
3146
+ "properties": {
3147
+ "when": {
3148
+ "$ref": "#/$defs/configurationSelection",
3149
+ "type": "object",
3150
+ "minProperties": 1
3151
+ },
3152
+ "priceModifier": {
3153
+ "$ref": "#/$defs/amount"
3154
+ }
3155
+ },
3156
+ "additionalProperties": false
3157
+ }
3158
+ },
3159
+ "pricing": {
3160
+ "type": "string",
3161
+ "enum": [
3162
+ "complete",
3163
+ "partial"
3164
+ ],
3165
+ "default": "complete"
3166
+ }
3167
+ },
3168
+ "additionalProperties": false
3169
+ },
3170
+ "madeToOrderTerms": {
3171
+ "type": "object",
3172
+ "required": [
3173
+ "@type"
3174
+ ],
3175
+ "properties": {
3176
+ "@type": {
3177
+ "const": "pagefront:MadeToOrderTerms"
3178
+ },
3179
+ "productionLeadTime": {
3180
+ "$ref": "#/$defs/duration"
3181
+ },
3182
+ "cancellationPolicy": {
3183
+ "type": "string"
3184
+ },
3185
+ "returnsExceptions": {
3186
+ "type": "array",
3187
+ "items": {
3188
+ "type": "string"
3189
+ }
3190
+ },
3191
+ "aftermarketServices": {
3192
+ "type": "array",
3193
+ "items": {
3194
+ "$ref": "#/$defs/aftermarketService"
3195
+ }
3196
+ }
3197
+ },
3198
+ "additionalProperties": false
3199
+ },
3200
+ "duration": {
3201
+ "type": "object",
3202
+ "required": [
3203
+ "@type"
3204
+ ],
3205
+ "properties": {
3206
+ "@type": {
3207
+ "const": "pagefront:Duration"
3208
+ },
3209
+ "minDays": {
3210
+ "type": "integer",
3211
+ "minimum": 0
3212
+ },
3213
+ "maxDays": {
3214
+ "type": "integer",
3215
+ "minimum": 0
3216
+ },
3217
+ "description": {
3218
+ "type": "string"
3219
+ }
3220
+ },
3221
+ "additionalProperties": false
3222
+ },
3223
+ "deliveryEstimate": {
3224
+ "type": "object",
3225
+ "required": [
3226
+ "@type"
3227
+ ],
3228
+ "properties": {
3229
+ "@type": {
3230
+ "const": "pagefront:DeliveryEstimate"
3231
+ },
3232
+ "earliest": {
3233
+ "type": "string",
3234
+ "format": "date"
3235
+ },
3236
+ "latest": {
3237
+ "type": "string",
3238
+ "format": "date"
3239
+ },
3240
+ "description": {
3241
+ "type": "string"
3242
+ }
3243
+ },
3244
+ "additionalProperties": false
3245
+ },
3246
+ "aftermarketService": {
3247
+ "type": "object",
3248
+ "required": [
3249
+ "@type",
3250
+ "service"
3251
+ ],
3252
+ "properties": {
3253
+ "@type": {
3254
+ "const": "pagefront:AftermarketService"
3255
+ },
3256
+ "service": {
3257
+ "type": "string"
3258
+ },
3259
+ "limit": {
3260
+ "type": "string"
3261
+ },
3262
+ "description": {
3263
+ "type": "string"
3264
+ }
3265
+ },
3266
+ "additionalProperties": false
3267
+ },
3268
+ "promotion": {
3269
+ "type": "object",
3270
+ "required": [
3271
+ "@type",
3272
+ "scope"
3273
+ ],
3274
+ "properties": {
3275
+ "@type": {
3276
+ "const": "pagefront:Promotion"
3277
+ },
3278
+ "code": {
3279
+ "type": "string"
3280
+ },
3281
+ "discountPercentage": {
3282
+ "type": "number",
3283
+ "minimum": 0,
3284
+ "maximum": 100
3285
+ },
3286
+ "discountAmount": {
3287
+ "$ref": "#/$defs/nonNegativeAmount"
3288
+ },
3289
+ "discountCurrency": {
3290
+ "type": "string",
3291
+ "pattern": "^[A-Z]{3}$"
3292
+ },
3293
+ "scope": {
3294
+ "type": "string",
3295
+ "enum": [
3296
+ "product",
3297
+ "category",
3298
+ "site_wide"
3299
+ ]
3300
+ },
3301
+ "occasion": {
3302
+ "type": "string"
3303
+ },
3304
+ "validUntil": {
3305
+ "type": "string",
3306
+ "format": "date-time"
3307
+ }
3308
+ },
3309
+ "additionalProperties": false
3310
+ }
3311
+ }
3312
+ },
870
3313
  "https://themachineweb.org/pagefront/spec/commerce/product/v0.9.0.json": {
871
3314
  "$schema": "https://json-schema.org/draft/2020-12/schema",
872
3315
  "$id": "https://themachineweb.org/pagefront/spec/commerce/product/v0.9.0.json",