Skip to content

Instantly share code, notes, and snippets.

@toshia
Last active November 4, 2018 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toshia/fba0a1a018a7c6521714178f7744a4fa to your computer and use it in GitHub Desktop.
Save toshia/fba0a1a018a7c6521714178f7744a4fa to your computer and use it in GitHub Desktop.
Diva Schema出力テスト
{
"fields": [
{
"name": "id",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/string"
}
]
}
},
{
"name": "slug",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/string"
}
]
}
},
{
"name": "domain",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/string"
}
]
}
},
{
"name": "access_token",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/string"
}
]
}
},
{
"name": "account",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://object.type/worldon_account"
}
]
}
}
],
"uri": "diva://object.type/worldon"
}
{
"fields": [
{
"name": "id",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/string"
}
]
}
},
{
"name": "username",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/string"
}
]
}
},
{
"name": "acct",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/string"
}
]
}
},
{
"name": "display_name",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/string"
}
]
}
},
{
"name": "locked",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/bool"
}
]
}
},
{
"name": "bot",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/bool"
}
]
}
},
{
"name": "created_at",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/time"
}
]
}
},
{
"name": "followers_count",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/int"
}
]
}
},
{
"name": "following_count",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/int"
}
]
}
},
{
"name": "statuses_count",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/int"
}
]
}
},
{
"name": "note",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/string"
}
]
}
},
{
"name": "url",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/uri"
}
]
}
},
{
"name": "avatar",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/uri"
}
]
}
},
{
"name": "avatar_static",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/uri"
}
]
}
},
{
"name": "header",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/uri"
}
]
}
},
{
"name": "header_static",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://atomic.type/uri"
}
]
}
},
{
"name": "moved",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://object.type/worldon_account"
}
]
}
},
{
"name": "source",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"type": "diva://object.type/8f3a32a0-ca23-4cf3-98b8-11f6477882d8"
}
]
}
},
{
"name": "fields",
"constraint": {
"union": [
{
"type": "diva://atomic.type/null"
},
{
"array": {
"type": "diva://object.type/1120a95e-61cf-4547-9a40-969937402777"
}
}
]
}
}
],
"uri": "diva://object.type/worldon_account"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment