From e36f3f97a0a8e1b1997c203454a8140e707496ef Mon Sep 17 00:00:00 2001 From: Andrii Soldatenko Date: Mon, 21 Aug 2017 21:18:19 +0200 Subject: [PATCH] Fixed 2 times typo --- versions/3.0.1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/3.0.1.md b/versions/3.0.1.md index 906c1f96c1..7318b8024c 100644 --- a/versions/3.0.1.md +++ b/versions/3.0.1.md @@ -2367,7 +2367,7 @@ While composition offers model extensibility, it does not imply a hierarchy betw To support polymorphism, the OpenAPI Specification adds the `discriminator` field. When used, the `discriminator` will be the name of the property that decides which schema definition validates the structure of the model. As such, the `discriminator` field MUST be a required field. -There are are two ways to define the value of a discriminator for an inheriting instance. +There are two ways to define the value of a discriminator for an inheriting instance. - Use the schema name. - Override the schema name by overriding the property with a new value. If a new value exists, this takes precedence over the schema name. As such, inline schema definitions, which do not have a given id, *cannot* be used in polymorphism.