// Editing this file might prove futile when you re-run the swagger generate command
import (
+ "context"
+
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
func (m *PolicyTypeSchema) validateCreateSchema(formats strfmt.Registry) error {
- if err := validate.Required("create_schema", "body", m.CreateSchema); err != nil {
- return err
+ if m.CreateSchema == nil {
+ return errors.Required("create_schema", "body", nil)
}
return nil
return nil
}
+// ContextValidate validates this policy type schema based on context it is used
+func (m *PolicyTypeSchema) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *PolicyTypeSchema) MarshalBinary() ([]byte, error) {
if m == nil {