From ed6ca6dd6e86a285bb4e9b53598fdf6635fa3005 Mon Sep 17 00:00:00 2001 From: Nicolas Braud-Santoni Date: Mon, 29 Feb 2016 18:28:35 +0100 Subject: [PATCH] file_copy: Fix manifest --- .../plugins/file_copy/manifest-schema.yml | 53 +++++++++++-------- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/bootstrapvz/plugins/file_copy/manifest-schema.yml b/bootstrapvz/plugins/file_copy/manifest-schema.yml index 0a65dde..452bcc7 100644 --- a/bootstrapvz/plugins/file_copy/manifest-schema.yml +++ b/bootstrapvz/plugins/file_copy/manifest-schema.yml @@ -7,31 +7,38 @@ properties: properties: mkdirs: items: - dir: - $ref: '#/definitions/absolute_path' - permissions: - type: string - owner: - type: string - group: - type: string + type: object + properties: + dir: + type: string + permissions: + type: string + owner: + type: string + group: + type: string + required: [dir] + additionalProperties: false + files: - items: - src: - $ref: '#/definitions/absolute_path' - dst: - $ref: '#/definitions/absolute_path' - permissions: - type: string - owner: - type: string - group: - type: string - minItems: 1 type: array - required: - - src - - dst + minItems: 1 + items: + type: object + properties: + src: + type: string + dst: + type: string + permissions: + type: string + owner: + type: string + group: + type: string + required: [src, dst] + additionalProperties: false + required: - files type: object