File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
sdk/search/Azure.Search.Documents/src Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ input-file:
1414 - https://github.com/Azure/azure-rest-api-specs/blob/d850f41f89530917000d8e6bb463f42bb745b930/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchindex.json
1515 - https://github.com/Azure/azure-rest-api-specs/blob/d850f41f89530917000d8e6bb463f42bb745b930/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchservice.json
1616generation1-convenience-client : true
17- modelerfour :
18- seal-single-value-enum-by-default : true
1917` ` `
2018
2119## Release hacks
@@ -300,6 +298,7 @@ directive:
300298 required: true,
301299 type: "string",
302300 enum: [ accept ],
301+ "x-ms-enum": { "modelAsString": false },
303302 "x-ms-parameter-location": "method"
304303 });
305304 }
@@ -332,3 +331,17 @@ directive:
332331 where: $.parameters.ClientRequestIdParameter
333332 transform: $["x-ms-parameter-location"] = "client";
334333` ` `
334+
335+ # # Seal single value enums
336+
337+ Prevents the creation of single-value extensible enum in generated code. The following single-value enum will be generated as string constant.
338+
339+ ` ` ` yaml
340+ directive:
341+ from: swagger-document
342+ where: $.parameters.PreferHeaderParameter
343+ transform: >
344+ $["x-ms-enum"] = {
345+ "modelAsString": false
346+ }
347+ ` ` `
You can’t perform that action at this time.
0 commit comments