FasterXML / FasterXML/jackson-module-jsonSchema

Support for "media" property

未關閉
#65 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Java
星號
387
分支
136
PR 合併指標
30 天內沒有已合併 PR

描述

[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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。