Manifest.ym: applications property is no longer considered required.
This commit is contained in:
@@ -92,8 +92,7 @@ public class ManifestYmlSchema implements YamlSchema {
|
||||
YType t_env = f.ymap(t_string, t_string);
|
||||
|
||||
// define schema structure...
|
||||
TOPLEVEL_TYPE.addProperty(f.yprop("applications", f.yseq(application))
|
||||
.isRequired(true));
|
||||
TOPLEVEL_TYPE.addProperty(f.yprop("applications", f.yseq(application)));
|
||||
TOPLEVEL_TYPE.addProperty("inherit", t_string, descriptionFor("inherit"));
|
||||
|
||||
YTypedPropertyImpl[] props = {
|
||||
|
||||
@@ -737,19 +737,6 @@ public class ManifestYamlEditorTest {
|
||||
|
||||
}
|
||||
|
||||
@Test public void applicationsPropertyIsRequired() throws Exception {
|
||||
Editor editor;
|
||||
|
||||
//when the file is empty (there is no AST at all)
|
||||
editor = harness.newEditor(
|
||||
"buildpack: some-buildpack"
|
||||
);
|
||||
editor.assertProblems(
|
||||
"buildpack: some-buildpack|'applications' is required"
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@Test public void namePropertyIsRequired() throws Exception {
|
||||
Editor editor = harness.newEditor(
|
||||
"applications:\n" +
|
||||
|
||||
Reference in New Issue
Block a user