Skip to main content

JSON Schema

We provide JSON schema validation for dcupl model definitions to make the development process safe and intuitive. Every dcupl CLI project is created with a custom .vscode folder containing instructions for the JSON schema validator.

Our schema is currently deployed via git.

Paste the following snippet in your .vscode/settings.json to make use of the schema validation.

{
"json.schemas": [
{
"fileMatch": ["*.dcupl.json"],
"url": "https://raw.githubusercontent.com/dcupl/dcupl-schema/main/bin/dcupl.model.vscode.schema.json"
},
{
"fileMatch": ["*.dcupl.lc.json", "dcupl.lc.json"],
"url": "https://raw.githubusercontent.com/dcupl/dcupl-schema/main/bin/dcupl.loader.vscode.schema.json"
}
]
}

dcupl init Data Explorer