"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
- if err := validate.Required("create_schema", "body", m.CreateSchema); err != nil {
- return err
+ if m.CreateSchema == nil {
+ return errors.Required("create_schema", "body", nil)
// MarshalBinary interface implementation
func (m *PolicyTypeSchema) MarshalBinary() ([]byte, error) {
if m == nil {
// MarshalBinary interface implementation
func (m *PolicyTypeSchema) MarshalBinary() ([]byte, error) {
if m == nil {