fix(test): Remove oneOf to test verbosity of basic output

This commit is contained in:
Gerald Pinder 2024-10-28 23:45:06 -04:00
parent 02c198daa6
commit e528284909
2 changed files with 0 additions and 7 deletions

View file

@ -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")}
}`

View file

@ -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,