Skip to content

Commit

Permalink
fix custom properties in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Dec 20, 2023
1 parent 3691809 commit 63b6982
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 45 deletions.
90 changes: 51 additions & 39 deletions schemas/bashly.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"definitions": {
"custom-properties": {
"patternProperties": {
"^x_.": {
"title": "custom property",
"description": "A custom property of any type",
"examples": [
"Anything"
]
}
}
},
"argument": {
"title": "argument",
"description": "A positional argument of the current script or sub-command\nhttps://bashly.dannyb.co/configuration/argument/",
Expand Down Expand Up @@ -100,15 +111,6 @@
}
}
},
"patternProperties": {
"^x_.": {
"title": "custom property",
"description": "A custom property of any type",
"examples": [
"Anything"
]
}
},
"additionalProperties": false
},
"flag": {
Expand Down Expand Up @@ -270,12 +272,14 @@
}
}
},
"^x_.": {
"title": "custom property",
"description": "A custom property of any type",
"examples": [
"Anything"
]
"patternProperties": {
"^x_.": {
"title": "custom property",
"description": "A custom property of any type",
"examples": [
"Anything"
]
}
},
"additionalProperties": false
},
Expand Down Expand Up @@ -473,12 +477,14 @@
"$ref": "#/definitions/environment-variables-required-property"
}
},
"^x_.": {
"title": "custom property",
"description": "A custom property of any type",
"examples": [
"Anything"
]
"patternProperties": {
"^x_.": {
"title": "custom property",
"description": "A custom property of any type",
"examples": [
"Anything"
]
}
},
"additionalProperties": false
},
Expand All @@ -497,12 +503,14 @@
"$ref": "#/definitions/environment-variables-required-property"
}
},
"^x_.": {
"title": "custom property",
"description": "A custom property of any type",
"examples": [
"Anything"
]
"patternProperties": {
"^x_.": {
"title": "custom property",
"description": "A custom property of any type",
"examples": [
"Anything"
]
}
},
"additionalProperties": false
}
Expand Down Expand Up @@ -861,12 +869,14 @@
"$ref": "#/definitions/sub-command-import-property"
}
},
"^x_.": {
"title": "custom property",
"description": "A custom property of any type",
"examples": [
"Anything"
]
"patternProperties": {
"^x_.": {
"title": "custom property",
"description": "A custom property of any type",
"examples": [
"Anything"
]
}
},
"additionalProperties": false
}
Expand Down Expand Up @@ -924,12 +934,14 @@
"$ref": "#/definitions/function-property"
}
},
"^x_.": {
"title": "custom property",
"description": "A custom property of any type",
"examples": [
"Anything"
]
"patternProperties": {
"^x_.": {
"title": "custom property",
"description": "A custom property of any type",
"examples": [
"Anything"
]
}
},
"additionalProperties": false
}
13 changes: 7 additions & 6 deletions schemas/src/bashly.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
$schema: http://json-schema.org/draft-07/schema
definitions:
custom-properties: &custom-properties
patternProperties:
^x_.:
title: custom property
description: A custom property of any type
examples:
- Anything
argument:
title: argument
description: |-
Expand Down Expand Up @@ -91,12 +98,6 @@ definitions:
properties:
repeatable:
const: true
patternProperties: &custom-properties
^x_.:
title: custom property
description: A custom property of any type
examples:
- Anything
additionalProperties: false
flag:
title: flag
Expand Down

0 comments on commit 63b6982

Please sign in to comment.