smithy-lang / smithy-kotlin

Smithy code generator for Kotlin (in development)
Apache License 2.0
77 stars 26 forks source link

fix: ignore __type field when deserializing unions in json protocols #956

Closed 0marperez closed 11 months ago

0marperez commented 11 months ago

Issue \

closes aws-sdk-kotlin#1044

Description of changes

-Added a flag for JSON protocols -Added a __type to union object descriptors -Ignoring __type unless it's member explicitly in union shape

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

sonarcloud[bot] commented 11 months ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 9 Code Smells

No Coverage information No Coverage information
71.8% 71.8% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint