Skip to content

Commit 7eb4c99

Browse files
fix typespec where property is not required (#33459)
* fix typespec where property is not required * add go config --------- Co-authored-by: judy.liu <[email protected]>
1 parent 359daec commit 7eb4c99

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

specification/chaos/Chaos.Management/target.models.tsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Microsoft.Chaos;
1717
/**
1818
* Model that represents a Target resource.
1919
*/
20-
model Target is Azure.ResourceManager.ProxyResource<Record<unknown>> {
20+
model Target is Azure.ResourceManager.ProxyResource<Record<unknown>, false> {
2121
...ResourceNameParameter<
2222
Resource = Target,
2323
KeyName = "targetName",

specification/chaos/Chaos.Management/tspconfig.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ options:
3434
clear-output-folder: true
3535
model-namespace: false
3636
namespace: "{package-dir}"
37+
"@azure-tools/typespec-go":
38+
service-dir: "sdk/resourcemanager/chaos"
39+
package-dir: "armchaos"
40+
module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}"
41+
fix-const-stuttering: true
42+
flavor: "azure"
43+
generate-samples: true
44+
generate-fakes: true
45+
head-as-boolean: true
46+
inject-spans: true
3747
linter:
3848
extends:
3949
- "@azure-tools/typespec-azure-rulesets/resource-manager"

specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-11-01-preview/openapi.json

+3
Original file line numberDiff line numberDiff line change
@@ -3589,6 +3589,9 @@
35893589
"description": "Azure resource location."
35903590
}
35913591
},
3592+
"required": [
3593+
"properties"
3594+
],
35923595
"allOf": [
35933596
{
35943597
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"

specification/chaos/resource-manager/Microsoft.Chaos/stable/2025-01-01/openapi.json

+3
Original file line numberDiff line numberDiff line change
@@ -2664,6 +2664,9 @@
26642664
"description": "Azure resource location."
26652665
}
26662666
},
2667+
"required": [
2668+
"properties"
2669+
],
26672670
"allOf": [
26682671
{
26692672
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"

0 commit comments

Comments
 (0)