add schema
This commit is contained in:
parent
a815f30751
commit
f4a64f1768
3 changed files with 4 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
version: 1
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/tg123/sshpiper/master/sshpiperd/upstream/yaml/schema.json
|
||||
version: "0.1"
|
||||
pipes:
|
||||
- username: passthrough
|
||||
upstream_host: host2
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ func (p *plugin) CreatePipe(opt upstream.CreatePipeOption) error {
|
|||
fmt.Fprintln(&buf)
|
||||
|
||||
out, err := yaml.Marshal(piperConfig{
|
||||
Version: 1,
|
||||
Version: "0.1",
|
||||
Pipes: []pipeConfig{toPipeConfig(opt)},
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ type pipeConfig struct {
|
|||
}
|
||||
|
||||
type piperConfig struct {
|
||||
Version int `yaml:"version"`
|
||||
Version string `yaml:"version"`
|
||||
Pipes []pipeConfig `yaml:"pipes,flow"`
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue