scaffolder: apply review fixes

Co-authored-by: Johan Haals <johan.haals@gmail.com>
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-10-06 15:24:44 +02:00
parent 7f2d184eb4
commit 0f74ce87fb
5 changed files with 11 additions and 10 deletions
@@ -83,6 +83,11 @@
"examples": ["service", "website", "library"],
"minLength": 1
},
"owner": {
"type": "string",
"description": "The user (or group) owner of the template",
"minLength": 1
},
"parameters": {
"oneOf": [
{
@@ -172,11 +177,6 @@
"additionalProperties": {
"type": "string"
}
},
"owner": {
"type": "string",
"description": "The user (or group) owner of the template",
"minLength": 1
}
}
}
@@ -32,8 +32,9 @@ describe('templateEntityV1beta3Validator', () => {
},
spec: {
type: 'website',
owner: 'team-b',
parameters: {
required: ['storePath', 'owner'],
required: ['owner'],
properties: {
owner: {
type: 'string',
@@ -56,7 +57,6 @@ describe('templateEntityV1beta3Validator', () => {
output: {
fetchUrl: '${{ steps.fetch.output.targetUrl }}',
},
owner: 'team-b@example.com',
},
};
});