The current implementation of the GetDisplayName method in src/MiniValidation/TypeDetailsCache.cs puts the display name inside the cache. This is an issue because, if we make requests with different culture, the ResourceManager isn't used anymore and so we always get the localized display name corresponding to the language of the first request.
This PR moves GetDisplayName out of TypeDetailsCache.cs, so the the display name is retrieved for every request, solving the localization problem.
The current implementation of the GetDisplayName method in src/MiniValidation/TypeDetailsCache.cs puts the display name inside the cache. This is an issue because, if we make requests with different culture, the ResourceManager isn't used anymore and so we always get the localized display name corresponding to the language of the first request.
This PR moves GetDisplayName out of TypeDetailsCache.cs, so the the display name is retrieved for every request, solving the localization problem.