Closed amoskopp closed 7 years ago
Just to add why I think this PR is appropriate: I suspect that without a regex in the schema, people are going to validate media types using something like \w+/\w+
– which is simple, but wrong.
@nmoskopp Thanks!
Add a regular expression that validates against (current and possible) internet media types. This is not an enum because future media types might exist. The regex might look a bit weird because of JSON escaping rules.