Skip to content

Commit 918d6f5

Browse files
committed
Add pre-decoded structure validation
1 parent 09ba79d commit 918d6f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

schema/types.go

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ type Processor interface {
77
// Check if the resource structure is valid
88
ResourceValid(resource string, data string) (bool, error)
99

10+
// Check if the resource structure is valid
11+
ResourceValidGo(resource string, data interface{}) (bool, error)
12+
1013
// Get the schema of a resource
1114
GetSchema(resource string) *Schema
1215
}

0 commit comments

Comments
 (0)