Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Feb 5, 2024
2 parents 3c60a46 + eaf937d commit 8e496f4
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/gttp-cli/gttp/pkg/model/template",
"$ref": "#/$defs/Template",
"$defs": {
"Option": {
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"value": true,
"default": true
},
"additionalProperties": false,
"type": "object",
"required": [
"name"
]
},
"Template": {
"properties": {
"structures": {
"additionalProperties": {
"items": {
"$ref": "#/$defs/Variable"
},
"type": "array"
},
"type": "object"
},
"variables": {
"items": {
"$ref": "#/$defs/Variable"
},
"type": "array"
},
"template": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"template"
]
},
"Variable": {
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"array": {
"type": "boolean"
},
"description": {
"type": "string"
},
"condition": {
"type": "string"
},
"value": true,
"default": true,
"options": {
"items": {
"$ref": "#/$defs/Option"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"name",
"type"
]
}
}
}

0 comments on commit 8e496f4

Please sign in to comment.