fix(test): Remove oneOf to test verbosity of basic output
This commit is contained in:
parent
02c198daa6
commit
e528284909
2 changed files with 0 additions and 7 deletions
|
|
@ -47,11 +47,7 @@ for (const module of modules) {
|
|||
|
||||
fs.writeFileSync(`${modulesDir}/index.tsp`,
|
||||
moduleImports.map(m => `import "./${m}";`).join("\n") + `
|
||||
import "@typespec/json-schema";
|
||||
|
||||
using TypeSpec.JsonSchema;
|
||||
|
||||
@oneOf
|
||||
union RepoModule {
|
||||
${moduleModels.map(m => ` ${m}Module`).join(",\n")}
|
||||
}`
|
||||
|
|
|
|||
|
|
@ -66,7 +66,6 @@ model StageList {
|
|||
stages: Array<StageEntry>;
|
||||
}
|
||||
|
||||
@oneOf
|
||||
union StageEntry {
|
||||
Stage,
|
||||
ImportedModule,
|
||||
|
|
@ -103,14 +102,12 @@ model ModuleList {
|
|||
modules: Array<ModuleEntry>;
|
||||
}
|
||||
|
||||
@oneOf
|
||||
union ModuleEntry {
|
||||
Module,
|
||||
ImportedModule,
|
||||
}
|
||||
|
||||
@jsonSchema("module-v1.json")
|
||||
@oneOf
|
||||
union Module {
|
||||
RepoModule,
|
||||
CustomModule,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue