Packages

A Tableau extension for generating redirects because Coolr URIs don't change https://www.w3.org/Provider/Style/URI

Current section

Files

Jump to
tableau_redirects_extension priv redirects.schema.json
Raw

priv/redirects.schema.json

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/halostatue/tableau_redirects_extension/blob/main/priv/redirects.schema.json",
"title": "Tableau Redirects",
"description": "Schema for redirects.json generated by tableau_redirects_extension",
"type": "object",
"required": ["permanent_redirects"],
"properties": {
"permanent_redirects": {
"type": "array",
"description": "List of permanent (301) redirects",
"items": {
"type": "object",
"required": ["from", "type", "to", "target_type"],
"properties": {
"from": {
"type": "array",
"description": "Array of URL paths that redirect to the target. Directory paths include three variants (bare, trailing slash, index.html). File paths include only the exact path.",
"items": {
"type": "string",
"pattern": "^/"
},
"minItems": 1
},
"type": {
"type": "string",
"description": "Type of redirect: 'path' for directory-style paths, 'file' for files",
"enum": ["path", "file"]
},
"to": {
"type": "string",
"description": "Target URL (absolute path or full URL)",
"pattern": "^(/|https?://)"
},
"target_type": {
"type": "string",
"description": "Target type: 'internal' for same-site paths, 'external' for full URLs",
"enum": ["internal", "external"]
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}