1 package spec 2 3 import ( 4 "embed" 5 "path" 6 ) 7 8 //go:embed schemas/*.json schemas/*/*.json 9 var assets embed.FS 10 11 func jsonschemaDraft04JSONBytes() ([]byte, error) { 12 return assets.ReadFile(path.Join("schemas", "jsonschema-draft-04.json")) 13 } 14 15 func v2SchemaJSONBytes() ([]byte, error) { 16 return assets.ReadFile(path.Join("schemas", "v2", "schema.json")) 17 } 18