Skip to content

Commit ce1652f

Browse files
Improve diagnostics from TypeTransformers (#4937)
* Add tests * Fix wrong check called * Code gardening * Require full match from TypeMatcher * Fix ineffective property removal of CustomerManagedKeyStatus * Add ignore for generator with default name
1 parent f0edd0f commit ce1652f

30 files changed

+161
-152
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,4 @@ hack/tools
8484
v2/controller
8585
v2/cmd/asoctl/asoctl
8686
v2/tools/generator/aso-gen
87+
v2/tools/generator/generator

v2/api/documentdb/v1api20210515/storage/database_account_types_gen.go

Lines changed: 0 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v2/api/documentdb/v1api20231115/arm/database_account_spec_types_gen.go

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v2/api/documentdb/v1api20231115/arm/database_account_spec_types_gen_test.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v2/api/documentdb/v1api20231115/arm/structure.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ DatabaseAccount_Spec: Object (6 properties)
208208
│ └── "Parse"
209209
├── Location: *string
210210
├── Name: string
211-
├── Properties: *Object (31 properties)
211+
├── Properties: *Object (30 properties)
212212
│ ├── AnalyticalStorageConfiguration: *Object (1 property)
213213
│ │ └── SchemaType: *Enum (2 values)
214214
│ │ ├── "FullFidelity"
@@ -281,7 +281,6 @@ DatabaseAccount_Spec: Object (6 properties)
281281
│ ├── CreateMode: *Enum (2 values)
282282
│ │ ├── "Default"
283283
│ │ └── "Restore"
284-
│ ├── CustomerManagedKeyStatus: *string
285284
│ ├── DatabaseAccountOfferType: *Enum (1 value)
286285
│ │ └── "Standard"
287286
│ ├── DefaultIdentity: *string

v2/api/documentdb/v1api20231115/database_account_types_gen.go

Lines changed: 0 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v2/api/documentdb/v1api20231115/database_account_types_gen_test.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v2/api/documentdb/v1api20231115/storage/database_account_types_gen.go

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v2/api/documentdb/v1api20231115/storage/database_account_types_gen_test.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v2/api/documentdb/v1api20231115/storage/structure.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ APIVersion: Enum (1 value)
66

77
DatabaseAccount: Resource
88
├── Owner: resources/v1apiv20191001.ResourceGroup
9-
├── Spec: Object (40 properties)
9+
├── Spec: Object (39 properties)
1010
│ ├── AnalyticalStorageConfiguration: *Object (2 properties)
1111
│ │ ├── PropertyBag: genruntime.PropertyBag
1212
│ │ └── SchemaType: *string
@@ -60,7 +60,6 @@ DatabaseAccount: Resource
6060
│ │ ├── MaxAgeInSeconds: *int
6161
│ │ └── PropertyBag: genruntime.PropertyBag
6262
│ ├── CreateMode: *string
63-
│ ├── CustomerManagedKeyStatus: *string
6463
│ ├── DatabaseAccountOfferType: *string
6564
│ ├── DefaultIdentity: *string
6665
│ ├── DisableKeyBasedMetadataWriteAccess: *bool

0 commit comments

Comments
 (0)