shel-neos-schema 1.2.0 → 1.3.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.
@@ -1524,6 +1524,15 @@
1524
1524
  "defaultValue": {
1525
1525
  "$ref": "#/definitions/defaultValueType"
1526
1526
  },
1527
+ "scope": {
1528
+ "type": "string",
1529
+ "enum": [
1530
+ "node",
1531
+ "specializations",
1532
+ "nodeAggregate"
1533
+ ],
1534
+ "description": "Property scopes. Since Neos 9.0."
1535
+ },
1527
1536
  "search": {
1528
1537
  "type": "object",
1529
1538
  "properties": {
@@ -1575,6 +1584,22 @@
1575
1584
  },
1576
1585
  "validation": {
1577
1586
  "$ref": "#/definitions/validation"
1587
+ },
1588
+ "constraints": {
1589
+ "type": "object",
1590
+ "additionalProperties": false,
1591
+ "properties": {
1592
+ "nodeTypes": {
1593
+ "type": "object",
1594
+ "additionalProperties": {
1595
+ "type": "boolean"
1596
+ }
1597
+ },
1598
+ "maxItems": {
1599
+ "type": "integer",
1600
+ "minimum": 1
1601
+ }
1602
+ }
1578
1603
  }
1579
1604
  },
1580
1605
  "$ref": "#/definitions/defaultValueValidation"
@@ -10,6 +10,7 @@ My.Vendor:Content.Text:
10
10
  properties:
11
11
  text:
12
12
  type: string
13
+ scope: node
13
14
  defaultValue: 'Some text'
14
15
  options:
15
16
  someCustomOption: true
@@ -3,6 +3,11 @@ My.Vendor:Document.WithReferences:
3
3
  Neos.Neos:Document: true
4
4
  references:
5
5
  myReference:
6
+ constraints:
7
+ nodeTypes:
8
+ '*': false
9
+ 'Neos.Neos:Document': true
10
+ maxItems: 1
6
11
  ui:
7
12
  label: 'My reference'
8
13
  inspector:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shel-neos-schema",
3
3
  "description": "A tool to validate Neos YAML schema files like nodetypes and other configuration",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "main": "bin/validate.js",
6
6
  "author": "Sebastian Helzle <sebastian@helzle.it>",
7
7
  "license": "MIT",