File tree Expand file tree Collapse file tree 2 files changed +68
-12
lines changed
Expand file tree Collapse file tree 2 files changed +68
-12
lines changed Original file line number Diff line number Diff line change 511511 ]
512512 }
513513 },
514- "additionalProperties" : false ,
515- "properties" : {
516- "up" : {
517- "description" : " Transformations to be applied when executing the migration" ,
518- "$ref" : " #/definitions/configuration"
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+ ]
519531 },
520- "down" : {
521- "description" : " Transformations to be applied when rolling back the migration" ,
522- "$ref" : " #/definitions/configuration"
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+ }
523551 }
524- },
525- "required" : [
526- " up" ,
527- " down"
528552 ]
529553}
Original file line number Diff line number Diff line change 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'
You can’t perform that action at this time.
0 commit comments