schema: support "multiple" tag.

This commit is contained in:
fiatjaf
2026-01-09 22:36:06 -03:00
parent 428cf33bc1
commit 0d2dbb13ac

View File

@@ -57,10 +57,11 @@ type KindSchema struct {
InUse bool `yaml:"in_use"` InUse bool `yaml:"in_use"`
Content nextSpec `yaml:"content"` Content nextSpec `yaml:"content"`
Required []string `yaml:"required"` Required []string `yaml:"required"`
Tags []tagSpec `yaml:"tags"` Multiple []string `yaml:"multiple"`
Tags []TagSpec `yaml:"tags"`
} }
type tagSpec struct { type TagSpec struct {
Name string `yaml:"name"` Name string `yaml:"name"`
Prefix string `yaml:"prefix"` Prefix string `yaml:"prefix"`
Next *nextSpec `yaml:"next"` Next *nextSpec `yaml:"next"`