Skip to content

Commit

Permalink
ice
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed May 24, 2024
1 parent dc9717c commit 88befa9
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using namespace winrt::Sample;

extern "C" {
void __stdcall client() {
void __stdcall client() noexcept {
auto schema = LR"(
{
"properties": {
Expand All @@ -17,18 +17,18 @@ extern "C" {
}
)";

auto value = LR"(
auto value = LR"(
{
"name": "Kenny",
"age": 21
}
)";

// Create a validator with the given schema.
auto validator = JsonValidator(schema);
// Create a validator with the given schema.
auto validator = JsonValidator(schema);

// Validate and check the sanitized return value.
auto sanitized = validator.Validate(value);
assert(sanitized == LR"({"age":21,"name":"Kenny"})");
// Validate and check the sanitized return value.
auto sanitized = validator.Validate(value);
assert(sanitized == LR"({"age":21,"name":"Kenny"})");
}
}

0 comments on commit 88befa9

Please sign in to comment.