Skip to content

Commit ac018de

Browse files
authored
fix: bump plugin dep to a version that handles null or empty arrays (#28)
1 parent d3cb65e commit ac018de

7 files changed

Lines changed: 17 additions & 17 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.8.1
1818
github.com/google/uuid v1.6.0
1919
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.17
20-
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.21
20+
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.26
2121
github.com/segmentio/ksuid v1.0.4
2222
github.com/stretchr/testify v1.11.1
2323
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ github.com/platform-engineering-labs/formae/pkg/model v0.1.6 h1:5Ao8Kog2tpTD4Om7
9090
github.com/platform-engineering-labs/formae/pkg/model v0.1.6/go.mod h1:XmGJA7jNPX9cEGc8TxTiEDitBuEVJOddNakdTZ/bH4U=
9191
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.17 h1:AlCp4GsJyLiklxpISC1xUkiiomLY11GAPSmwqk6MbwE=
9292
github.com/platform-engineering-labs/formae/pkg/plugin v0.1.17/go.mod h1:+XUcaYuB32RrS0Fm2ZfX8rXRTbzYKRjqK/92fP72m6E=
93-
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.21 h1:H117sydtz0RG1eIMLTb+1QW6IpwxdJSK/lic/fiXKS4=
94-
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.21/go.mod h1:GbypGizmbHw2Tl6TvLPuu3v7CqOmKZxIMx+NMgUvUkw=
93+
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.26 h1:HeYcuG66vIMb5nqvq+5LEhSdfcX2wCu/bU/cGWJIuzE=
94+
github.com/platform-engineering-labs/formae/pkg/plugin-conformance-tests v0.1.26/go.mod h1:5Y08dm8oj8gpgKkCDEzI3ZVtjp4eFvKQlkRjBsN9qBo=
9595
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
9696
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
9797
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU=

schema/pkl/authorization/roleassignment.pkl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ typealias PrincipalType = "User"|"Group"|"ServicePrincipal"|"ForeignGroup"|"Devi
3636
open class RoleAssignment extends formae.Resource {
3737

3838
/// Role assignment name (must be a UUID). If omitted, one is generated automatically.
39-
@azure.FieldHint { createOnly = true }
39+
@azure.FieldHint { createOnly = true; hasProviderDefault = true }
4040
name: String(length >= 1)?
4141

4242
/// The scope at which the role assignment is created.

schema/pkl/containerregistry/registry.pkl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ open class Registry extends formae.Resource {
5858
sku: RegistrySKU
5959

6060
// Optional properties
61-
@azure.FieldHint {}
61+
@azure.FieldHint { hasProviderDefault = true }
6262
adminUserEnabled: Boolean?
6363

64-
@azure.FieldHint {}
64+
@azure.FieldHint { hasProviderDefault = true }
6565
publicNetworkAccess: String?
6666

67-
@azure.FieldHint {}
67+
@azure.FieldHint { hasProviderDefault = true }
6868
zoneRedundancy: String?
6969

7070
@azure.FieldHint { outputField = "Tags"; updateMethod = "EntitySet"; indexField = "Key" }

schema/pkl/keyvault/vault.pkl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ open class Vault extends formae.Resource {
142142
@azure.FieldHint {}
143143
accessPolicies: Listing<AccessPolicyEntry>?
144144

145-
@azure.FieldHint {}
145+
@azure.FieldHint { hasProviderDefault = true }
146146
enabledForDeployment: Boolean?
147147

148-
@azure.FieldHint {}
148+
@azure.FieldHint { hasProviderDefault = true }
149149
enabledForDiskEncryption: Boolean?
150150

151-
@azure.FieldHint {}
151+
@azure.FieldHint { hasProviderDefault = true }
152152
enabledForTemplateDeployment: Boolean?
153153

154154
@azure.FieldHint {}
@@ -160,7 +160,7 @@ open class Vault extends formae.Resource {
160160
@azure.FieldHint {}
161161
enablePurgeProtection: Boolean?
162162

163-
@azure.FieldHint {}
163+
@azure.FieldHint { hasProviderDefault = true }
164164
enableRbacAuthorization: Boolean?
165165

166166
@azure.FieldHint {}

schema/pkl/network/publicipaddress.pkl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ open class PublicIPAddress extends formae.Resource {
7575
publicIPAllocationMethod: IPAllocationMethod
7676

7777
// Optional properties
78-
@azure.FieldHint {}
78+
@azure.FieldHint { hasProviderDefault = true }
7979
publicIPAddressVersion: IPVersion?
8080

81-
@azure.FieldHint {}
81+
@azure.FieldHint { hasProviderDefault = true }
8282
idleTimeoutInMinutes: Int(this >= 4 && this <= 30)?
8383

8484
@azure.FieldHint {}

schema/pkl/storage/storageaccount.pkl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ open class StorageAccount extends formae.Resource {
6767
kind: StorageAccountKind
6868

6969
// Optional properties
70-
@azure.FieldHint {}
70+
@azure.FieldHint { hasProviderDefault = true }
7171
accessTier: AccessTier?
7272

73-
@azure.FieldHint {}
73+
@azure.FieldHint { hasProviderDefault = true }
7474
enableHttpsTrafficOnly: Boolean?
7575

76-
@azure.FieldHint {}
76+
@azure.FieldHint { hasProviderDefault = true }
7777
minimumTlsVersion: String?
7878

79-
@azure.FieldHint {}
79+
@azure.FieldHint { hasProviderDefault = true }
8080
allowBlobPublicAccess: Boolean?
8181

8282
@azure.FieldHint { outputField = "Tags"; updateMethod = "EntitySet"; indexField = "Key" }

0 commit comments

Comments
 (0)