// JSONSchemaDraft04 loads the json schema document for json shema draft04 func JSONSchemaDraft04() (*Schema, error) { b, err := assets.Asset("jsonschema-draft-04.json") if err != nil { return nil, err } schema := new(Schema) if err := json.Unmarshal(b, schema); err != nil { return nil, err } return schema, nil }
// Swagger20Schema loads the swagger 2.0 schema from the embedded asses func Swagger20Schema() (*Schema, error) { b, err := assets.Asset("2.0/schema.json") if err != nil { return nil, err } schema := new(Schema) if err := json.Unmarshal(b, schema); err != nil { return nil, err } return schema, nil }