Skip to content

Commit

Permalink
schema: limit repo type to git and hg
Browse files Browse the repository at this point in the history
Only git and mercurial repo types are supported. While this is checked
during repo instantiation, we now also enforce this in the schema. By
that, some IDEs already provide the supported values in the
autocompletion.

Signed-off-by: Felix Moessbauer <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
fmoessbauer authored and jan-kiszka committed Feb 12, 2024
1 parent 88f15c6 commit bb9d45f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kas/schema-kas.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@
]
},
"type": {
"type": "string"
"type": "string",
"enum": ["git", "hg"]
},
"commit": {
"type": "string"
Expand Down

0 comments on commit bb9d45f

Please sign in to comment.