MCPcopy Create free account
hub / github.com/getkin/kin-openapi / TestIssue409PatternNotIgnored

Function TestIssue409PatternNotIgnored

openapi3/validation_issue409_test.go:21–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

19}
20
21func TestIssue409PatternNotIgnored(t *testing.T) {
22 l := openapi3.NewLoader()
23 s, err := l.LoadFromFile("testdata/issue409.yml")
24 require.NoError(t, err)
25
26 err = s.Validate(l.Context)
27 assert.Error(t, err)
28}
29
30func TestIssue409HygienicUseOfCtx(t *testing.T) {
31 l := openapi3.NewLoader()

Callers

nothing calls this directly

Calls 4

LoadFromFileMethod · 0.95
NewLoaderFunction · 0.92
ValidateMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…