From 43c7331a35c0d2a3556d9220d9ed52037f4e2070 Mon Sep 17 00:00:00 2001 From: "Mingzhe Huang (from Dev Box)" Date: Tue, 27 Aug 2024 16:45:44 +0800 Subject: [PATCH] update uint8 senario name --- packages/cadl-ranch-specs/cadl-ranch-summary.md | 2 +- packages/cadl-ranch-specs/http/encode/numeric/main.tsp | 2 +- packages/cadl-ranch-specs/http/encode/numeric/mockapi.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cadl-ranch-specs/cadl-ranch-summary.md b/packages/cadl-ranch-specs/cadl-ranch-summary.md index 2c7b003dd..ad7f7112e 100644 --- a/packages/cadl-ranch-specs/cadl-ranch-summary.md +++ b/packages/cadl-ranch-specs/cadl-ranch-summary.md @@ -2413,7 +2413,7 @@ Expected response body: } ``` -### Encode_Numeric_Property_uint8AsStringOptional +### Encode_Numeric_Property_uint8AsString - Endpoint: `post /encode/numeric/property/uint8` diff --git a/packages/cadl-ranch-specs/http/encode/numeric/main.tsp b/packages/cadl-ranch-specs/http/encode/numeric/main.tsp index 0b1f645f9..413f3345e 100644 --- a/packages/cadl-ranch-specs/http/encode/numeric/main.tsp +++ b/packages/cadl-ranch-specs/http/encode/numeric/main.tsp @@ -36,7 +36,7 @@ namespace Property { alias SendUint8AsString = SendIntAsString; @route("/uint8") - op uint8AsStringOptional is SendUint8AsString.sendIntAsString; + op uint8AsString is SendUint8AsString.sendIntAsString; model Uint8AsStringProperty { @encode(string) diff --git a/packages/cadl-ranch-specs/http/encode/numeric/mockapi.ts b/packages/cadl-ranch-specs/http/encode/numeric/mockapi.ts index 6983782b1..7f6632963 100644 --- a/packages/cadl-ranch-specs/http/encode/numeric/mockapi.ts +++ b/packages/cadl-ranch-specs/http/encode/numeric/mockapi.ts @@ -18,4 +18,4 @@ Scenarios.Encode_Numeric_Property_safeintAsString = passOnSuccess(createProperty Scenarios.Encode_Numeric_Property_uint32AsStringOptional = passOnSuccess(createPropertyMockApis("uint32", "1")); -Scenarios.Encode_Numeric_Property_uint8AsStringOptional = passOnSuccess(createPropertyMockApis("uint8", "255")); +Scenarios.Encode_Numeric_Property_uint8AsString = passOnSuccess(createPropertyMockApis("uint8", "255"));