Skip to content

Instantly share code, notes, and snippets.

@singingwolfboy
Last active April 22, 2021 16:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save singingwolfboy/a7144db4e24b5d31ba81f28b878a4b51 to your computer and use it in GitHub Desktop.
Save singingwolfboy/a7144db4e24b5d31ba81f28b878a4b51 to your computer and use it in GitHub Desktop.
{
"title": "JSONPgSmartTags",
"type": "object",
"properties": {
"version": {
"type": "number",
"minimum": 1
},
"config": {
"type": "object",
"propertyNames": {
"enum": ["class", "attribute", "constraint", "procedure"],
"description": "Supported database kinds for smart tags"
},
"additionalProperties": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"tags": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": { "type": "string" }
},
{
"enum": [true, null]
}
]
}
},
"description": {
"type": "string"
},
"attribute": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"tags": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": { "type": "string" }
},
{
"enum": [true, null]
}
]
}
},
"description": {
"type": "string"
}
}
}
},
"constraint": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"tags": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": { "type": "string" }
},
{
"enum": [true, null]
}
]
}
},
"description": {
"type": "string"
}
}
}
}
}
}
}
}
},
"required": ["version", "config"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment