7
7
// </auto-generated>
8
8
//------------------------------------------------------------------------------
9
9
#nullable enable
10
- namespace Corvus . Json . Draft201909
10
+ namespace Corvus . Json . JsonSchema . Draft201909
11
11
{
12
12
using System ;
13
13
using System . Collections . Generic ;
@@ -181,7 +181,7 @@ public Core(bool boolean)
181
181
/// <example>
182
182
/// {Property examples}.
183
183
/// </example>
184
- public Corvus . Json . Draft201909 . Core . IdValue Id
184
+ public Corvus . Json . JsonSchema . Draft201909 . Core . IdValue Id
185
185
{
186
186
get
187
187
{
@@ -197,7 +197,7 @@ public Corvus.Json.Draft201909.Core.IdValue Id
197
197
{
198
198
if ( this . jsonElementBacking . TryGetProperty ( IdUtf8JsonPropertyName . Span , out JsonElement result ) )
199
199
{
200
- return new Corvus . Json . Draft201909 . Core . IdValue ( result ) ;
200
+ return new Corvus . Json . JsonSchema . Draft201909 . Core . IdValue ( result ) ;
201
201
}
202
202
}
203
203
@@ -249,7 +249,7 @@ public Corvus.Json.JsonUri Schema
249
249
/// <example>
250
250
/// {Property examples}.
251
251
/// </example>
252
- public Corvus . Json . Draft201909 . Core . AnchorValue Anchor
252
+ public Corvus . Json . JsonSchema . Draft201909 . Core . AnchorValue Anchor
253
253
{
254
254
get
255
255
{
@@ -265,7 +265,7 @@ public Corvus.Json.Draft201909.Core.AnchorValue Anchor
265
265
{
266
266
if ( this . jsonElementBacking . TryGetProperty ( AnchorUtf8JsonPropertyName . Span , out JsonElement result ) )
267
267
{
268
- return new Corvus . Json . Draft201909 . Core . AnchorValue ( result ) ;
268
+ return new Corvus . Json . JsonSchema . Draft201909 . Core . AnchorValue ( result ) ;
269
269
}
270
270
}
271
271
@@ -351,7 +351,7 @@ public Corvus.Json.JsonUriReference RecursiveRef
351
351
/// <example>
352
352
/// {Property examples}.
353
353
/// </example>
354
- public Corvus . Json . Draft201909 . Core . RecursiveAnchorValue RecursiveAnchor
354
+ public Corvus . Json . JsonSchema . Draft201909 . Core . RecursiveAnchorValue RecursiveAnchor
355
355
{
356
356
get
357
357
{
@@ -367,7 +367,7 @@ public Corvus.Json.Draft201909.Core.RecursiveAnchorValue RecursiveAnchor
367
367
{
368
368
if ( this . jsonElementBacking . TryGetProperty ( RecursiveAnchorUtf8JsonPropertyName . Span , out JsonElement result ) )
369
369
{
370
- return new Corvus . Json . Draft201909 . Core . RecursiveAnchorValue ( result ) ;
370
+ return new Corvus . Json . JsonSchema . Draft201909 . Core . RecursiveAnchorValue ( result ) ;
371
371
}
372
372
}
373
373
@@ -385,7 +385,7 @@ public Corvus.Json.Draft201909.Core.RecursiveAnchorValue RecursiveAnchor
385
385
/// <example>
386
386
/// {Property examples}.
387
387
/// </example>
388
- public Corvus . Json . Draft201909 . Core . VocabularyValue Vocabulary
388
+ public Corvus . Json . JsonSchema . Draft201909 . Core . VocabularyValue Vocabulary
389
389
{
390
390
get
391
391
{
@@ -401,7 +401,7 @@ public Corvus.Json.Draft201909.Core.VocabularyValue Vocabulary
401
401
{
402
402
if ( this . jsonElementBacking . TryGetProperty ( VocabularyUtf8JsonPropertyName . Span , out JsonElement result ) )
403
403
{
404
- return new Corvus . Json . Draft201909 . Core . VocabularyValue ( result ) ;
404
+ return new Corvus . Json . JsonSchema . Draft201909 . Core . VocabularyValue ( result ) ;
405
405
}
406
406
}
407
407
@@ -453,7 +453,7 @@ public Corvus.Json.JsonString Comment
453
453
/// <example>
454
454
/// {Property examples}.
455
455
/// </example>
456
- public Corvus . Json . Draft201909 . Core . DefsValue Defs
456
+ public Corvus . Json . JsonSchema . Draft201909 . Core . DefsValue Defs
457
457
{
458
458
get
459
459
{
@@ -469,7 +469,7 @@ public Corvus.Json.Draft201909.Core.DefsValue Defs
469
469
{
470
470
if ( this . jsonElementBacking . TryGetProperty ( DefsUtf8JsonPropertyName . Span , out JsonElement result ) )
471
471
{
472
- return new Corvus . Json . Draft201909 . Core . DefsValue ( result ) ;
472
+ return new Corvus . Json . JsonSchema . Draft201909 . Core . DefsValue ( result ) ;
473
473
}
474
474
}
475
475
@@ -660,10 +660,10 @@ public static implicit operator JsonBoolean(Core boolean)
660
660
/// <summary>
661
661
/// Creates an instance of a <see cref = "Core"/>.
662
662
/// </summary>
663
- public static Core Create ( Corvus . Json . Draft201909 . Core . IdValue ? id = null , Corvus . Json . JsonUri ? schema = null , Corvus . Json . Draft201909 . Core . AnchorValue ? anchor = null , Corvus . Json . JsonUriReference ? @ref = null , Corvus . Json . JsonUriReference ? recursiveRef = null , Corvus . Json . Draft201909 . Core . RecursiveAnchorValue ? recursiveAnchor = null , Corvus . Json . Draft201909 . Core . VocabularyValue ? vocabulary = null , Corvus . Json . JsonString ? comment = null , Corvus . Json . Draft201909 . Core . DefsValue ? defs = null )
663
+ public static Core Create ( Corvus . Json . JsonSchema . Draft201909 . Core . IdValue ? id = null , Corvus . Json . JsonUri ? schema = null , Corvus . Json . JsonSchema . Draft201909 . Core . AnchorValue ? anchor = null , Corvus . Json . JsonUriReference ? @ref = null , Corvus . Json . JsonUriReference ? recursiveRef = null , Corvus . Json . JsonSchema . Draft201909 . Core . RecursiveAnchorValue ? recursiveAnchor = null , Corvus . Json . JsonSchema . Draft201909 . Core . VocabularyValue ? vocabulary = null , Corvus . Json . JsonString ? comment = null , Corvus . Json . JsonSchema . Draft201909 . Core . DefsValue ? defs = null )
664
664
{
665
665
var builder = ImmutableDictionary . CreateBuilder < string , JsonAny > ( ) ;
666
- if ( id is Corvus . Json . Draft201909 . Core . IdValue id__ )
666
+ if ( id is Corvus . Json . JsonSchema . Draft201909 . Core . IdValue id__ )
667
667
{
668
668
builder . Add ( IdJsonPropertyName , id__ ) ;
669
669
}
@@ -673,7 +673,7 @@ public static Core Create(Corvus.Json.Draft201909.Core.IdValue? id = null, Corvu
673
673
builder . Add ( SchemaJsonPropertyName , schema__ ) ;
674
674
}
675
675
676
- if ( anchor is Corvus . Json . Draft201909 . Core . AnchorValue anchor__ )
676
+ if ( anchor is Corvus . Json . JsonSchema . Draft201909 . Core . AnchorValue anchor__ )
677
677
{
678
678
builder . Add ( AnchorJsonPropertyName , anchor__ ) ;
679
679
}
@@ -688,12 +688,12 @@ public static Core Create(Corvus.Json.Draft201909.Core.IdValue? id = null, Corvu
688
688
builder . Add ( RecursiveRefJsonPropertyName , recursiveRef__ ) ;
689
689
}
690
690
691
- if ( recursiveAnchor is Corvus . Json . Draft201909 . Core . RecursiveAnchorValue recursiveAnchor__ )
691
+ if ( recursiveAnchor is Corvus . Json . JsonSchema . Draft201909 . Core . RecursiveAnchorValue recursiveAnchor__ )
692
692
{
693
693
builder . Add ( RecursiveAnchorJsonPropertyName , recursiveAnchor__ ) ;
694
694
}
695
695
696
- if ( vocabulary is Corvus . Json . Draft201909 . Core . VocabularyValue vocabulary__ )
696
+ if ( vocabulary is Corvus . Json . JsonSchema . Draft201909 . Core . VocabularyValue vocabulary__ )
697
697
{
698
698
builder . Add ( VocabularyJsonPropertyName , vocabulary__ ) ;
699
699
}
@@ -703,7 +703,7 @@ public static Core Create(Corvus.Json.Draft201909.Core.IdValue? id = null, Corvu
703
703
builder . Add ( CommentJsonPropertyName , comment__ ) ;
704
704
}
705
705
706
- if ( defs is Corvus . Json . Draft201909 . Core . DefsValue defs__ )
706
+ if ( defs is Corvus . Json . JsonSchema . Draft201909 . Core . DefsValue defs__ )
707
707
{
708
708
builder . Add ( DefsJsonPropertyName , defs__ ) ;
709
709
}
@@ -716,7 +716,7 @@ public static Core Create(Corvus.Json.Draft201909.Core.IdValue? id = null, Corvu
716
716
/// </summary>
717
717
/// <param name = "value">The value to set.</param>
718
718
/// <returns>The entity with the updated property.</returns>
719
- public Core WithId ( Corvus . Json . Draft201909 . Core . IdValue value )
719
+ public Core WithId ( Corvus . Json . JsonSchema . Draft201909 . Core . IdValue value )
720
720
{
721
721
return this . SetProperty ( IdJsonPropertyName , value ) ;
722
722
}
@@ -736,7 +736,7 @@ public Core WithSchema(Corvus.Json.JsonUri value)
736
736
/// </summary>
737
737
/// <param name = "value">The value to set.</param>
738
738
/// <returns>The entity with the updated property.</returns>
739
- public Core WithAnchor ( Corvus . Json . Draft201909 . Core . AnchorValue value )
739
+ public Core WithAnchor ( Corvus . Json . JsonSchema . Draft201909 . Core . AnchorValue value )
740
740
{
741
741
return this . SetProperty ( AnchorJsonPropertyName , value ) ;
742
742
}
@@ -766,7 +766,7 @@ public Core WithRecursiveRef(Corvus.Json.JsonUriReference value)
766
766
/// </summary>
767
767
/// <param name = "value">The value to set.</param>
768
768
/// <returns>The entity with the updated property.</returns>
769
- public Core WithRecursiveAnchor ( Corvus . Json . Draft201909 . Core . RecursiveAnchorValue value )
769
+ public Core WithRecursiveAnchor ( Corvus . Json . JsonSchema . Draft201909 . Core . RecursiveAnchorValue value )
770
770
{
771
771
return this . SetProperty ( RecursiveAnchorJsonPropertyName , value ) ;
772
772
}
@@ -776,7 +776,7 @@ public Core WithRecursiveAnchor(Corvus.Json.Draft201909.Core.RecursiveAnchorValu
776
776
/// </summary>
777
777
/// <param name = "value">The value to set.</param>
778
778
/// <returns>The entity with the updated property.</returns>
779
- public Core WithVocabulary ( Corvus . Json . Draft201909 . Core . VocabularyValue value )
779
+ public Core WithVocabulary ( Corvus . Json . JsonSchema . Draft201909 . Core . VocabularyValue value )
780
780
{
781
781
return this . SetProperty ( VocabularyJsonPropertyName , value ) ;
782
782
}
@@ -796,7 +796,7 @@ public Core WithComment(Corvus.Json.JsonString value)
796
796
/// </summary>
797
797
/// <param name = "value">The value to set.</param>
798
798
/// <returns>The entity with the updated property.</returns>
799
- public Core WithDefs ( Corvus . Json . Draft201909 . Core . DefsValue value )
799
+ public Core WithDefs ( Corvus . Json . JsonSchema . Draft201909 . Core . DefsValue value )
800
800
{
801
801
return this . SetProperty ( DefsJsonPropertyName , value ) ;
802
802
}
@@ -1117,7 +1117,7 @@ private static ImmutableDictionary<string, PropertyValidator<Core>> CreateLocalP
1117
1117
1118
1118
private static ValidationContext __CorvusValidateId ( in Core that , in ValidationContext validationContext , ValidationLevel level )
1119
1119
{
1120
- Corvus . Json . Draft201909 . Core . IdValue property = that . Id ;
1120
+ Corvus . Json . JsonSchema . Draft201909 . Core . IdValue property = that . Id ;
1121
1121
return property . Validate ( validationContext , level ) ;
1122
1122
}
1123
1123
@@ -1129,7 +1129,7 @@ private static ValidationContext __CorvusValidateSchema(in Core that, in Validat
1129
1129
1130
1130
private static ValidationContext __CorvusValidateAnchor ( in Core that , in ValidationContext validationContext , ValidationLevel level )
1131
1131
{
1132
- Corvus . Json . Draft201909 . Core . AnchorValue property = that . Anchor ;
1132
+ Corvus . Json . JsonSchema . Draft201909 . Core . AnchorValue property = that . Anchor ;
1133
1133
return property . Validate ( validationContext , level ) ;
1134
1134
}
1135
1135
@@ -1147,13 +1147,13 @@ private static ValidationContext __CorvusValidateRecursiveRef(in Core that, in V
1147
1147
1148
1148
private static ValidationContext __CorvusValidateRecursiveAnchor ( in Core that , in ValidationContext validationContext , ValidationLevel level )
1149
1149
{
1150
- Corvus . Json . Draft201909 . Core . RecursiveAnchorValue property = that . RecursiveAnchor ;
1150
+ Corvus . Json . JsonSchema . Draft201909 . Core . RecursiveAnchorValue property = that . RecursiveAnchor ;
1151
1151
return property . Validate ( validationContext , level ) ;
1152
1152
}
1153
1153
1154
1154
private static ValidationContext __CorvusValidateVocabulary ( in Core that , in ValidationContext validationContext , ValidationLevel level )
1155
1155
{
1156
- Corvus . Json . Draft201909 . Core . VocabularyValue property = that . Vocabulary ;
1156
+ Corvus . Json . JsonSchema . Draft201909 . Core . VocabularyValue property = that . Vocabulary ;
1157
1157
return property . Validate ( validationContext , level ) ;
1158
1158
}
1159
1159
@@ -1165,7 +1165,7 @@ private static ValidationContext __CorvusValidateComment(in Core that, in Valida
1165
1165
1166
1166
private static ValidationContext __CorvusValidateDefs ( in Core that , in ValidationContext validationContext , ValidationLevel level )
1167
1167
{
1168
- Corvus . Json . Draft201909 . Core . DefsValue property = that . Defs ;
1168
+ Corvus . Json . JsonSchema . Draft201909 . Core . DefsValue property = that . Defs ;
1169
1169
return property . Validate ( validationContext , level ) ;
1170
1170
}
1171
1171
@@ -3071,16 +3071,16 @@ public void WriteTo(Utf8JsonWriter writer)
3071
3071
/// <summary>
3072
3072
/// Enumerate the object as the given item type
3073
3073
/// </summary>
3074
- public JsonObjectEnumerator < Corvus . Json . Draft201909 . Schema > EnumerateProperties ( )
3074
+ public JsonObjectEnumerator < Corvus . Json . JsonSchema . Draft201909 . Schema > EnumerateProperties ( )
3075
3075
{
3076
3076
if ( this . objectBacking is ImmutableDictionary < string , JsonAny > properties )
3077
3077
{
3078
- return new JsonObjectEnumerator < Corvus . Json . Draft201909 . Schema > ( properties ) ;
3078
+ return new JsonObjectEnumerator < Corvus . Json . JsonSchema . Draft201909 . Schema > ( properties ) ;
3079
3079
}
3080
3080
3081
3081
if ( this . jsonElementBacking . ValueKind == JsonValueKind . Object )
3082
3082
{
3083
- return new JsonObjectEnumerator < Corvus . Json . Draft201909 . Schema > ( this . jsonElementBacking ) ;
3083
+ return new JsonObjectEnumerator < Corvus . Json . JsonSchema . Draft201909 . Schema > ( this . jsonElementBacking ) ;
3084
3084
}
3085
3085
3086
3086
return default ;
@@ -3323,7 +3323,7 @@ private ValidationContext ValidateObject(JsonValueKind valueKind, in ValidationC
3323
3323
string propertyName = property . Name ;
3324
3324
if ( ! result . HasEvaluatedLocalProperty ( propertyCount ) )
3325
3325
{
3326
- result = property . ValueAs < Corvus . Json . Draft201909 . Schema > ( ) . Validate ( result , level ) ;
3326
+ result = property . ValueAs < Corvus . Json . JsonSchema . Draft201909 . Schema > ( ) . Validate ( result , level ) ;
3327
3327
if ( level == ValidationLevel . Flag && ! result . IsValid )
3328
3328
{
3329
3329
return result ;
0 commit comments