Case Response Template case mismatch problem

The API indicates that value values for the ProviderType are enum (WATCHLIST, PASSPORT_CHECK) and for CaseEntityType are enum (INDIVIDUAL, ORGANISATION, VESSEL, UNKNOWN).

The YAML generated Java code creates a ProviderType.java class with the values of "WATCHLIST" and "PASSPORT_CHECK" and a CaseEntityType.java with values of "INDIVIDUAL", "ORGANISATION", "VESSEL", and "UNKNOWN".

The problem is that World Check is sending back values that are lower case. For example "watchlist" and "individual". That makes using the generated code problematic as "watchlist" isn't a valid provider type based on the API.

That means my code has to check for all different cases of enumerated values which is a mess.

Will the case returned be changing in the future or will there be an update YAML file with the correct case provided?

Answers