matches method

bool matches(
  1. OpenApiContentType contentType
)

Implementation

bool matches(OpenApiContentType contentType) {
  // TODO we should probably support wildcards, ignore encodings, etc.
  return this.contentType == contentType.contentType;
}