forked from ebhomengo/niki
1
0
Fork 0
niki/vendor/github.com/go-openapi/spec/embed.go

18 lines
348 B
Go
Raw Permalink Normal View History

2024-08-29 03:26:59 +00:00
package spec
import (
"embed"
"path"
)
//go:embed schemas/*.json schemas/*/*.json
var assets embed.FS
func jsonschemaDraft04JSONBytes() ([]byte, error) {
return assets.ReadFile(path.Join("schemas", "jsonschema-draft-04.json"))
}
func v2SchemaJSONBytes() ([]byte, error) {
return assets.ReadFile(path.Join("schemas", "v2", "schema.json"))
}