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 bedcc17 commit 9592b1fCopy full SHA for 9592b1f
schemas/v3.0/README.md
@@ -29,3 +29,17 @@ Such data would become invalid:
29
patternProperties:
30
'^(get|put|post|delete|options|head|patch|trace)$': $ref: '#/definitions/Operation'
31
```
32
+
33
+## Define Parameter as a filtered superset
34
35
+In order to avoid massive duplication all possible properties can be defined in a superset.
36
+Custom rules of exclusiveness can be further defined as a list of traits in `allOf`.
37
38
+For example such structure does not allow having `example` and `examples` in same object:
39
+```yaml
40
+not:
41
+ required:
42
+ - example
43
+ - examples
44
+```
45
0 commit comments