@@ -6,7 +6,7 @@ These settings apply only when `--go` is specified on the command line.
66go : true
77version : " ^3.0.0"
88input-file :
9- - https://github.com/Azure/azure-rest-api-specs/blob/e01d8afe9be7633ed36db014af16d47fec01f737 /specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/1.0 /appconfiguration.json
9+ - https://github.com/Azure/azure-rest-api-specs/blob/1d5799e57a1bbe66a86afc246d363d8163625b45 /specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2023-10-01 /appconfiguration.json
1010- appconfiguration_ext.json
1111license-header : MICROSOFT_MIT_NO_VERSION
1212clear-output-folder : false
@@ -15,56 +15,18 @@ output-folder: generated
1515openapi-type : " data-plane"
1616security : " AADToken"
1717use : " @autorest/go@4.0.0-preview.51"
18+ modelerfour :
19+ lenient-model-deduplication : true
1820` ` `
1921
20- ### Fix up enums
21-
22- ` ` ` yaml
22+ ### Fix up parameter names
23+ ` ` ` yaml
2324directive :
25+ # Directive renaming "KeyValueFields" value to "SettingFields".
2426- from : swagger-document
25- where : $.paths./kv
26- transform : >
27- $.get.parameters[6].items["x-ms-enum"] = {
28- "name": "SettingFields",
29- "modelAsString": true
30- };
31- $.head.parameters[6].items["x-ms-enum"] = {
32- "name": "SettingFields",
33- "modelAsString": true
34- };
35- - from : swagger-document
36- where : $.paths./kv/{key}
27+ where : ' $.parameters.KeyValueFields.items.x-ms-enum'
3728 transform : >
38- $.get.parameters[7].items["x-ms-enum"] = {
39- "name": "SettingFields",
40- "modelAsString": true
41- };
42- $.head.parameters[7].items["x-ms-enum"] = {
43- "name": "SettingFields",
44- "modelAsString": true
45- };
46- - from : swagger-document
47- where : $.paths./labels
48- transform : >
49- $.get.parameters[5].items["x-ms-enum"] = {
50- "name": "LabelFields",
51- "modelAsString": true
52- };
53- $.head.parameters[5].items["x-ms-enum"] = {
54- "name": "LabelFields",
55- "modelAsString": true
56- };
57- - from : swagger-document
58- where : $.paths./revisions
59- transform : >
60- $.get.parameters[6].items["x-ms-enum"] = {
61- "name": "SettingFields",
62- "modelAsString": true
63- };
64- $.head.parameters[6].items["x-ms-enum"] = {
65- "name": "SettingFields",
66- "modelAsString": true
67- };
29+ $["name"] = "SettingFields";
6830` ` `
6931
7032### Fix up pagers
@@ -80,4 +42,4 @@ directive:
8042 return $.
8143 replace(/urlPath\s+:=\s+"\/\{nextLink\}"/, "urlPath := nextLink").
8244 replace(/\s+urlPath\s+=\s+strings\.ReplaceAll\(urlPath, "\{nextLink\}", nextLink\)/, "");
83- ` ` `
45+ ` ` `
0 commit comments