mirror of https://github.com/sipwise/ngcpcfg.git
We add support for YAML schemas, and hook it into the check command to validate the sites.yml file. Change-Id: Ic6ed43e36361d395b485230af4ec3cf7e77758bbmr11.0
parent
6100f2002b
commit
0f20e0ffe5
@ -0,0 +1,16 @@
|
||||
name: sites.yml
|
||||
desc: Kwalify schema for NGCP sites.yml
|
||||
type: map
|
||||
mapping:
|
||||
"sites":
|
||||
type: map
|
||||
required: yes
|
||||
mapping:
|
||||
=:
|
||||
type: map
|
||||
required: yes
|
||||
mapping:
|
||||
"id": { type: int, required: yes, range: { min: 1 },
|
||||
desc: "Specify the site ID. Must be unique." }
|
||||
"role": { type: str, required: yes,
|
||||
desc: "Specify the site role." }
|
Loading…
Reference in new issue