mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-23 01:20:19 +03:00
fd8a724e77
* bump go swagger version * bump swagger version
17 lines
348 B
Go
17 lines
348 B
Go
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"))
|
|
}
|