Skip to content

Commit

Permalink
Add pre-decoded structure validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Oct 21, 2018
1 parent 09ba79d commit 918d6f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions schema/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ type Processor interface {
// Check if the resource structure is valid
ResourceValid(resource string, data string) (bool, error)

// Check if the resource structure is valid
ResourceValidGo(resource string, data interface{}) (bool, error)

// Get the schema of a resource
GetSchema(resource string) *Schema
}
Expand Down

0 comments on commit 918d6f5

Please sign in to comment.