@wp-playground/blueprints 3.1.35 → 3.1.38

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.
@@ -173,10 +173,12 @@ const schema11 = {
173
173
  },
174
174
  AllPHPVersion: {
175
175
  anyOf: [
176
+ { $ref: '#/definitions/PHPNextVersion' },
176
177
  { $ref: '#/definitions/SupportedPHPVersion' },
177
178
  { $ref: '#/definitions/LegacyPHPVersion' },
178
179
  ],
179
180
  },
181
+ PHPNextVersion: { type: 'string', const: 'next' },
180
182
  SupportedPHPVersion: {
181
183
  type: 'string',
182
184
  enum: ['8.5', '8.4', '8.3', '8.2', '8.1', '8.0', '7.4'],
@@ -1576,8 +1578,8 @@ const schema12 = {
1576
1578
  description:
1577
1579
  'The Blueprint declaration, typically stored in a blueprint.json file.',
1578
1580
  };
1579
- const schema17 = { type: 'string', const: 'wp-cli' };
1580
- const schema18 = {
1581
+ const schema18 = { type: 'string', const: 'wp-cli' };
1582
+ const schema19 = {
1581
1583
  type: 'object',
1582
1584
  additionalProperties: { type: ['string', 'boolean', 'number'] },
1583
1585
  };
@@ -1593,15 +1595,17 @@ const schema13 = {
1593
1595
  };
1594
1596
  const schema14 = {
1595
1597
  anyOf: [
1598
+ { $ref: '#/definitions/PHPNextVersion' },
1596
1599
  { $ref: '#/definitions/SupportedPHPVersion' },
1597
1600
  { $ref: '#/definitions/LegacyPHPVersion' },
1598
1601
  ],
1599
1602
  };
1600
- const schema15 = {
1603
+ const schema15 = { type: 'string', const: 'next' };
1604
+ const schema16 = {
1601
1605
  type: 'string',
1602
1606
  enum: ['8.5', '8.4', '8.3', '8.2', '8.1', '8.0', '7.4'],
1603
1607
  };
1604
- const schema16 = { type: 'string', enum: ['5.2'] };
1608
+ const schema17 = { type: 'string', enum: ['5.2'] };
1605
1609
  function validate13(
1606
1610
  data,
1607
1611
  { instancePath = '', parentData, parentDataProperty, rootData = data } = {}
@@ -1614,7 +1618,7 @@ function validate13(
1614
1618
  if (typeof data !== 'string') {
1615
1619
  const err0 = {
1616
1620
  instancePath,
1617
- schemaPath: '#/definitions/SupportedPHPVersion/type',
1621
+ schemaPath: '#/definitions/PHPNextVersion/type',
1618
1622
  keyword: 'type',
1619
1623
  params: { type: 'string' },
1620
1624
  message: 'must be string',
@@ -1626,23 +1630,13 @@ function validate13(
1626
1630
  }
1627
1631
  errors++;
1628
1632
  }
1629
- if (
1630
- !(
1631
- data === '8.5' ||
1632
- data === '8.4' ||
1633
- data === '8.3' ||
1634
- data === '8.2' ||
1635
- data === '8.1' ||
1636
- data === '8.0' ||
1637
- data === '7.4'
1638
- )
1639
- ) {
1633
+ if ('next' !== data) {
1640
1634
  const err1 = {
1641
1635
  instancePath,
1642
- schemaPath: '#/definitions/SupportedPHPVersion/enum',
1643
- keyword: 'enum',
1644
- params: { allowedValues: schema15.enum },
1645
- message: 'must be equal to one of the allowed values',
1636
+ schemaPath: '#/definitions/PHPNextVersion/const',
1637
+ keyword: 'const',
1638
+ params: { allowedValue: 'next' },
1639
+ message: 'must be equal to constant',
1646
1640
  };
1647
1641
  if (vErrors === null) {
1648
1642
  vErrors = [err1];
@@ -1658,7 +1652,7 @@ function validate13(
1658
1652
  if (typeof data !== 'string') {
1659
1653
  const err2 = {
1660
1654
  instancePath,
1661
- schemaPath: '#/definitions/LegacyPHPVersion/type',
1655
+ schemaPath: '#/definitions/SupportedPHPVersion/type',
1662
1656
  keyword: 'type',
1663
1657
  params: { type: 'string' },
1664
1658
  message: 'must be string',
@@ -1670,10 +1664,20 @@ function validate13(
1670
1664
  }
1671
1665
  errors++;
1672
1666
  }
1673
- if (!(data === '5.2')) {
1667
+ if (
1668
+ !(
1669
+ data === '8.5' ||
1670
+ data === '8.4' ||
1671
+ data === '8.3' ||
1672
+ data === '8.2' ||
1673
+ data === '8.1' ||
1674
+ data === '8.0' ||
1675
+ data === '7.4'
1676
+ )
1677
+ ) {
1674
1678
  const err3 = {
1675
1679
  instancePath,
1676
- schemaPath: '#/definitions/LegacyPHPVersion/enum',
1680
+ schemaPath: '#/definitions/SupportedPHPVersion/enum',
1677
1681
  keyword: 'enum',
1678
1682
  params: { allowedValues: schema16.enum },
1679
1683
  message: 'must be equal to one of the allowed values',
@@ -1687,9 +1691,44 @@ function validate13(
1687
1691
  }
1688
1692
  var _valid0 = _errs4 === errors;
1689
1693
  valid0 = valid0 || _valid0;
1694
+ if (!valid0) {
1695
+ const _errs7 = errors;
1696
+ if (typeof data !== 'string') {
1697
+ const err4 = {
1698
+ instancePath,
1699
+ schemaPath: '#/definitions/LegacyPHPVersion/type',
1700
+ keyword: 'type',
1701
+ params: { type: 'string' },
1702
+ message: 'must be string',
1703
+ };
1704
+ if (vErrors === null) {
1705
+ vErrors = [err4];
1706
+ } else {
1707
+ vErrors.push(err4);
1708
+ }
1709
+ errors++;
1710
+ }
1711
+ if (!(data === '5.2')) {
1712
+ const err5 = {
1713
+ instancePath,
1714
+ schemaPath: '#/definitions/LegacyPHPVersion/enum',
1715
+ keyword: 'enum',
1716
+ params: { allowedValues: schema17.enum },
1717
+ message: 'must be equal to one of the allowed values',
1718
+ };
1719
+ if (vErrors === null) {
1720
+ vErrors = [err5];
1721
+ } else {
1722
+ vErrors.push(err5);
1723
+ }
1724
+ errors++;
1725
+ }
1726
+ var _valid0 = _errs7 === errors;
1727
+ valid0 = valid0 || _valid0;
1728
+ }
1690
1729
  }
1691
1730
  if (!valid0) {
1692
- const err4 = {
1731
+ const err6 = {
1693
1732
  instancePath,
1694
1733
  schemaPath: '#/anyOf',
1695
1734
  keyword: 'anyOf',
@@ -1697,9 +1736,9 @@ function validate13(
1697
1736
  message: 'must match a schema in anyOf',
1698
1737
  };
1699
1738
  if (vErrors === null) {
1700
- vErrors = [err4];
1739
+ vErrors = [err6];
1701
1740
  } else {
1702
- vErrors.push(err4);
1741
+ vErrors.push(err6);
1703
1742
  }
1704
1743
  errors++;
1705
1744
  validate13.errors = vErrors;
@@ -1841,7 +1880,7 @@ function validate12(
1841
1880
  validate12.errors = vErrors;
1842
1881
  return errors === 0;
1843
1882
  }
1844
- const schema19 = {
1883
+ const schema20 = {
1845
1884
  anyOf: [
1846
1885
  { $ref: '#/definitions/VFSReference' },
1847
1886
  { $ref: '#/definitions/LiteralReference' },
@@ -1852,7 +1891,7 @@ const schema19 = {
1852
1891
  { $ref: '#/definitions/ZipWrapperReference' },
1853
1892
  ],
1854
1893
  };
1855
- const schema20 = {
1894
+ const schema21 = {
1856
1895
  type: 'object',
1857
1896
  properties: {
1858
1897
  resource: {
@@ -1869,7 +1908,7 @@ const schema20 = {
1869
1908
  required: ['resource', 'path'],
1870
1909
  additionalProperties: false,
1871
1910
  };
1872
- const schema21 = {
1911
+ const schema22 = {
1873
1912
  type: 'object',
1874
1913
  properties: {
1875
1914
  resource: {
@@ -1911,7 +1950,7 @@ const schema21 = {
1911
1950
  required: ['resource', 'name', 'contents'],
1912
1951
  additionalProperties: false,
1913
1952
  };
1914
- const schema22 = {
1953
+ const schema23 = {
1915
1954
  type: 'object',
1916
1955
  properties: {
1917
1956
  resource: {
@@ -1928,7 +1967,7 @@ const schema22 = {
1928
1967
  required: ['resource', 'slug'],
1929
1968
  additionalProperties: false,
1930
1969
  };
1931
- const schema23 = {
1970
+ const schema24 = {
1932
1971
  type: 'object',
1933
1972
  properties: {
1934
1973
  resource: {
@@ -1945,7 +1984,7 @@ const schema23 = {
1945
1984
  required: ['resource', 'slug'],
1946
1985
  additionalProperties: false,
1947
1986
  };
1948
- const schema24 = {
1987
+ const schema25 = {
1949
1988
  type: 'object',
1950
1989
  properties: {
1951
1990
  resource: {
@@ -1962,7 +2001,7 @@ const schema24 = {
1962
2001
  required: ['resource', 'url'],
1963
2002
  additionalProperties: false,
1964
2003
  };
1965
- const schema25 = {
2004
+ const schema26 = {
1966
2005
  type: 'object',
1967
2006
  properties: {
1968
2007
  resource: {
@@ -1978,7 +2017,7 @@ const schema25 = {
1978
2017
  required: ['resource', 'path'],
1979
2018
  additionalProperties: false,
1980
2019
  };
1981
- const schema26 = {
2020
+ const schema27 = {
1982
2021
  type: 'object',
1983
2022
  properties: {
1984
2023
  resource: {
@@ -2003,13 +2042,13 @@ const schema26 = {
2003
2042
  additionalProperties: false,
2004
2043
  };
2005
2044
  const wrapper0 = { validate: validate16 };
2006
- const schema27 = {
2045
+ const schema28 = {
2007
2046
  anyOf: [
2008
2047
  { $ref: '#/definitions/GitDirectoryReference' },
2009
2048
  { $ref: '#/definitions/DirectoryLiteralReference' },
2010
2049
  ],
2011
2050
  };
2012
- const schema28 = {
2051
+ const schema29 = {
2013
2052
  type: 'object',
2014
2053
  properties: {
2015
2054
  resource: {
@@ -2042,7 +2081,7 @@ const schema28 = {
2042
2081
  required: ['resource', 'url', 'ref'],
2043
2082
  additionalProperties: false,
2044
2083
  };
2045
- const schema29 = {
2084
+ const schema30 = {
2046
2085
  type: 'string',
2047
2086
  enum: ['branch', 'tag', 'commit', 'refname'],
2048
2087
  };
@@ -2202,7 +2241,7 @@ function validate19(
2202
2241
  keyword: 'enum',
2203
2242
  params: {
2204
2243
  allowedValues:
2205
- schema29.enum,
2244
+ schema30.enum,
2206
2245
  },
2207
2246
  message:
2208
2247
  'must be equal to one of the allowed values',
@@ -2286,7 +2325,7 @@ function validate19(
2286
2325
  validate19.errors = vErrors;
2287
2326
  return errors === 0;
2288
2327
  }
2289
- const schema30 = {
2328
+ const schema31 = {
2290
2329
  type: 'object',
2291
2330
  additionalProperties: false,
2292
2331
  properties: {
@@ -2300,7 +2339,7 @@ const schema30 = {
2300
2339
  },
2301
2340
  required: ['files', 'name', 'resource'],
2302
2341
  };
2303
- const schema31 = {
2342
+ const schema32 = {
2304
2343
  type: 'object',
2305
2344
  additionalProperties: {
2306
2345
  anyOf: [
@@ -2362,7 +2401,7 @@ function validate22(
2362
2401
  schemaPath: '#/additionalProperties/anyOf/1/type',
2363
2402
  keyword: 'type',
2364
2403
  params: {
2365
- type: schema31.additionalProperties.anyOf[1]
2404
+ type: schema32.additionalProperties.anyOf[1]
2366
2405
  .type,
2367
2406
  },
2368
2407
  message: 'must be object,string',
@@ -4416,7 +4455,7 @@ function validate16(
4416
4455
  validate16.errors = vErrors;
4417
4456
  return errors === 0;
4418
4457
  }
4419
- const schema32 = {
4458
+ const schema33 = {
4420
4459
  type: 'object',
4421
4460
  discriminator: { propertyName: 'step' },
4422
4461
  required: ['step'],
@@ -5153,7 +5192,7 @@ const schema32 = {
5153
5192
  },
5154
5193
  ],
5155
5194
  };
5156
- const schema33 = {
5195
+ const schema34 = {
5157
5196
  type: 'object',
5158
5197
  properties: {
5159
5198
  activate: {
@@ -5168,7 +5207,7 @@ const schema33 = {
5168
5207
  },
5169
5208
  additionalProperties: false,
5170
5209
  };
5171
- const schema34 = {
5210
+ const schema35 = {
5172
5211
  type: 'object',
5173
5212
  properties: {
5174
5213
  activate: {
@@ -5188,7 +5227,7 @@ const schema34 = {
5188
5227
  },
5189
5228
  additionalProperties: false,
5190
5229
  };
5191
- const schema41 = {
5230
+ const schema42 = {
5192
5231
  type: 'object',
5193
5232
  properties: {
5194
5233
  adminUsername: { type: 'string' },
@@ -5196,7 +5235,7 @@ const schema41 = {
5196
5235
  },
5197
5236
  additionalProperties: false,
5198
5237
  };
5199
- const schema35 = {
5238
+ const schema36 = {
5200
5239
  type: 'object',
5201
5240
  properties: {
5202
5241
  method: {
@@ -5293,11 +5332,11 @@ const schema35 = {
5293
5332
  required: ['url'],
5294
5333
  additionalProperties: false,
5295
5334
  };
5296
- const schema36 = {
5335
+ const schema37 = {
5297
5336
  type: 'string',
5298
5337
  enum: ['GET', 'POST', 'HEAD', 'OPTIONS', 'PATCH', 'PUT', 'DELETE'],
5299
5338
  };
5300
- const schema37 = { type: 'object', additionalProperties: { type: 'string' } };
5339
+ const schema38 = { type: 'object', additionalProperties: { type: 'string' } };
5301
5340
  function validate37(
5302
5341
  data,
5303
5342
  { instancePath = '', parentData, parentDataProperty, rootData = data } = {}
@@ -5375,7 +5414,7 @@ function validate37(
5375
5414
  instancePath: instancePath + '/method',
5376
5415
  schemaPath: '#/definitions/HTTPMethod/enum',
5377
5416
  keyword: 'enum',
5378
- params: { allowedValues: schema36.enum },
5417
+ params: { allowedValues: schema37.enum },
5379
5418
  message:
5380
5419
  'must be equal to one of the allowed values',
5381
5420
  },
@@ -7479,7 +7518,7 @@ function validate37(
7479
7518
  validate37.errors = vErrors;
7480
7519
  return errors === 0;
7481
7520
  }
7482
- const schema38 = {
7521
+ const schema39 = {
7483
7522
  type: 'object',
7484
7523
  properties: {
7485
7524
  relativeUri: {
@@ -7556,7 +7595,7 @@ function validate39(
7556
7595
  if (data && typeof data == 'object' && !Array.isArray(data)) {
7557
7596
  const _errs1 = errors;
7558
7597
  for (const key0 in data) {
7559
- if (!func2.call(schema38.properties, key0)) {
7598
+ if (!func2.call(schema39.properties, key0)) {
7560
7599
  validate39.errors = [
7561
7600
  {
7562
7601
  instancePath,
@@ -7666,7 +7705,7 @@ function validate39(
7666
7705
  '#/definitions/HTTPMethod/enum',
7667
7706
  keyword: 'enum',
7668
7707
  params: {
7669
- allowedValues: schema36.enum,
7708
+ allowedValues: schema37.enum,
7670
7709
  },
7671
7710
  message:
7672
7711
  'must be equal to one of the allowed values',
@@ -9942,7 +9981,7 @@ function validate28(
9942
9981
  'enum',
9943
9982
  params: {
9944
9983
  allowedValues:
9945
- schema32
9984
+ schema33
9946
9985
  .oneOf[3]
9947
9986
  .properties
9948
9987
  .method
@@ -10950,7 +10989,7 @@ function validate28(
10950
10989
  'enum',
10951
10990
  params: {
10952
10991
  allowedValues:
10953
- schema32
10992
+ schema33
10954
10993
  .oneOf[6]
10955
10994
  .properties
10956
10995
  .importer
@@ -11885,7 +11924,7 @@ function validate28(
11885
11924
  keyword: 'enum',
11886
11925
  params: {
11887
11926
  allowedValues:
11888
- schema32
11927
+ schema33
11889
11928
  .oneOf[9]
11890
11929
  .properties
11891
11930
  .ifAlreadyInstalled
@@ -12551,7 +12590,7 @@ function validate28(
12551
12590
  keyword: 'enum',
12552
12591
  params: {
12553
12592
  allowedValues:
12554
- schema32
12593
+ schema33
12555
12594
  .oneOf[10]
12556
12595
  .properties
12557
12596
  .ifAlreadyInstalled
@@ -21110,7 +21149,7 @@ function validate11(
21110
21149
  keyword:
21111
21150
  'type',
21112
21151
  params: {
21113
- type: schema18
21152
+ type: schema19
21114
21153
  .additionalProperties
21115
21154
  .type,
21116
21155
  },
@@ -202,6 +202,9 @@
202
202
  },
203
203
  "AllPHPVersion": {
204
204
  "anyOf": [
205
+ {
206
+ "$ref": "#/definitions/PHPNextVersion"
207
+ },
205
208
  {
206
209
  "$ref": "#/definitions/SupportedPHPVersion"
207
210
  },
@@ -210,6 +213,10 @@
210
213
  }
211
214
  ]
212
215
  },
216
+ "PHPNextVersion": {
217
+ "type": "string",
218
+ "const": "next"
219
+ },
213
220
  "SupportedPHPVersion": {
214
221
  "type": "string",
215
222
  "enum": ["8.5", "8.4", "8.3", "8.2", "8.1", "8.0", "7.4"]