@azure-tools/typespec-providerhub-controller 0.36.0-dev.1 → 0.36.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-providerhub-controller",
|
|
3
|
-
"version": "0.36.0-dev.
|
|
3
|
+
"version": "0.36.0-dev.2",
|
|
4
4
|
"description": "Azure TypeSpec ProviderHub service controller code generator",
|
|
5
5
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
6
6
|
"readme": "https://github.com/Azure/typespec-azure/blob/master/README.md",
|
|
@@ -11,7 +11,7 @@ namespace Microsoft.{{serviceName}}.Service.Models
|
|
|
11
11
|
{{> renderComment content=description}}
|
|
12
12
|
/// </summary>
|
|
13
13
|
{{/if}}
|
|
14
|
-
public struct {{name}}
|
|
14
|
+
public readonly partial struct {{name}}
|
|
15
15
|
{
|
|
16
16
|
public static readonly {{name}} {{#each values as |value valueIndex|}}{{value.name}} = "{{#if value.value}}{{value.value}}{{else}}{{value.name}}{{/if}}"{{#if @last}};{{else}},{{/if}} {{/each}}
|
|
17
17
|
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
4
|
// <auto-generated />
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
using Microsoft.TypeSpec.ProviderHub.Controller;
|
|
7
|
+
using Newtonsoft.Json;
|
|
7
8
|
|
|
8
9
|
namespace {{nameSpace}}.Service.Models
|
|
9
10
|
{
|
|
@@ -13,7 +14,7 @@ namespace {{nameSpace}}.Service.Models
|
|
|
13
14
|
/// </summary>
|
|
14
15
|
{{/if}}
|
|
15
16
|
[JsonConverter(typeof(EnumJsonConverter<{{name}}>))]
|
|
16
|
-
public struct {{name}}
|
|
17
|
+
public readonly partial struct {{name}}
|
|
17
18
|
{
|
|
18
19
|
public static readonly {{name}} {{#each values as |value valueIndex|}}{{value.name}} = "{{#if value.value}}{{value.value}}{{else}}{{value.name}}{{/if}}"{{#if @last}};{{else}}, {{/if}}{{/each}}
|
|
19
20
|
|