menes-dotnet/Menes

Need to support wildcards in the OpenAPI media type keys

mwadams opened this issue · 0 comments

KeyValuePair<string, OpenApiMediaType> responseContent = response.Content.First(c => this.openApiResult.Results.ContainsKey(c.Key));

While the request will come in with a concrete media type to match, our supported media types may include wildcards (e.g. image/jpg in the request and image/* in the OpenAPI definition.