From e985f131cae149a13a8f80a86d6982b4e6592f14 Mon Sep 17 00:00:00 2001 From: Mike Ralphson Date: Thu, 18 Oct 2018 16:46:50 +0100 Subject: [PATCH] Allow specification extensions in discriminator object --- versions/3.1.0.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/versions/3.1.0.md b/versions/3.1.0.md index 58d354f3fc..7d915f8b5e 100644 --- a/versions/3.1.0.md +++ b/versions/3.1.0.md @@ -2686,6 +2686,8 @@ Field Name | Type | Description propertyName | `string` | **REQUIRED**. The name of the property in the payload that will hold the discriminator value. mapping | Map[`string`, `string`] | An object to hold mappings between payload values and schema names or references. +This object MAY be extended with [Specification Extensions](#specificationExtensions). + The discriminator object is legal only when using one of the composite keywords `oneOf`, `anyOf`, `allOf`. In OAS 3.0, a response payload MAY be described to be exactly one of any number of types: