Skip to content

Commit

Permalink
Allow schemas without requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Oct 23, 2018
1 parent 924a816 commit 03b7fa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schema/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ type Processor interface {
ResourceExists(resource string) bool

// Check if the resource structure is valid
ResourceValid(resource string, data string) (bool, error)
ResourceValid(resource string, data string, required bool) (bool, error)

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

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

0 comments on commit 03b7fa8

Please sign in to comment.