From aa7a6a353867e0f701317b75b08b92ec85b70bc7 Mon Sep 17 00:00:00 2001 From: Ralf Handl Date: Fri, 24 May 2024 11:40:45 +0200 Subject: [PATCH] Typo in discriminator example --- versions/3.0.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/3.0.4.md b/versions/3.0.4.md index 12b2375a79..a547b3d02a 100644 --- a/versions/3.0.4.md +++ b/versions/3.0.4.md @@ -2826,7 +2826,7 @@ MyResponseType: monster: https://gigantic-server.com/schemas/Monster/schema.json ``` -Here the discriminator _value_ of `dog` will map to the schema `#/components/schemas/Dog`, rather than the default (implicit) value of `Dog`. If the discriminator _value_ does not match an implicit or explicit mapping, no schema can be determined and validation SHOULD fail. +Here the discriminator _value_ of `dog` will map to the schema `#/components/schemas/Dog`, rather than the default (implicit) value of `#/components/schemas/dog`. If the discriminator _value_ does not match an implicit or explicit mapping, no schema can be determined and validation SHOULD fail. When used in conjunction with the `anyOf` construct, the use of the discriminator can avoid ambiguity where multiple schemas may satisfy a single payload.