FasterXML / FasterXML/jackson-module-jsonSchema

Support for "media" property

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
387
Forks
136
PR merge metrics
No merged PRs in 30d

Description

[Section 4.3](http://json-schema.org/latest/json-schema-hypermedia.html#anchor10) of the JSON Schema specification mentions the `media` property, which is used to give additional hints about the semantics of non-JSON data that is encoded as a JSON string. For example:

``` json
{
"type": "string",
"media": {
"binaryEncoding": "base64",
"type": "image/png"
}
}
```

I think an annotation of some sort might help perhaps. The serializer can check to see if an annotation is present on that property and if so, it can generate the `media` property.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.