v2: Make it easier to model OpenAPI tags as a hash set #1983
Labels
priority:p1
High priority but not blocking. Causes major but not critical loss of functionality SLA <=7days
Milestone
The OpenAPI specification states that:
To reflect this attribute, it would be great if we could model the top-level tags collection in to the document as a hash set of sorts. However, because it is currently modeled as an
IList
it is difficult to encode this uniqueness constraint in the source:OpenAPI.NET/src/Microsoft.OpenApi/Models/OpenApiDocument.cs
Line 74 in 47bf1eb
We should consider taking a breaking change to change the type to
ICollection
orIEnumerable
so that consumer can initialize aHashSet
to enforce the uniqueness constraint.The text was updated successfully, but these errors were encountered: