Skip to content

Commit 8347113

Browse files
authored
Merge pull request #492 from KonstantinLukaschenko/master
config.schema.json: enhance required generator fields.
2 parents 0f86410 + 15e1e0c commit 8347113

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

apps/generator-cli/src/config.schema.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"title": "OpenAPI Generator CLI - Config",
55
"type": "object",
6-
"required": [
7-
"generator-cli"
8-
],
6+
"required": ["generator-cli"],
97
"additionalProperties": false,
108
"properties": {
119
"$schema": {
@@ -17,9 +15,7 @@
1715
},
1816
"generator-cli": {
1917
"type": "object",
20-
"required": [
21-
"version"
22-
],
18+
"required": ["version"],
2319
"properties": {
2420
"version": {
2521
"type": "string"
@@ -60,13 +56,17 @@
6056
},
6157
"generator": {
6258
"type": "object",
63-
"required": [
64-
"glob",
65-
"output",
66-
"generatorName"
59+
"anyOf": [
60+
{
61+
"required": ["inputSpec", "output", "generatorName"]
62+
},
63+
{
64+
"required": ["glob", "output", "generatorName"]
65+
}
6766
],
6867
"properties": {
6968
"glob": {
69+
"description": "matches local specification files using a glob pattern",
7070
"type": "string",
7171
"minLength": 1
7272
},

0 commit comments

Comments
 (0)