Skip to content

Commit

Permalink
Merge pull request #14 from go-carrot/br.skip-validation
Browse files Browse the repository at this point in the history
Add SkipValidation
  • Loading branch information
BrandonRomano authored Jun 30, 2017
2 parents 5166db7 + ac858d4 commit c55ab7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ IsSet: func(pointer interface{}) bool {
// ...
```

#### SkipValidation

This field has no meaning to Surf itself, so if you are only using Surf, don't worry about this field.

This field is used in [Turf](https://github.com/go-carrot/turf) to skip the validation process in auto-generated controllers.

## Models

Models are simply implementations that adhere to the following interface:
Expand Down
1 change: 1 addition & 0 deletions model.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type Field struct {
Insertable bool
Updatable bool
UniqueIdentifier bool
SkipValidation bool
IsSet func(interface{}) bool
}

Expand Down

0 comments on commit c55ab7c

Please sign in to comment.