enumUnknownDefaultCase property

bool enumUnknownDefaultCase
final

If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.

Default: false

Implementation

final bool enumUnknownDefaultCase;