From 0a0f8d5ad7848ee9628822c4dd2e91a8feef8941 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Thu, 17 Oct 2024 22:30:29 -0700 Subject: [PATCH] Modify spec summary --- .../cadl-ranch-specs/cadl-ranch-summary.md | 12 +++++----- .../client-generator-core/access/main.tsp | 22 +++++++++---------- .../client-generator-core/usage/main.tsp | 6 ++--- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/cadl-ranch-specs/cadl-ranch-summary.md b/packages/cadl-ranch-specs/cadl-ranch-summary.md index 6e479e2c8..d613aa830 100644 --- a/packages/cadl-ranch-specs/cadl-ranch-summary.md +++ b/packages/cadl-ranch-specs/cadl-ranch-summary.md @@ -79,12 +79,12 @@ Expects header 'authorization': 'Bearer https://security.microsoft.com/.default' - `get /azure/client-generator-core/access/internalOperation/publicDecoratorInInternal` This scenario contains internal operations. All should be generated but not exposed. -Expected query parameter: name= +Expected query parameter: name= "sample" Expected response body: ```json { - "name": + "name": "sample" } ``` @@ -95,12 +95,12 @@ Expected response body: - `get /azure/client-generator-core/access/publicOperation/publicDecoratorInPublic` This scenario contains public operations. It should be generated and exported. -Expected query parameter: name= +Expected query parameter: name="sample" Expected response body: ```json { - "name": + "name": "sample" } ``` @@ -119,12 +119,12 @@ This scenario contains internal operations. All should be generated but not expo - `get /azure/client-generator-core/access/sharedModelInOperation/internal` This scenario contains two operations, one public, another internal. The public one should be generated and exported while the internal one should be generated but not exposed. -Expected query parameter: name= +Expected query parameter: name= "sample" Expected response body: ```json { - "name": + "name": "sample" } ``` diff --git a/packages/cadl-ranch-specs/http/azure/client-generator-core/access/main.tsp b/packages/cadl-ranch-specs/http/azure/client-generator-core/access/main.tsp index bd0b5d922..6f7e390da 100644 --- a/packages/cadl-ranch-specs/http/azure/client-generator-core/access/main.tsp +++ b/packages/cadl-ranch-specs/http/azure/client-generator-core/access/main.tsp @@ -15,11 +15,11 @@ namespace _Specs_.Azure.ClientGenerator.Core.Access; @scenario @scenarioDoc(""" This scenario contains public operations. It should be generated and exported. - Expected query parameter: name= + Expected query parameter: name="sample" Expected response body: ```json { - "name": + "name": "sample" } ``` """) @@ -51,11 +51,11 @@ namespace PublicOperation { @scenario @scenarioDoc(""" This scenario contains internal operations. All should be generated but not exposed. - Expected query parameter: name= + Expected query parameter: name= "sample" Expected response body: ```json { - "name": + "name": "sample" } ``` """) @@ -98,11 +98,11 @@ namespace InternalOperation { @scenario @scenarioDoc(""" This scenario contains two operations, one public, another internal. The public one should be generated and exported while the internal one should be generated but not exposed. - Expected query parameter: name= + Expected query parameter: name= "sample" Expected response body: ```json { - "name": + "name": "sample" } ``` """) @@ -157,14 +157,14 @@ namespace RelativeModelInOperation { } @doc(""" - Expected query parameter: name= + Expected query parameter: name="Madge" Expected response body: ```json { - "name": , + "name": "Madge", "inner": { - "name": + "name": "Madge" } } ``` @@ -175,11 +175,11 @@ namespace RelativeModelInOperation { op operation(@query name: string): OuterModel; @doc(""" - Expected query parameter: kind= + Expected query parameter: kind= "real" Expected response body: ```json { - "name": , + "name": "Madge", "kind": "real" } ``` diff --git a/packages/cadl-ranch-specs/http/azure/client-generator-core/usage/main.tsp b/packages/cadl-ranch-specs/http/azure/client-generator-core/usage/main.tsp index ac50a7ae0..c203d0b05 100644 --- a/packages/cadl-ranch-specs/http/azure/client-generator-core/usage/main.tsp +++ b/packages/cadl-ranch-specs/http/azure/client-generator-core/usage/main.tsp @@ -28,7 +28,7 @@ namespace ModelInOperation { Expected body parameter: ```json { - "name": + "name": "Madge" } ``` """) @@ -48,7 +48,7 @@ namespace ModelInOperation { Expected response body: ```json { - "name": + "name": "Madge" } ``` """) @@ -78,7 +78,7 @@ namespace ModelInOperation { ```json { "result": { - "name": + "name": "Madge" } } ```