shel-neos-schema 1.1.2 → 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.
package/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Sebastian Helzle
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -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": {
@@ -1551,6 +1560,51 @@
1551
1560
  "$ref": "#/definitions/defaultValueValidation"
1552
1561
  }
1553
1562
  },
1563
+ "references": {
1564
+ "description": "References to other nodes. Since Neos 9.0, this is the recommended way to define reference properties. The old way using `properties` with type `reference` or `references` is still supported for backwards compatibility, but it is recommended to switch to this new syntax.",
1565
+ "type": [
1566
+ "object",
1567
+ "null"
1568
+ ],
1569
+ "additionalProperties": {
1570
+ "type": "object",
1571
+ "additionalProperties": false,
1572
+ "properties": {
1573
+ "options": {
1574
+ "type": "object",
1575
+ "additionalProperties": true,
1576
+ "properties": {
1577
+ "preset": {
1578
+ "type": "string"
1579
+ }
1580
+ }
1581
+ },
1582
+ "ui": {
1583
+ "$ref": "#/definitions/propertyUIOptions"
1584
+ },
1585
+ "validation": {
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
+ }
1603
+ }
1604
+ },
1605
+ "$ref": "#/definitions/defaultValueValidation"
1606
+ }
1607
+ },
1554
1608
  "ui": {
1555
1609
  "type": "object",
1556
1610
  "additionalProperties": false,
package/Readme.md CHANGED
@@ -202,3 +202,16 @@ If you know how to use the schema in other editors, please provide a PR with the
202
202
 
203
203
  If you have ideas on how to improve the schema, please provide an issue with an example, and a
204
204
  PR that would resolve the issue if you can.
205
+
206
+ ## Release
207
+
208
+ Run
209
+
210
+ ```console
211
+ npm version <major|minor|patch>
212
+ npm publish
213
+ ```
214
+
215
+ ## License
216
+
217
+ See [LICENSE](LICENSE.txt) file.
@@ -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
@@ -1,4 +1,4 @@
1
- My.Vendor:Document.Simple:
1
+ My.Vendor:Document.WithChildren:
2
2
  superTypes:
3
3
  Neos.Neos:Document: true
4
4
  childNodes:
@@ -0,0 +1,17 @@
1
+ My.Vendor:Document.WithReferences:
2
+ superTypes:
3
+ Neos.Neos:Document: true
4
+ references:
5
+ myReference:
6
+ constraints:
7
+ nodeTypes:
8
+ '*': false
9
+ 'Neos.Neos:Document': true
10
+ maxItems: 1
11
+ ui:
12
+ label: 'My reference'
13
+ inspector:
14
+ group: default
15
+ editorOptions:
16
+ nodeTypes:
17
+ - Neos.Neos:Document
@@ -1,5 +1,5 @@
1
1
  # Example taken from https://github.com/Flowpack/Flowpack.NodeTemplates
2
- Neos.NodeTypes:Page:
2
+ Neos.NodeTypes:Document.WithTemplate:
3
3
  ui:
4
4
  creationDialog:
5
5
  elements:
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.1.2",
4
+ "version": "1.3.0",
5
5
  "main": "bin/validate.js",
6
6
  "author": "Sebastian Helzle <sebastian@helzle.it>",
7
7
  "license": "MIT",
@@ -24,9 +24,9 @@
24
24
  "validate": "bin/validate.js"
25
25
  },
26
26
  "dependencies": {
27
- "ajv": "^8.0.5",
28
- "js-yaml": "^4.0.0",
29
- "yargs": "^17.7.2"
27
+ "ajv": "^8.17.1",
28
+ "js-yaml": "^4.1.1",
29
+ "yargs": "^18.0.0"
30
30
  },
31
31
  "packageManager": "yarn@4.6.0"
32
32
  }