Skip to content

Commit 924cb84

Browse files
committed
OAS 3.1/3.2 discriminator is annotation-only
1 parent 3c195a0 commit 924cb84

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

openapi_schema_validator/validators.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,10 @@ def _build_oas31_validator() -> Any:
115115
Draft202012Validator,
116116
{
117117
# adjusted to OAS
118-
"allOf": oas_keywords.allOf,
119-
"oneOf": oas_keywords.oneOf,
120-
"anyOf": oas_keywords.anyOf,
121118
"pattern": oas_keywords.pattern,
122119
"description": oas_keywords.not_implemented,
123120
# fixed OAS fields
121+
# discriminator is annotation-only in OAS 3.1+
124122
"discriminator": oas_keywords.not_implemented,
125123
"xml": oas_keywords.not_implemented,
126124
"externalDocs": oas_keywords.not_implemented,

0 commit comments

Comments
 (0)