PhpStorm (JetBrains) doesn't show sona properties
Closed this issue · 2 comments
SteffoSpieler commented
pyrox0 commented
I've just updated this, please try again with the schema-07.json file in the repository. PhpStorm doesn't support versions of json-schema past draft-07
(we use version 2020-12
, which is 2 versions after), so I've added that as a version that is compatible with it. Please try that and let me know if it works! I don't use PhpStorm, all I have done is used an online validation tool to check validity with the draft-07
version.
SteffoSpieler commented
Nope, sadly doesn't work - still. But I tried something out and it seems like it works when you do it like this:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/theHedgehog0/fursona-schema#",
"title": "Schema for .well-known/fursona",
"description": "A description of someone's fursona(s).",
"type": "object",
"properties": {
"sonas": {
"description": "The list of fursonas for this person.",
"type": "array",
"items": {
"$id": "sona",
"description": "A single fursona",
"type": "object",
"required": [
"ref"
],
"properties": {
"name": {
"type": "string"
},
"pronouns": {
"type": "string"
},
"gender": {
"type": "string"
},
"species": {
"type": "string"
},
"description": {
"type": "string",
"maxLength": 250
},
"ref": {
"type": "string",
"format": "uri",
"qt-uri-protocols": [
"http",
"https",
"gemini",
"ftp"
]
},
"avatar": {
"type": "string",
"format": "uri",
"qt-uri-protocols": [
"http",
"https",
"gemini",
"ftp"
]
},
"age": {
"type": "integer"
},
"birthdate": {
"type": "string"
},
"colors": {
"type": "array",
"items": {
"type": "string",
"pattern": "#([0-9a-f]){3,6}"
}
}
}
}
}
},
"required": [
"sonas"
],
"$defs": {
}
}
I don't know much about schemas, so I might have done something stupid, buuut... it works! ¯_(ツ)_/¯