summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-openapi/spec/embed.go
blob: 1f4284750ab5dbd891dafc5fba2a9a02a69f5edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"))
}