From 4724d8932475694633ba3603a2f454c6754e7a85 Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Tue, 20 Jun 2023 17:27:39 +0800 Subject: [PATCH] [Go] sql readme.go.md add directive (#24510) --- specification/sql/resource-manager/readme.go.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/sql/resource-manager/readme.go.md b/specification/sql/resource-manager/readme.go.md index c6115a6a53b6..1bbdb6637405 100644 --- a/specification/sql/resource-manager/readme.go.md +++ b/specification/sql/resource-manager/readme.go.md @@ -26,6 +26,14 @@ directive: - rename-model: from: 'SqlVulnerabilityAssessmentScanError' to: 'VulnerabilityAssessmentScanForSqlError' +- from: swagger-document + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}"].get.parameters[2] + transform: > + $["x-ms-enum"].name = "SQLVulnerabilityAssessmentName" +- from: swagger-document + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}"].get.parameters[3] + transform: > + $["x-ms-enum"].name = "SQLVulnerabilityAssessmentName" ``` ``` yaml $(go) && !$(track2)