Skip to content
Snippets Groups Projects
Commit d8f6b4ba authored by Klaus Fischer's avatar Klaus Fischer
Browse files

Added 3.5

parent e403d08d
No related branches found
No related tags found
1 merge request!24AutoReject planning#594
...@@ -114,7 +114,17 @@ public class Subscriber : FitConnectClient, ...@@ -114,7 +114,17 @@ public class Subscriber : FitConnectClient,
throw new SecurityEventException(problem); throw new SecurityEventException(problem);
} }
var schema = JsonSchema.FromUrlAsync(submission.Metadata?.Schema).Result; JsonSchema? schema;
try {
schema = JsonSchema.FromUrlAsync(submission.Metadata?.Schema).Result;
}
catch (Exception e) {
// SuccessCriteria:3.5
var problem = new Problems(Problems.ProblemTypeEnum.UnsupportedSchema,
Problems.DetailUnsupportedSchema);
throw new SecurityEventException(problem, e);
}
VerifyMetadata(submission, metadataString, schema); VerifyMetadata(submission, metadataString, schema);
// SuccessCriteria:3.3 // SuccessCriteria:3.3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment