Skip to content

Commit c945053

Browse files
committed
discriminator is now an object, not an attribute
1 parent b552f44 commit c945053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versions/3.0.2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2685,7 +2685,7 @@ Field Name | Type | Description
26852685
<a name="propertyName"></a>propertyName | `string` | **REQUIRED**. The name of the property in the payload that will hold the discriminator value.
26862686
<a name="discriminatorMapping"></a> mapping | Map[`string`, `string`] | An object to hold mappings between payload values and schema names or references.
26872687

2688-
The discriminator attribute is legal only when using one of the composite keywords `oneOf`, `anyOf`, `allOf`.
2688+
The discriminator object is legal only when using one of the composite keywords `oneOf`, `anyOf`, `allOf`.
26892689

26902690
In OAS 3.0, a response payload MAY be described to be exactly one of any number of types:
26912691

0 commit comments

Comments
 (0)