Skip to content

Commit

Permalink
Merge pull request #237 from platformsh/cxtra-347-make-source_path-op…
Browse files Browse the repository at this point in the history
…tional-in-upsun-mounts

Make source_path optional for mounts
  • Loading branch information
akalipetis authored Dec 3, 2024
2 parents 7d0478a + ceed05e commit 0b7446a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
9 changes: 3 additions & 6 deletions validator/schema/platformsh.application.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@
}
},
"required": [
"source",
"source_path"
"source"
],
"additionalProperties": false
},
Expand Down Expand Up @@ -381,8 +380,7 @@
}
},
"required": [
"source",
"source_path"
"source"
],
"additionalProperties": false
},
Expand Down Expand Up @@ -789,8 +787,7 @@
}
},
"required": [
"source",
"source_path"
"source"
],
"additionalProperties": false
},
Expand Down
9 changes: 3 additions & 6 deletions validator/schema/upsun.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@
}
},
"required": [
"source",
"source_path"
"source"
],
"additionalProperties": false
},
Expand Down Expand Up @@ -376,8 +375,7 @@
}
},
"required": [
"source",
"source_path"
"source"
],
"additionalProperties": false
},
Expand Down Expand Up @@ -780,8 +778,7 @@
}
},
"required": [
"source",
"source_path"
"source"
],
"additionalProperties": false
},
Expand Down
3 changes: 3 additions & 0 deletions validator/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ func Test_validateUpsunConfig(t *testing.T) {
applications:
app1:
type: "python:3.11"
mounts:
/mnt/data:
source: storage
`),
},
},
Expand Down

0 comments on commit 0b7446a

Please sign in to comment.