diff --git a/openapi3filter/validate_readonly_test.go b/openapi3filter/validate_readonly_test.go index d78c5fb24..8ef19d8ac 100644 --- a/openapi3filter/validate_readonly_test.go +++ b/openapi3filter/validate_readonly_test.go @@ -73,7 +73,7 @@ func TestValidatingRequestBodyWithReadOnlyProperty(t *testing.T) { router, err := legacyrouter.NewRouter(doc) require.NoError(t, err) - err = l.CompileSchemas() + err = sl.CompileSchemas() require.NoError(t, err) b, err := json.Marshal(Request{ID: "bt6kdc3d0cvp6u8u3ft0"})