shel-neos-schema 1.1.1 → 1.2.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.
@@ -22,6 +22,9 @@
22
22
  "properties": {
23
23
  "message": {
24
24
  "type": "string"
25
+ },
26
+ "thumbnail": {
27
+ "type": "string"
25
28
  }
26
29
  }
27
30
  },
@@ -1548,6 +1551,35 @@
1548
1551
  "$ref": "#/definitions/defaultValueValidation"
1549
1552
  }
1550
1553
  },
1554
+ "references": {
1555
+ "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.",
1556
+ "type": [
1557
+ "object",
1558
+ "null"
1559
+ ],
1560
+ "additionalProperties": {
1561
+ "type": "object",
1562
+ "additionalProperties": false,
1563
+ "properties": {
1564
+ "options": {
1565
+ "type": "object",
1566
+ "additionalProperties": true,
1567
+ "properties": {
1568
+ "preset": {
1569
+ "type": "string"
1570
+ }
1571
+ }
1572
+ },
1573
+ "ui": {
1574
+ "$ref": "#/definitions/propertyUIOptions"
1575
+ },
1576
+ "validation": {
1577
+ "$ref": "#/definitions/validation"
1578
+ }
1579
+ },
1580
+ "$ref": "#/definitions/defaultValueValidation"
1581
+ }
1582
+ },
1551
1583
  "ui": {
1552
1584
  "type": "object",
1553
1585
  "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.
@@ -14,6 +14,9 @@ My.Vendor:Content.Text:
14
14
  options:
15
15
  someCustomOption: true
16
16
  ui:
17
+ help:
18
+ message: 'Explanation about this text property'
19
+ thumbnail: 'resource://My.Site/Private/Images/helpThumbnail.png'
17
20
  inlineEditable: true
18
21
  inspector:
19
22
  editor: Neos.Neos/Inspector/Editors/TextFieldEditor
@@ -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,12 @@
1
+ My.Vendor:Document.WithReferences:
2
+ superTypes:
3
+ Neos.Neos:Document: true
4
+ references:
5
+ myReference:
6
+ ui:
7
+ label: 'My reference'
8
+ inspector:
9
+ group: default
10
+ editorOptions:
11
+ nodeTypes:
12
+ - 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.1",
4
+ "version": "1.2.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
  }