Skip to content

Commit

Permalink
update default value definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingzhe Huang (from Dev Box) committed Jul 29, 2024
1 parent 322cf2b commit 3142134
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions packages/cadl-ranch-expect/src/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,17 +243,8 @@ export function $scenarioService(
kind: "Model",
properties: new Map().set("endpoint", {
name: "endpoint",
type: {
kind: "Scalar",
name: "string",
derivedScalars: [],
projections: [],
projectionsByName: [],
isFinished: false,
decorators: [],
namespace: { kind: "Namespace", name: "TypeSpec", namespace: context.program.getGlobalNamespaceType() },
},
default: { kind: "String", value: "http://localhost:3000" },
type: context.program!.getGlobalNamespaceType().namespaces.get("TypeSpec")!.scalars.get("string"),
defaultValue: { kind: "String", value: "http://localhost:3000" },
}),
decorators: [],
projections: [],
Expand Down

0 comments on commit 3142134

Please sign in to comment.