mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-05-14 11:28:21 +00:00
18 lines
386 B
Go
18 lines
386 B
Go
package api
|
|
|
|
import (
|
|
"encoding/json"
|
|
"testing"
|
|
)
|
|
|
|
func TestResourceJsonSchema(t *testing.T) {
|
|
for slug, schema := range ResourceSchemas {
|
|
var schemaDefinition ResourceTypeSchema
|
|
err := json.Unmarshal(schema, &schemaDefinition)
|
|
if err != nil {
|
|
t.Errorf("Error While Parsing Resource Schema %v: %v", slug, err)
|
|
} else {
|
|
t.Logf("Schema for type %v is ok", slug)
|
|
}
|
|
}
|
|
}
|