strikt-spring / strikt.spring / strikt.api.Assertion.Builder / isCompatibleWith

isCompatibleWith

infix fun <T : MediaType?> Builder<T>.isCompatibleWith(expected: MediaType): Builder<MediaType>

Asserts that the subject is compatible with expected.

For example, a subject of application/json;charset=UTF-8 is compatiblewith the media type application/json, but not with the media type application/x-yaml.