From ba5d6696f51a5a462c8a96772e515858d0a7e0ea Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Sun, 13 Oct 2024 19:06:50 -0400 Subject: [PATCH] fix: Update copy Typespec to expect proper type --- template/templates/modules/copy/copy.tsp | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/template/templates/modules/copy/copy.tsp b/template/templates/modules/copy/copy.tsp index 0848d745..73cf65d8 100644 --- a/template/templates/modules/copy/copy.tsp +++ b/template/templates/modules/copy/copy.tsp @@ -3,19 +3,19 @@ using TypeSpec.JsonSchema; @jsonSchema("/modules/copy.json") model CopyModule { - /** The copy module is a short-hand method of adding a COPY instruction into the Containerfile. - * https://blue-build.org/reference/modules/copy/ - */ - type: "containerfile"; + /** The copy module is a short-hand method of adding a COPY instruction into the Containerfile. + * https://blue-build.org/reference/modules/copy/ + */ + type: "copy"; - /** Equivalent to the --from property in a COPY statement, use to specify an image to copy from. - * By default, the COPY source is the build environment's file tree. - */ - from?: string; + /** Equivalent to the --from property in a COPY statement, use to specify an image to copy from. + * By default, the COPY source is the build environment's file tree. + */ + from?: string; - /** Path to source file or directory. */ - src: string; + /** Path to source file or directory. */ + src: string; - /** Path to destination file or directory. */ - dest: string; -} \ No newline at end of file + /** Path to destination file or directory. */ + dest: string; +}