We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69611df commit 09cd4afCopy full SHA for 09cd4af
docs/upgrade-guide-2.md
@@ -543,9 +543,22 @@ var schema = new OpenApiSchema
543
}
544
545
// v2.0
546
+// bitwise OR(|) - combines flags to allow multiple types
547
var schema = new OpenApiSchema
548
{
- Type = JsonSchemaType.String | JsonSchemaType.Null
549
+ Type = JsonSchemaType.String | JsonSchemaType.Null
550
+}
551
+
552
+// bitwise NOT(~) - inverts bits; filters out null flag
553
+var schema = new OpenApiSchema
554
+{
555
+ Type = JsonSchemaType.String & ~JsonSchemaType.Null
556
557
558
+// bitwise AND(&) - intersects flags to check for a specific type
559
560
561
+ Type = (JsonSchemaType.String & JsonSchemaType.Null) == JsonSchemaType.Null
562
563
564
```
0 commit comments