JSON.Net JsonSchemaGenerator を使用してオブジェクトの JSON スキーマを生成する場合:
Public Class Host
Public Property uid() As String
End Class
type プロパティを文字列の配列として生成します。
{
"type": "object",
"properties": {
"uid": {
"required": true,
"type": [
"string",
"null"
]
}
}
}
適切な JSON スキーマは次のようになります。
{
"type": "object",
"properties": {
"uid": {
"required": true,
"type": "string"
}
}
}
誰もこれを見たことがありますか?