Skip to content

Commit

Permalink
fix: Update copy Typespec to expect proper type
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Oct 13, 2024
1 parent c0414be commit ba5d669
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions template/templates/modules/copy/copy.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
/** Path to destination file or directory. */
dest: string;
}

0 comments on commit ba5d669

Please sign in to comment.