-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ordering bug for OneOf processing (#4320)
* Removed unused field * Allow AsSlice() to be used from a ReadonlyTypeSet * Code gardening * Ensure OneOf merging is not order sensitive * Add test for new case * Add new test helper * Code formatting
- Loading branch information
1 parent
e47cea2
commit fee7fed
Showing
7 changed files
with
202 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...data/TestConversionOfAllOf_WhenContainingOneOf_ReturnsExpectedResult/structure.txt.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
github.com/Azure/azure-service-operator/testing/person/v20200101 | ||
---------------------------------------------------------------- | ||
Clusters_Database: Resource | ||
├── Spec: Object (2 properties) | ||
│ ├── Flag 0: oneof | ||
│ ├── ReadOnlyFollowing: *ReadOnlyFollowingDatabase | ||
│ └── ReadWrite: *ReadWriteDatabase | ||
└── Status: Object (0 properties) | ||
Database: Object (2 properties) | ||
├── Flag 0: oneof | ||
├── ReadOnlyFollowing: *ReadOnlyFollowingDatabase | ||
└── ReadWrite: *ReadWriteDatabase | ||
ReadOnlyFollowingDatabase: Object (5 properties) | ||
├── DatabaseShareOrigin: string | ||
├── HotCachePeriod: string | ||
├── Kind: Enum (1 value) | ||
│ └── ReadOnlyFollowingDatabase | ||
├── Location: string | ||
└── Name: Validated<string> (1 rule) | ||
└── Rule 0: MaxLength: 96 | ||
ReadWriteDatabase: Object (5 properties) | ||
├── HotCachePeriod: string | ||
├── KeyVaultURL: string | ||
├── Kind: Enum (1 value) | ||
│ └── ReadWriteDatabase | ||
├── Location: string | ||
└── Name: Validated<string> (1 rule) | ||
└── Rule 0: MaxLength: 96 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters