JSON property value code completition
Answered
Hi.
I write JSON schema for my JSON object and use "JSON Schema version 7" mapping.
For example schema code:
{
"type": "object",
"properties": {
"source": {
"type": "string"
},
"target": {
"type": "string"
},
"distance": {
"type": "number"
}
},
"required": ["source", "target", "distance"]
}
When write "required" section for properties, IDEA suggest code completition for array items. mysubwaycard
Can I get the same behavior for other JSON or it works only for this case?
Please sign in to leave a comment.
Haven't got what you mean... Completion/resolving works for all JSON files if the schema mappings are specified in Settings | Languages & Frameworks | Schemas and DTDs | JSON Schema Mappings