From de83b3b75258832dfa27fc2fedb045013a7ead1e Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Fri, 7 Feb 2020 17:10:27 -0800 Subject: [PATCH] Regen --- readme.md | 18 +----------------- .../AppConfiguration/CodeModel.yaml | 10 +++++----- .../Generated/Models/KeyValue.cs | 2 +- .../CognitiveSearch/CodeModel.yaml | 18 +++++++++--------- ...esultAdditionalproperties.Serialization.cs} | 6 +++--- ...vaSchemasFacetresultAdditionalproperties.cs | 12 ++++++++++++ ...tsSchemasFacetresultAdditionalproperties.cs | 12 ------------ .../Operations/DocumentsOperations.cs | 8 ++++---- samples/readme.samples.md | 1 - .../AutoRest/Plugins/CSharpProj.cs | 3 --- .../AutoRest/Plugins/Configuration.cs | 2 -- test/TestProjects/readme.md | 17 +++++++++++++++-- .../additionalProperties/CodeModel.yaml | 14 +++++++------- .../Generated/Models/PetAPInProperties.cs | 2 +- .../Models/PetAPInPropertiesWithAPString.cs | 2 +- .../body-array/CodeModel.yaml | 2 +- .../body-complex/CodeModel.yaml | 4 ++-- .../Generated/Models/DictionaryWrapper.cs | 2 +- .../body-dictionary/CodeModel.yaml | 8 ++++---- .../Operations/DictionaryOperations.cs | 4 ++-- .../model-flattening/CodeModel.yaml | 10 +++++----- .../Generated/Models/Resource.cs | 2 +- test/TestServerProjects/readme.tests.md | 17 +++++++++++++++-- .../xml-service/CodeModel.yaml | 6 +++--- .../xml-service/Generated/Models/Blob.cs | 2 +- .../xml-service/Generated/Models/Container.cs | 2 +- 26 files changed, 95 insertions(+), 91 deletions(-) rename samples/CognitiveSearch/CognitiveSearch/Generated/Models/{ComponentsSchemasFacetresultAdditionalproperties.Serialization.cs => Components1fm1tvaSchemasFacetresultAdditionalproperties.Serialization.cs} (55%) create mode 100644 samples/CognitiveSearch/CognitiveSearch/Generated/Models/Components1fm1tvaSchemasFacetresultAdditionalproperties.cs delete mode 100644 samples/CognitiveSearch/CognitiveSearch/Generated/Models/ComponentsSchemasFacetresultAdditionalproperties.cs diff --git a/readme.md b/readme.md index c3297147..2c2726c8 100644 --- a/readme.md +++ b/readme.md @@ -18,20 +18,4 @@ shared-source-folder: $(this-folder)/src/assets save-code-model: true use: $(this-folder)/artifacts/bin/AutoRest.CSharp.V3/Debug/netcoreapp3.0/ -use-extension: - "@autorest/modelerfour": "4.4.162" -``` - -```yaml $(include-csproj) -pipeline: - csharpproj: - input: modelerfour/identity - csharpproj/emitter: - input: csharpproj - scope: output-scope - csharpproj/emitter/command: - input: - - csharpgen/emitter - - csharpproj/emitter - run: dotnet build $(title).csproj --verbosity quiet /nologo -``` +``` \ No newline at end of file diff --git a/samples/AppConfiguration/AppConfiguration/CodeModel.yaml b/samples/AppConfiguration/AppConfiguration/CodeModel.yaml index 5aced08b..1bdd6021 100644 --- a/samples/AppConfiguration/AppConfiguration/CodeModel.yaml +++ b/samples/AppConfiguration/AppConfiguration/CodeModel.yaml @@ -70,7 +70,7 @@ schemas: ! serializedName: '@nextLink' language: ! default: - name: nextLink + name: NextLink description: The URI that can be used to request the next set of paged results. originalName: '@nextLink' protocol: ! {} @@ -307,13 +307,13 @@ schemas: ! language: ! default: name: Dictionary of string - description: Dictionary of + description: Dictionary of protocol: ! {} serializedName: tags language: ! default: name: tags - description: Dictionary of + description: Dictionary of originalName: tags protocol: ! {} - ! @@ -381,7 +381,7 @@ schemas: ! serializedName: '@nextLink' language: ! default: - name: nextLink + name: NextLink description: The URI that can be used to request the next set of paged results. originalName: '@nextLink' protocol: ! {} @@ -461,7 +461,7 @@ schemas: ! serializedName: '@nextLink' language: ! default: - name: nextLink + name: NextLink description: The URI that can be used to request the next set of paged results. originalName: '@nextLink' protocol: ! {} diff --git a/samples/AppConfiguration/AppConfiguration/Generated/Models/KeyValue.cs b/samples/AppConfiguration/AppConfiguration/Generated/Models/KeyValue.cs index 165e59f7..0320b2f8 100644 --- a/samples/AppConfiguration/AppConfiguration/Generated/Models/KeyValue.cs +++ b/samples/AppConfiguration/AppConfiguration/Generated/Models/KeyValue.cs @@ -16,7 +16,7 @@ namespace AppConfiguration.Models public string ContentType { get; set; } public string Value { get; set; } public DateTimeOffset? LastModified { get; set; } - /// Dictionary of <paths·keys·get·parameters·0·schema>. + /// Dictionary of <paths·2r06b2·keys·get·parameters·0·schema>. public IDictionary Tags { get; set; } public bool? Locked { get; set; } public string Etag { get; set; } diff --git a/samples/CognitiveSearch/CognitiveSearch/CodeModel.yaml b/samples/CognitiveSearch/CognitiveSearch/CodeModel.yaml index f6b0dea3..8f11eeb2 100644 --- a/samples/CognitiveSearch/CognitiveSearch/CodeModel.yaml +++ b/samples/CognitiveSearch/CognitiveSearch/CodeModel.yaml @@ -658,7 +658,7 @@ schemas: ! version: '2019-05-06' language: ! default: - name: components·schemas·facetresult·additionalproperties + name: components·1fm1tva·schemas·facetresult·additionalproperties description: '' namespace: Api20190506 protocol: ! {} @@ -1795,7 +1795,7 @@ schemas: ! serializedName: '@odata.type' language: ! default: - name: odataType + name: OdataType description: '' originalName: '@odata.type' protocol: ! {} @@ -1902,7 +1902,7 @@ schemas: ! serializedName: '@odata.type' language: ! default: - name: odataType + name: OdataType description: '' originalName: '@odata.type' protocol: ! {} @@ -5032,7 +5032,7 @@ schemas: ! serializedName: '@odata.type' language: ! default: - name: odataType + name: OdataType description: '' originalName: '@odata.type' protocol: ! {} @@ -5383,7 +5383,7 @@ schemas: ! serializedName: '@odata.type' language: ! default: - name: odataType + name: OdataType description: '' originalName: '@odata.type' protocol: ! {} @@ -8037,7 +8037,7 @@ schemas: ! serializedName: '@odata.type' language: ! default: - name: odataType + name: OdataType description: '' originalName: '@odata.type' protocol: ! {} @@ -9537,7 +9537,7 @@ schemas: ! serializedName: '@odata.type' language: ! default: - name: odataType + name: OdataType description: '' originalName: '@odata.type' protocol: ! {} @@ -12183,7 +12183,7 @@ schemas: ! serializedName: '@odata.type' language: ! default: - name: odataType + name: OdataType description: '' originalName: '@odata.type' protocol: ! {} @@ -12377,7 +12377,7 @@ schemas: ! serializedName: '@odata.type' language: ! default: - name: odataType + name: OdataType description: '' originalName: '@odata.type' protocol: ! {} diff --git a/samples/CognitiveSearch/CognitiveSearch/Generated/Models/ComponentsSchemasFacetresultAdditionalproperties.Serialization.cs b/samples/CognitiveSearch/CognitiveSearch/Generated/Models/Components1fm1tvaSchemasFacetresultAdditionalproperties.Serialization.cs similarity index 55% rename from samples/CognitiveSearch/CognitiveSearch/Generated/Models/ComponentsSchemasFacetresultAdditionalproperties.Serialization.cs rename to samples/CognitiveSearch/CognitiveSearch/Generated/Models/Components1fm1tvaSchemasFacetresultAdditionalproperties.Serialization.cs index 17864a11..c5e749f7 100644 --- a/samples/CognitiveSearch/CognitiveSearch/Generated/Models/ComponentsSchemasFacetresultAdditionalproperties.Serialization.cs +++ b/samples/CognitiveSearch/CognitiveSearch/Generated/Models/Components1fm1tvaSchemasFacetresultAdditionalproperties.Serialization.cs @@ -8,16 +8,16 @@ using Azure.Core; namespace CognitiveSearch.Models { - public partial class ComponentsSchemasFacetresultAdditionalproperties : IUtf8JsonSerializable + public partial class Components1fm1tvaSchemasFacetresultAdditionalproperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WriteEndObject(); } - internal static ComponentsSchemasFacetresultAdditionalproperties DeserializeComponentsSchemasFacetresultAdditionalproperties(JsonElement element) + internal static Components1fm1tvaSchemasFacetresultAdditionalproperties DeserializeComponents1fm1tvaSchemasFacetresultAdditionalproperties(JsonElement element) { - ComponentsSchemasFacetresultAdditionalproperties result = new ComponentsSchemasFacetresultAdditionalproperties(); + Components1fm1tvaSchemasFacetresultAdditionalproperties result = new Components1fm1tvaSchemasFacetresultAdditionalproperties(); foreach (var property in element.EnumerateObject()) { } diff --git a/samples/CognitiveSearch/CognitiveSearch/Generated/Models/Components1fm1tvaSchemasFacetresultAdditionalproperties.cs b/samples/CognitiveSearch/CognitiveSearch/Generated/Models/Components1fm1tvaSchemasFacetresultAdditionalproperties.cs new file mode 100644 index 00000000..e5965f96 --- /dev/null +++ b/samples/CognitiveSearch/CognitiveSearch/Generated/Models/Components1fm1tvaSchemasFacetresultAdditionalproperties.cs @@ -0,0 +1,12 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +namespace CognitiveSearch.Models +{ + /// The components·1fm1tva·schemas·facetresult·additionalproperties. + public partial class Components1fm1tvaSchemasFacetresultAdditionalproperties + { + } +} diff --git a/samples/CognitiveSearch/CognitiveSearch/Generated/Models/ComponentsSchemasFacetresultAdditionalproperties.cs b/samples/CognitiveSearch/CognitiveSearch/Generated/Models/ComponentsSchemasFacetresultAdditionalproperties.cs deleted file mode 100644 index 6c2933f7..00000000 --- a/samples/CognitiveSearch/CognitiveSearch/Generated/Models/ComponentsSchemasFacetresultAdditionalproperties.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -#nullable disable - -namespace CognitiveSearch.Models -{ - /// The components·schemas·facetresult·additionalproperties. - public partial class ComponentsSchemasFacetresultAdditionalproperties - { - } -} diff --git a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/DocumentsOperations.cs b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/DocumentsOperations.cs index 465c119b..a623e2ee 100644 --- a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/DocumentsOperations.cs +++ b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/DocumentsOperations.cs @@ -445,7 +445,7 @@ namespace CognitiveSearch /// List of field names to retrieve for the document; Any field not retrieved will be missing from the returned document. /// The tracking ID sent with the request to help with debugging. /// The cancellation token to use. - public async ValueTask> GetAsync(string key, IEnumerable selectedFields, Guid? clientRequestId, CancellationToken cancellationToken = default) + public async ValueTask> GetAsync(string key, IEnumerable selectedFields, Guid? clientRequestId, CancellationToken cancellationToken = default) { if (key == null) { @@ -463,7 +463,7 @@ namespace CognitiveSearch case 200: { using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var value = ComponentsSchemasFacetresultAdditionalproperties.DeserializeComponentsSchemasFacetresultAdditionalproperties(document.RootElement); + var value = Components1fm1tvaSchemasFacetresultAdditionalproperties.DeserializeComponents1fm1tvaSchemasFacetresultAdditionalproperties(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -481,7 +481,7 @@ namespace CognitiveSearch /// List of field names to retrieve for the document; Any field not retrieved will be missing from the returned document. /// The tracking ID sent with the request to help with debugging. /// The cancellation token to use. - public Response Get(string key, IEnumerable selectedFields, Guid? clientRequestId, CancellationToken cancellationToken = default) + public Response Get(string key, IEnumerable selectedFields, Guid? clientRequestId, CancellationToken cancellationToken = default) { if (key == null) { @@ -499,7 +499,7 @@ namespace CognitiveSearch case 200: { using var document = JsonDocument.Parse(message.Response.ContentStream); - var value = ComponentsSchemasFacetresultAdditionalproperties.DeserializeComponentsSchemasFacetresultAdditionalproperties(document.RootElement); + var value = Components1fm1tvaSchemasFacetresultAdditionalproperties.DeserializeComponents1fm1tvaSchemasFacetresultAdditionalproperties(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/samples/readme.samples.md b/samples/readme.samples.md index 7e7db3bb..a9515ed5 100644 --- a/samples/readme.samples.md +++ b/samples/readme.samples.md @@ -4,5 +4,4 @@ require: $(this-folder)/../readme.md output-folder: $(this-folder)/$(title)/$(title) clear-output-folder: false -include-csproj: true ``` \ No newline at end of file diff --git a/src/AutoRest.CSharp.V3/AutoRest/Plugins/CSharpProj.cs b/src/AutoRest.CSharp.V3/AutoRest/Plugins/CSharpProj.cs index 3f8eda6a..77e9a0f2 100644 --- a/src/AutoRest.CSharp.V3/AutoRest/Plugins/CSharpProj.cs +++ b/src/AutoRest.CSharp.V3/AutoRest/Plugins/CSharpProj.cs @@ -30,10 +30,7 @@ namespace AutoRest.CSharp.V3.AutoRest.Plugins "; public async Task Execute(IPluginCommunication autoRest, CodeModel codeModel, Configuration configuration) { - if (configuration.IncludeCsProj) - { await autoRest.WriteFile($"{configuration.Title}.csproj", _csProjContent, "source-file-csharp"); - } return true; } diff --git a/src/AutoRest.CSharp.V3/AutoRest/Plugins/Configuration.cs b/src/AutoRest.CSharp.V3/AutoRest/Plugins/Configuration.cs index 78e12ac9..4d5348b2 100644 --- a/src/AutoRest.CSharp.V3/AutoRest/Plugins/Configuration.cs +++ b/src/AutoRest.CSharp.V3/AutoRest/Plugins/Configuration.cs @@ -11,7 +11,6 @@ namespace AutoRest.CSharp.V3.AutoRest.Plugins public string OutputFolder { get; } public string Namespace { get; } public string Title { get; } - public bool IncludeCsProj { get; } public string SharedSourceFolder { get; } public bool SaveCodeModel { get; } @@ -22,7 +21,6 @@ namespace AutoRest.CSharp.V3.AutoRest.Plugins SharedSourceFolder = new Uri(GetRequiredOption(autoRest, "shared-source-folder")).LocalPath; Namespace = autoRest.GetValue("namespace").GetAwaiter().GetResult() ?? "Sample"; Title = autoRest.GetValue("title").GetAwaiter().GetResult() ?? "Sample"; - IncludeCsProj = autoRest.GetValue("include-csproj").GetAwaiter().GetResult() ?? true; SaveCodeModel = autoRest.GetValue("save-code-model").GetAwaiter().GetResult() ?? false; } diff --git a/test/TestProjects/readme.md b/test/TestProjects/readme.md index 03f4074f..5cc9fc03 100644 --- a/test/TestProjects/readme.md +++ b/test/TestProjects/readme.md @@ -1,8 +1,21 @@ # Tests AutoRest Configuration ``` yaml -use: $(this-folder)/../../ +require: $(this-folder)/../../readme.md output-folder: $(this-folder)/$(title) clear-output-folder: false -include-csproj: true +``` + +``` yaml +pipeline: + csharpproj: + input: modelerfour/identity + csharpproj/emitter: + input: csharpproj + scope: output-scope + csharpproj/emitter/command: + input: + - csharpgen/emitter + - csharpproj/emitter + run: dotnet build $(title).csproj --verbosity quiet /nologo ``` \ No newline at end of file diff --git a/test/TestServerProjects/additionalProperties/CodeModel.yaml b/test/TestServerProjects/additionalProperties/CodeModel.yaml index f4359565..d1ef3e34 100644 --- a/test/TestServerProjects/additionalProperties/CodeModel.yaml +++ b/test/TestServerProjects/additionalProperties/CodeModel.yaml @@ -273,7 +273,7 @@ schemas: ! language: ! default: name: Dictionary of string - description: Dictionary of + description: Dictionary of protocol: ! {} immediate: - *ref_4 @@ -413,14 +413,14 @@ schemas: ! language: ! default: name: Dictionary of number - description: Dictionary of + description: Dictionary of protocol: ! {} required: false serializedName: additionalProperties language: ! default: name: additionalProperties - description: Dictionary of + description: Dictionary of originalName: additionalProperties protocol: ! {} language: ! @@ -442,7 +442,7 @@ schemas: ! language: ! default: name: Dictionary of string - description: Dictionary of + description: Dictionary of protocol: ! {} immediate: - *ref_6 @@ -515,7 +515,7 @@ schemas: ! serializedName: '@odata.location' language: ! default: - name: odataLocation + name: OdataLocation description: '' originalName: '@odata.location' protocol: ! {} @@ -526,14 +526,14 @@ schemas: ! language: ! default: name: Dictionary of number - description: Dictionary of + description: Dictionary of protocol: ! {} required: false serializedName: additionalProperties language: ! default: name: additionalProperties - description: Dictionary of + description: Dictionary of originalName: additionalProperties protocol: ! {} language: ! diff --git a/test/TestServerProjects/additionalProperties/Generated/Models/PetAPInProperties.cs b/test/TestServerProjects/additionalProperties/Generated/Models/PetAPInProperties.cs index 4717afa7..c8c3f201 100644 --- a/test/TestServerProjects/additionalProperties/Generated/Models/PetAPInProperties.cs +++ b/test/TestServerProjects/additionalProperties/Generated/Models/PetAPInProperties.cs @@ -13,7 +13,7 @@ namespace additionalProperties.Models public int Id { get; set; } public string Name { get; set; } public bool? Status { get; internal set; } - /// Dictionary of <components·schemas·petapinproperties·properties·additionalproperties·additionalproperties>. + /// Dictionary of <components·ruixpu·schemas·petapinproperties·properties·additionalproperties·additionalproperties>. public IDictionary AdditionalProperties { get; set; } } } diff --git a/test/TestServerProjects/additionalProperties/Generated/Models/PetAPInPropertiesWithAPString.cs b/test/TestServerProjects/additionalProperties/Generated/Models/PetAPInPropertiesWithAPString.cs index 1690de35..6b88a822 100644 --- a/test/TestServerProjects/additionalProperties/Generated/Models/PetAPInPropertiesWithAPString.cs +++ b/test/TestServerProjects/additionalProperties/Generated/Models/PetAPInPropertiesWithAPString.cs @@ -15,7 +15,7 @@ namespace additionalProperties.Models public string Name { get; set; } public bool? Status { get; internal set; } public string OdataLocation { get; set; } - /// Dictionary of <components·schemas·petapinproperties·properties·additionalproperties·additionalproperties>. + /// Dictionary of <components·ruixpu·schemas·petapinproperties·properties·additionalproperties·additionalproperties>. public IDictionary AdditionalProperties { get; set; } private readonly IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); /// diff --git a/test/TestServerProjects/body-array/CodeModel.yaml b/test/TestServerProjects/body-array/CodeModel.yaml index bcbdddd7..a08f8155 100644 --- a/test/TestServerProjects/body-array/CodeModel.yaml +++ b/test/TestServerProjects/body-array/CodeModel.yaml @@ -109,7 +109,7 @@ schemas: ! language: ! default: name: Dictionary of string - description: Dictionary of + description: Dictionary of protocol: ! {} choices: - ! &ref_2 diff --git a/test/TestServerProjects/body-complex/CodeModel.yaml b/test/TestServerProjects/body-complex/CodeModel.yaml index 7607b620..edfe3bc6 100644 --- a/test/TestServerProjects/body-complex/CodeModel.yaml +++ b/test/TestServerProjects/body-complex/CodeModel.yaml @@ -698,13 +698,13 @@ schemas: ! language: ! default: name: Dictionary of string - description: Dictionary of + description: Dictionary of protocol: ! {} serializedName: defaultProgram language: ! default: name: defaultProgram - description: Dictionary of + description: Dictionary of originalName: defaultProgram protocol: ! {} language: ! diff --git a/test/TestServerProjects/body-complex/Generated/Models/DictionaryWrapper.cs b/test/TestServerProjects/body-complex/Generated/Models/DictionaryWrapper.cs index 2a711001..55389239 100644 --- a/test/TestServerProjects/body-complex/Generated/Models/DictionaryWrapper.cs +++ b/test/TestServerProjects/body-complex/Generated/Models/DictionaryWrapper.cs @@ -10,7 +10,7 @@ namespace body_complex.Models /// The dictionary-wrapper. public partial class DictionaryWrapper { - /// Dictionary of <components·schemas·dictionary_wrapper·properties·defaultprogram·additionalproperties>. + /// Dictionary of <components·1h82ak4·schemas·dictionary_wrapper·properties·defaultprogram·additionalproperties>. public IDictionary DefaultProgram { get; set; } } } diff --git a/test/TestServerProjects/body-dictionary/CodeModel.yaml b/test/TestServerProjects/body-dictionary/CodeModel.yaml index 087518b1..5d3325f7 100644 --- a/test/TestServerProjects/body-dictionary/CodeModel.yaml +++ b/test/TestServerProjects/body-dictionary/CodeModel.yaml @@ -127,7 +127,7 @@ schemas: ! language: ! default: name: Dictionary of string - description: Dictionary of + description: Dictionary of protocol: ! {} - ! &ref_28 type: dictionary @@ -338,7 +338,7 @@ schemas: ! protocol: ! {} language: ! default: - name: DictionaryOfpaths·dictionary-array-null·get·responses·200·content·application-json·schema·additionalproperties + name: DictionaryOfpaths·1y9iid6·dictionary-array-null·get·responses·200·content·application-json·schema·additionalproperties description: a null array protocol: ! {} - ! &ref_52 @@ -356,7 +356,7 @@ schemas: ! protocol: ! {} language: ! default: - name: DictionaryOfpaths·dictionary-array-empty·get·responses·200·content·application-json·schema·additionalproperties + name: DictionaryOfpaths·afa1hv·dictionary-array-empty·get·responses·200·content·application-json·schema·additionalproperties description: 'An empty dictionary {}' protocol: ! {} - ! &ref_53 @@ -383,7 +383,7 @@ schemas: ! protocol: ! {} language: ! default: - name: DictionaryOfpaths·dictionary-array-valid·put·requestbody·content·application-json·schema·additionalproperties + name: DictionaryOfpaths·1dxz488·dictionary-array-valid·put·requestbody·content·application-json·schema·additionalproperties description: 'An array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", "9"]}' protocol: ! {} - ! &ref_55 diff --git a/test/TestServerProjects/body-dictionary/Generated/Operations/DictionaryOperations.cs b/test/TestServerProjects/body-dictionary/Generated/Operations/DictionaryOperations.cs index 43d90b80..03204374 100644 --- a/test/TestServerProjects/body-dictionary/Generated/Operations/DictionaryOperations.cs +++ b/test/TestServerProjects/body-dictionary/Generated/Operations/DictionaryOperations.cs @@ -4537,7 +4537,7 @@ namespace body_dictionary return message; } /// Put An array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", "9"]}. - /// The DictionaryOfpaths·dictionary-array-valid·put·requestbody·content·application-json·schema·additionalproperties to use. + /// The DictionaryOfpaths·1dxz488·dictionary-array-valid·put·requestbody·content·application-json·schema·additionalproperties to use. /// The cancellation token to use. public async ValueTask PutArrayValidAsync(IDictionary> arrayBody, CancellationToken cancellationToken = default) { @@ -4567,7 +4567,7 @@ namespace body_dictionary } } /// Put An array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", "9"]}. - /// The DictionaryOfpaths·dictionary-array-valid·put·requestbody·content·application-json·schema·additionalproperties to use. + /// The DictionaryOfpaths·1dxz488·dictionary-array-valid·put·requestbody·content·application-json·schema·additionalproperties to use. /// The cancellation token to use. public Response PutArrayValid(IDictionary> arrayBody, CancellationToken cancellationToken = default) { diff --git a/test/TestServerProjects/model-flattening/CodeModel.yaml b/test/TestServerProjects/model-flattening/CodeModel.yaml index 3b6bc872..067b4f8e 100644 --- a/test/TestServerProjects/model-flattening/CodeModel.yaml +++ b/test/TestServerProjects/model-flattening/CodeModel.yaml @@ -241,13 +241,13 @@ schemas: ! language: ! default: name: Dictionary of string - description: Dictionary of + description: Dictionary of protocol: ! {} serializedName: tags language: ! default: name: tags - description: Dictionary of + description: Dictionary of originalName: tags protocol: ! {} - ! @@ -620,7 +620,7 @@ schemas: ! serializedName: '@odata.value' language: ! default: - name: odataValue + name: OdataValue description: URL value. originalName: '@odata.value' protocol: ! {} @@ -726,7 +726,7 @@ schemas: ! serializedName: '@odata.value' language: ! default: - name: odataValue + name: OdataValue description: URL value. originalName: '@odata.value' protocol: ! {} @@ -761,7 +761,7 @@ schemas: ! serializedName: '@odata.value' language: ! default: - name: odataValue + name: OdataValue description: URL value. originalName: '@odata.value' protocol: ! {} diff --git a/test/TestServerProjects/model-flattening/Generated/Models/Resource.cs b/test/TestServerProjects/model-flattening/Generated/Models/Resource.cs index 55fd7d37..aeb9c7e0 100644 --- a/test/TestServerProjects/model-flattening/Generated/Models/Resource.cs +++ b/test/TestServerProjects/model-flattening/Generated/Models/Resource.cs @@ -14,7 +14,7 @@ namespace model_flattening.Models public string Id { get; internal set; } /// Resource Type. public string Type { get; internal set; } - /// Dictionary of <components·schemas·resource·properties·tags·additionalproperties>. + /// Dictionary of <components·13oyrf9·schemas·resource·properties·tags·additionalproperties>. public IDictionary Tags { get; set; } /// Resource Location. public string Location { get; set; } diff --git a/test/TestServerProjects/readme.tests.md b/test/TestServerProjects/readme.tests.md index 6577429d..70c66264 100644 --- a/test/TestServerProjects/readme.tests.md +++ b/test/TestServerProjects/readme.tests.md @@ -1,8 +1,21 @@ # Tests AutoRest Configuration ``` yaml -require: $(this-folder)/../readme.md +require: $(this-folder)/../../readme.md output-folder: $(this-folder)/$(title) clear-output-folder: true -include-csproj: true +``` + +``` yaml +pipeline: + csharpproj: + input: modelerfour/identity + csharpproj/emitter: + input: csharpproj + scope: output-scope + csharpproj/emitter/command: + input: + - csharpgen/emitter + - csharpproj/emitter + run: dotnet build $(title).csproj --verbosity quiet /nologo ``` \ No newline at end of file diff --git a/test/TestServerProjects/xml-service/CodeModel.yaml b/test/TestServerProjects/xml-service/CodeModel.yaml index d8958a45..1d8d3c43 100644 --- a/test/TestServerProjects/xml-service/CodeModel.yaml +++ b/test/TestServerProjects/xml-service/CodeModel.yaml @@ -903,14 +903,14 @@ schemas: ! language: ! default: name: Dictionary of string - description: Dictionary of + description: Dictionary of protocol: ! {} required: false serializedName: Metadata language: ! default: name: Metadata - description: Dictionary of + description: Dictionary of originalName: Metadata protocol: ! {} language: ! @@ -2390,7 +2390,7 @@ schemas: ! language: ! default: name: Metadata - description: Dictionary of + description: Dictionary of originalName: Metadata protocol: ! {} serialization: diff --git a/test/TestServerProjects/xml-service/Generated/Models/Blob.cs b/test/TestServerProjects/xml-service/Generated/Models/Blob.cs index 32ad6b6c..e72cc180 100644 --- a/test/TestServerProjects/xml-service/Generated/Models/Blob.cs +++ b/test/TestServerProjects/xml-service/Generated/Models/Blob.cs @@ -15,7 +15,7 @@ namespace xml_service.Models public string Snapshot { get; set; } /// Properties of a blob. public BlobProperties Properties { get; set; } = new BlobProperties(); - /// Dictionary of <paths·xml-headers·get·responses·200·headers·custom_header·schema>. + /// Dictionary of <paths·1uz2c5v·xml-headers·get·responses·200·headers·custom_header·schema>. public IDictionary Metadata { get; set; } } } diff --git a/test/TestServerProjects/xml-service/Generated/Models/Container.cs b/test/TestServerProjects/xml-service/Generated/Models/Container.cs index 6a49eb51..41b18f17 100644 --- a/test/TestServerProjects/xml-service/Generated/Models/Container.cs +++ b/test/TestServerProjects/xml-service/Generated/Models/Container.cs @@ -13,7 +13,7 @@ namespace xml_service.Models public string Name { get; set; } /// Properties of a container. public ContainerProperties Properties { get; set; } = new ContainerProperties(); - /// Dictionary of <paths·xml-headers·get·responses·200·headers·custom_header·schema>. + /// Dictionary of <paths·1uz2c5v·xml-headers·get·responses·200·headers·custom_header·schema>. public IDictionary Metadata { get; set; } } }