Skip to content

Commit 3657b5a

Browse files
authored
Merge pull request #4615 from handrews/dm-anchor
v3.2: Fix `defaultMapping` anchor (was `default`, now `discriminator-default-mapping`)
2 parents 8431914 + 9fb0bbd commit 3657b5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2882,7 +2882,7 @@ Note that `discriminator` MUST NOT change the validation outcome of the schema.
28822882
| ---- | :----: | ---- |
28832883
| <a name="property-name"></a>propertyName | `string` | **REQUIRED**. The name of the discriminating property in the payload that will hold the discriminating value. The discriminating property MAY be defined as required or optional, but when defined as optional the Discriminator Object MUST include a `defaultMapping` field that specifies which schema is expected to validate the structure of the model when the discriminating property is not present. |
28842884
| <a name="discriminator-mapping"></a> mapping | Map[`string`, `string`] | An object to hold mappings between payload values and schema names or URI references. |
2885-
| <a name="default"></a> defaultMapping | `string` | The schema name or URI reference to a schema that is expected to validate the structure of the model when the discriminating property is not present in the payload or contains a value for which there is no explicit or implicit mapping. |
2885+
| <a name="discriminator-default-mapping"></a> defaultMapping | `string` | The schema name or URI reference to a schema that is expected to validate the structure of the model when the discriminating property is not present in the payload or contains a value for which there is no explicit or implicit mapping. |
28862886

28872887
This object MAY be extended with [Specification Extensions](#specification-extensions).
28882888

0 commit comments

Comments
 (0)