Skip to content

Commit 9f67a40

Browse files
authored
Merge pull request #39 from p1c2u/feature/validate-oneof-anyof-and-allof-with-discriminator-oas31
anyOf, oneOf and allOf discriminator for OAS31
2 parents 6e9621c + e0d257b commit 9f67a40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: openapi_schema_validator/validators.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
BaseOAS31Validator = extend(
6060
Draft202012Validator,
6161
{
62-
# adjusted to OAS
62+
# adjusted to OAS
63+
u"allOf": oas_validators.allOf,
64+
u"oneOf": oas_validators.oneOf,
65+
u"anyOf": oas_validators.anyOf,
6366
u"description": oas_validators.not_implemented,
6467
u"format": oas_validators.format,
6568
# fixed OAS fields

0 commit comments

Comments
 (0)