Skip to content

Conversation

@sandwwraith
Copy link
Member

Check more potential places where conflict can occur during encoding:

  • from JsonNamingStrategy
  • from ALL_JSON_OBJECTS
  • from default polymorphic serializer

Allow regular polymorphic classes to be decoded with conflicting names because this is our behavior for sealed classes.

- from JsonNamingStrategy
- from ALL_JSON_OBJECTS
- from default polymorphic serializer

Changed the type of thrown exception to SerializationException because it is our contract for .encodeToString.

Stop recommending array polymorphism because it is outdated.
now it is allowed to have a conflicting name on deserialization, conflicts are reported only during encoding.
@sandwwraith
Copy link
Member Author

Related: #1664, #2885

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants