-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.Net: Prepare OpenAPI model collection properties to be modifiable. (#…
…9735) ### Motivation, Context and Description Currently, OpenAPI model classes use a read-only version of list and dictionary types as types for collection properties. This is sufficient for now, but it could become a breaking change later when they need to be modifiable. In that case, they will have to be changed to non-read-only types - specifically, IList<T> and IDictionary<TK, TV>. This PR changes all the collection properties to be modifiable by altering their types to IList<T> and IDictionary<TK, TV>. ~~The RestApiSecurityRequirement model class is not completely freezeable at the moment and needs to be refactored to implement the IDictionary interface instead of inheriting from Dictionary. This change will allow for intercepting mutation calls and throwing an exception if the class is frozen.~~ Contributes to: #6884
- Loading branch information
1 parent
e6413c3
commit 8da553d
Showing
19 changed files
with
753 additions
and
107 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
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
Oops, something went wrong.