shel-neos-schema 1.0.2 → 1.1.1
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/.idea/copilot.data.migration.agent.xml +6 -0
- package/.idea/copilot.data.migration.ask.xml +6 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/copilot.data.migration.edit.xml +6 -0
- package/NodeMigration.Schema.json +38 -14
- package/NodeTypes.Schema.json +4 -0
- package/examples/NodeTypes.WithChildren.yaml +2 -0
- package/examples/Version20250623134952.yaml +32 -0
- package/package.json +1 -1
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"additionalProperties": false,
|
|
87
87
|
"properties": {
|
|
88
88
|
"dimensionValues": {
|
|
89
|
-
"description": "The
|
|
90
|
-
"type": "
|
|
89
|
+
"description": "The object of dimension values to filter for.",
|
|
90
|
+
"type": "object"
|
|
91
91
|
},
|
|
92
92
|
"filterForDefaultDimensionValues": {
|
|
93
93
|
"description": "Overrides the given dimensionValues with dimension defaults.",
|
|
@@ -511,19 +511,43 @@
|
|
|
511
511
|
]
|
|
512
512
|
}
|
|
513
513
|
},
|
|
514
|
-
"
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
"
|
|
518
|
-
|
|
514
|
+
"oneOf": [
|
|
515
|
+
{
|
|
516
|
+
"additionalProperties": false,
|
|
517
|
+
"properties": {
|
|
518
|
+
"up": {
|
|
519
|
+
"description": "Transformations to be applied when executing the migration",
|
|
520
|
+
"$ref": "#/definitions/configuration"
|
|
521
|
+
},
|
|
522
|
+
"down": {
|
|
523
|
+
"description": "Transformations to be applied when rolling back the migration",
|
|
524
|
+
"$ref": "#/definitions/configuration"
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
"required": [
|
|
528
|
+
"up",
|
|
529
|
+
"down"
|
|
530
|
+
]
|
|
519
531
|
},
|
|
520
|
-
|
|
521
|
-
"
|
|
522
|
-
"
|
|
532
|
+
{
|
|
533
|
+
"additionalProperties": false,
|
|
534
|
+
"properties": {
|
|
535
|
+
"comments": {
|
|
536
|
+
"description": "Description what this migration will do.",
|
|
537
|
+
"type": "string"
|
|
538
|
+
},
|
|
539
|
+
"warnings": {
|
|
540
|
+
"description": "If warnings are present, execution of the migration has to explicitly confirmed.",
|
|
541
|
+
"type": "string"
|
|
542
|
+
},
|
|
543
|
+
"migration": {
|
|
544
|
+
"description": "Transformations to be applied by this migration.",
|
|
545
|
+
"type": "array",
|
|
546
|
+
"items": {
|
|
547
|
+
"$ref": "#/definitions/migration"
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
523
551
|
}
|
|
524
|
-
},
|
|
525
|
-
"required": [
|
|
526
|
-
"up",
|
|
527
|
-
"down"
|
|
528
552
|
]
|
|
529
553
|
}
|
package/NodeTypes.Schema.json
CHANGED
|
@@ -1457,6 +1457,10 @@
|
|
|
1457
1457
|
],
|
|
1458
1458
|
"additionalProperties": false,
|
|
1459
1459
|
"properties": {
|
|
1460
|
+
"label": {
|
|
1461
|
+
"type": ["string", "null"],
|
|
1462
|
+
"description": "Set a custom label for the node (Neos 8.4+)"
|
|
1463
|
+
},
|
|
1460
1464
|
"position": {
|
|
1461
1465
|
"$ref": "#/definitions/position"
|
|
1462
1466
|
},
|
|
@@ -3,6 +3,7 @@ My.Vendor:Document.Simple:
|
|
|
3
3
|
Neos.Neos:Document: true
|
|
4
4
|
childNodes:
|
|
5
5
|
main:
|
|
6
|
+
label: 'Main content'
|
|
6
7
|
type: Neos.Neos:ContentCollection
|
|
7
8
|
options:
|
|
8
9
|
someCustomOption: true
|
|
@@ -10,5 +11,6 @@ My.Vendor:Document.Simple:
|
|
|
10
11
|
nodeTypes:
|
|
11
12
|
Neos.Neos:Content: true
|
|
12
13
|
footer:
|
|
14
|
+
label: ~
|
|
13
15
|
options:
|
|
14
16
|
preset: 'footer'
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
comments: 'Merge source and dist node into version node'
|
|
2
|
+
migration:
|
|
3
|
+
- filters:
|
|
4
|
+
- type: 'NodeType'
|
|
5
|
+
settings:
|
|
6
|
+
nodeType: 'Neos.MarketPlace:Source'
|
|
7
|
+
transformations:
|
|
8
|
+
- type: 'SetPropertyOnParent'
|
|
9
|
+
settings:
|
|
10
|
+
properties:
|
|
11
|
+
- from: 'type'
|
|
12
|
+
to: 'sourceType'
|
|
13
|
+
- from: 'url'
|
|
14
|
+
to: 'sourceUrl'
|
|
15
|
+
- from: 'reference'
|
|
16
|
+
to: 'sourceReference'
|
|
17
|
+
- filters:
|
|
18
|
+
- type: 'NodeType'
|
|
19
|
+
settings:
|
|
20
|
+
nodeType: 'Neos.MarketPlace:Dist'
|
|
21
|
+
transformations:
|
|
22
|
+
- type: 'SetPropertyOnParent'
|
|
23
|
+
settings:
|
|
24
|
+
properties:
|
|
25
|
+
- from: 'type'
|
|
26
|
+
to: 'distType'
|
|
27
|
+
- from: 'url'
|
|
28
|
+
to: 'distUrl'
|
|
29
|
+
- from: 'reference'
|
|
30
|
+
to: 'distReference'
|
|
31
|
+
- from: 'shasum'
|
|
32
|
+
to: 'distShasum'
|
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.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"main": "bin/validate.js",
|
|
6
6
|
"author": "Sebastian Helzle <sebastian@helzle.it>",
|
|
7
7
|
"license": "MIT",
|