diff --git a/pkg/plugin/implementation/schemav2validator/extended_schema.go b/pkg/plugin/implementation/schemav2validator/extended_schema.go index 12c38da..104cfaf 100644 --- a/pkg/plugin/implementation/schemav2validator/extended_schema.go +++ b/pkg/plugin/implementation/schemav2validator/extended_schema.go @@ -48,7 +48,7 @@ type cachedDomainSchema struct { // validateExtendedSchemas validates all objects with @context against their schemas. func (v *schemav2Validator) validateExtendedSchemas(ctx context.Context, body interface{}) error { - // Extract "message" object - only scan inside message + // Extract "message" object - scan inside message bodyMap, ok := body.(map[string]interface{}) if !ok { return fmt.Errorf("body is not a valid JSON object") @@ -97,8 +97,6 @@ func (v *schemav2Validator) validateExtendedSchemas(ctx context.Context, body in } return nil - - return nil } // newSchemaCache creates a new schema cache.