Skip to content

Commit 25cb1b4

Browse files
committed
update correct example
1 parent 95f26c7 commit 25cb1b4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/@v2/rules/oas/nullable-type-sibling.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ components:
6060
Correct:
6161
type: string
6262
nullable: true
63+
CorrectWithAllOf:
64+
type: object
65+
nullable: true
66+
allOf:
67+
- type: object
68+
properties:
69+
name:
70+
type: string
71+
- type: object
72+
properties:
73+
age:
74+
type: number
6375
```
6476

6577
## Related rules

0 commit comments

Comments
 (0)