cardinalby / schema-validator-action

JSON Schema validator Action
MIT License
11 stars 2 forks source link

contentMediaType "image/jpeg" not supported #11

Open raiseandfall opened 2 months ago

raiseandfall commented 2 months ago

Hi there,

Thanks for the action, it's very useful. I'm getting an issue on contentMediaType though:

Error: Unknown contentMediaType: "image/jpeg" at #/some/path
Error: Failed because of schema error

contentMediaType was added in Draft07, which the action supports, so this is confusing. I tested the validation with other libs such as AJV, it's valid.

My schema piece:

"logo": {
    "title": "Logo",
    "type": "string",
    "contentEncoding": "base64",
    "contentMediaType": "image/jpeg",
    "pattern": "^(.*)$"
},

Thanks