Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vudodov committed Jun 22, 2019
1 parent 0e76042 commit 965873e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FlexibleEntity : V.Udodov.Json.Entity

...

JSchema flexibleJsonSchema = JSchema.Parse(@"{
string flexibleJsonSchema = @"{
'type': 'object',
'properties': {
'shoe_size': {
Expand All @@ -31,7 +31,7 @@ JSchema flexibleJsonSchema = JSchema.Parse(@"{
'multipleOf': 1.0
}
}
}");
}";

FlexibleEntity entity = new FlexibleEntity
{
Expand Down Expand Up @@ -60,15 +60,15 @@ class FlexibleEntity : V.Udodov.Json.Entity

...

Schema flexibleJsonSchema = JSchema.Parse(@"{
string flexibleJsonSchema = @"{
'type': 'object',
'properties': {
'name': {
'type': 'string',
'minLength': 3
}
}
}");
}";

// Code below throws JsonSchemaValidationException because both class and JSON Schema declarations
// have name property.
Expand Down

0 comments on commit 965873e

Please sign in to comment.