From 0a0f5c788389879c929e7c6d1b314c8e2f6b941a Mon Sep 17 00:00:00 2001 From: Dhawal Jain <41853104+dhawal777@users.noreply.github.com> Date: Thu, 19 Nov 2020 06:19:21 +0530 Subject: [PATCH] Specifying shipping address required property to autorest. (#11717) * Ensuring autorest generation follow specific order of required properties in shippingAddress * added details sharp yaml --- specification/databox/resource-manager/readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/databox/resource-manager/readme.md b/specification/databox/resource-manager/readme.md index 88bd4002d480..532f31b614f9 100644 --- a/specification/databox/resource-manager/readme.md +++ b/specification/databox/resource-manager/readme.md @@ -106,6 +106,12 @@ csharp: payload-flattening-threshold: 2 output-folder: $(csharp-sdks-folder)/databox/Microsoft.Azure.Management.DataBox/src/Generated clear-output-folder: true + +directive: +- from: swagger-document + where: $.definitions.ShippingAddress + transform: > + $.required = [ "streetAddress1", "country", "postalCode" ]; ``` ## Python