-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adds support for deserialization of composed types #1603
Conversation
fed80d0
to
a434cc8
Compare
b435ae8
to
8a3489b
Compare
99b09fb
to
2e0179a
Compare
2e0179a
to
17a2660
Compare
b2a5eb3
to
1c8f8b2
Compare
d2a8dae
to
af2e08f
Compare
75949b0
to
81ae9ec
Compare
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
…erty and interfaces
4ce88a7
to
60a26fc
Compare
src/Kiota.Builder/OpenApiExtensions/OpenApiEnumValuesDescriptionExtension.cs
Outdated
Show resolved
Hide resolved
if(entry.Value.AllOf != null) | ||
foreach(var allOfEntry in entry.Value.AllOf.Where(static x => !string.IsNullOrEmpty(x.Reference?.Id))) { | ||
var dependents = inheritanceIndex.GetOrAdd(allOfEntry.Reference.Id, new ConcurrentDictionary<string, bool>(StringComparer.OrdinalIgnoreCase)); | ||
dependents.TryAdd(entry.Key, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm, the reason we have dummy values is because we do not have a data structure like a ConcurrentHashSet
in the .Net Api? Otherwise, there would be no need for the dummy false
values. Yes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct, the general recommendation is to use a concurrent dictionary instead.
LGTM |
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Kudos, SonarCloud Quality Gate passed! |
fixes #1411