diff --git a/openapi/code/method.go b/openapi/code/method.go index 36c2df8e1..473457f8c 100644 --- a/openapi/code/method.go +++ b/openapi/code/method.go @@ -154,7 +154,7 @@ func (m *Method) IsCrudCreate() bool { return m.operation.Crud == "create" } -func (m *Method) JsonOnly() bool { +func (m *Method) IsJsonOnly() bool { return m.operation.JsonOnly }