MCPcopy Create free account
hub / github.com/go-openapi/spec / MustLoadJSONSchemaDraft04

Function MustLoadJSONSchemaDraft04

spec.go:23–29  ·  view source on GitHub ↗

MustLoadJSONSchemaDraft04 panics when Swagger20Schema returns an error.

()

Source from the content-addressed store, hash-verified

21
22// MustLoadJSONSchemaDraft04 panics when Swagger20Schema returns an error.
23func MustLoadJSONSchemaDraft04() *Schema {
24 d, e := JSONSchemaDraft04()
25 if e != nil {
26 panic(e)
27 }
28 return d
29}
30
31// JSONSchemaDraft04 loads the json schema document for json schema draft04.
32func JSONSchemaDraft04() (*Schema, error) {

Callers 2

defaultResolutionCacheFunction · 0.85

Calls 1

JSONSchemaDraft04Function · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…