fix: Update copy Typespec to expect proper type

This commit is contained in:
Gerald Pinder 2024-10-13 19:06:50 -04:00
parent c0414bed30
commit ba5d6696f5

View file

@ -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;
}