fix: Improve validation errors
This commit is contained in:
parent
6424bf3573
commit
3d0ae32734
99 changed files with 3773 additions and 425 deletions
|
|
@ -1,16 +1,21 @@
|
|||
import "@typespec/json-schema";
|
||||
using TypeSpec.JsonSchema;
|
||||
|
||||
@jsonSchema("/modules/containerfile.json")
|
||||
model ContainerfileModule {
|
||||
/** The containerfile module is a tool for adding custom Containerfile instructions for custom image builds.
|
||||
* https://blue-build.org/reference/modules/containerfile/
|
||||
*/
|
||||
type: "containerfile";
|
||||
@jsonSchema("/modules/containerfile-latest.json")
|
||||
model ContainerfileModuleLatest {
|
||||
...ContainerfileModuleV1;
|
||||
}
|
||||
|
||||
/** Lines to directly insert into the generated Containerfile. */
|
||||
snippets?: Array<string>;
|
||||
@jsonSchema("/modules/containerfile-v1.json")
|
||||
model ContainerfileModuleV1 {
|
||||
/** The containerfile module is a tool for adding custom Containerfile instructions for custom image builds.
|
||||
* https://blue-build.org/reference/modules/containerfile/
|
||||
*/
|
||||
type: "containerfile" | "containerfile@latest" | "containerfile@v1";
|
||||
|
||||
/** Names of directories in ./containerfiles/ containing each a Containerfile to insert into the generated Containerfile. */
|
||||
containerfiles?: Array<string>;
|
||||
}
|
||||
/** Lines to directly insert into the generated Containerfile. */
|
||||
snippets?: Array<string>;
|
||||
|
||||
/** Names of directories in ./containerfiles/ containing each a Containerfile to insert into the generated Containerfile. */
|
||||
containerfiles?: Array<string>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue