From 5f81e1bdb315630a90262e752946b534236e32c8 Mon Sep 17 00:00:00 2001 From: Badea Marjieh <127952241+badeamarjieh@users.noreply.github.com> Date: Mon, 12 Aug 2024 11:05:36 +0300 Subject: [PATCH] Fabric Capacity - Update Properties To Be Required (#30036) * :q * update tspconfig.taml --------- Co-authored-by: Dapeng Zhang --- .../fabric/Microsoft.Fabric.Management/capacity.tsp | 2 +- .../fabric/Microsoft.Fabric.Management/tspconfig.yaml | 6 +++++- .../Microsoft.Fabric/stable/2023-11-01/fabric.json | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/specification/fabric/Microsoft.Fabric.Management/capacity.tsp b/specification/fabric/Microsoft.Fabric.Management/capacity.tsp index f73d36cb61bf..c2f4407acd4e 100644 --- a/specification/fabric/Microsoft.Fabric.Management/capacity.tsp +++ b/specification/fabric/Microsoft.Fabric.Management/capacity.tsp @@ -12,7 +12,7 @@ using Azure.ResourceManager; namespace Microsoft.Fabric; /** Fabric Capacity resource */ -model FabricCapacity is TrackedResource { +model FabricCapacity is TrackedResource { @doc("The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum of 63.") @maxLength(63) @minLength(3) diff --git a/specification/fabric/Microsoft.Fabric.Management/tspconfig.yaml b/specification/fabric/Microsoft.Fabric.Management/tspconfig.yaml index 177cb0aa85f7..cb2d82015e8d 100644 --- a/specification/fabric/Microsoft.Fabric.Management/tspconfig.yaml +++ b/specification/fabric/Microsoft.Fabric.Management/tspconfig.yaml @@ -1,3 +1,6 @@ +parameters: + "service-dir": + default: "sdk/fabric" emit: - "@azure-tools/typespec-autorest" options: @@ -12,8 +15,9 @@ options: examples-directory: "{project-root}/examples" "@azure-tools/typespec-csharp": flavor: azure + package-dir: "Azure.ResourceManager.Fabric" clear-output-folder: true - namespace: "Azure.ResourceManager.Fabric" + namespace: "{package-dir}" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/fabric/resource-manager/Microsoft.Fabric/stable/2023-11-01/fabric.json b/specification/fabric/resource-manager/Microsoft.Fabric/stable/2023-11-01/fabric.json index 394051baa773..f9be285b9349 100644 --- a/specification/fabric/resource-manager/Microsoft.Fabric/stable/2023-11-01/fabric.json +++ b/specification/fabric/resource-manager/Microsoft.Fabric/stable/2023-11-01/fabric.json @@ -717,6 +717,7 @@ } }, "required": [ + "properties", "sku" ], "allOf": [