Skip to content

Instantly share code, notes, and snippets.

@singingwolfboy
Last active April 22, 2021 16:06
Show Gist options
  • Save singingwolfboy/a7144db4e24b5d31ba81f28b878a4b51 to your computer and use it in GitHub Desktop.
Save singingwolfboy/a7144db4e24b5d31ba81f28b878a4b51 to your computer and use it in GitHub Desktop.

Revisions

  1. singingwolfboy revised this gist Nov 20, 2019. 1 changed file with 29 additions and 1 deletion.
    30 changes: 29 additions & 1 deletion pg-smart-tags-schema.json
    Original file line number Diff line number Diff line change
    @@ -37,7 +37,35 @@
    "description": {
    "type": "string"
    },
    "columns": {
    "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",
  2. singingwolfboy created this gist Nov 7, 2019.
    74 changes: 74 additions & 0 deletions pg-smart-tags-schema.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,74 @@
    {
    "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"
    },
    "columns": {
    "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"]
    }