Description
Right now if we deserialise a enum value which is not know we simply set the field to null
public enum Status {ON, OFF;} public class Engine { private Status status; } json: {"status": "BLABLA"}
What I found in the spec is the following paragraph:
Deserialization of a JSON value into an enum instance MUST be done by calling the enum’s valueOf(String) method.
And valueOf should throw an IllegalArgumentException.