feat(api): prevent invalid kind values

This commit is contained in:
Jef Roosens 2022-06-17 13:56:38 +02:00
parent bb5643bb03
commit bd07964509
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
4 changed files with 21 additions and 10 deletions

View file

@ -41,11 +41,11 @@ pub fn (c &Client) get_target(id int) ?Target {
}
pub struct NewTarget {
kind string
url string
kind string
url string
branch string
repo string
arch []string
repo string
arch []string
}
// add_target adds a new target to the server.