Skip to content

Commit 35de591

Browse files
author
Ron
authored
Merge pull request #1330 from andriisoldatenko/fix-2-times-typo
Fixed 2 times typo
2 parents c730342 + e36f3f9 commit 35de591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versions/3.0.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2367,7 +2367,7 @@ While composition offers model extensibility, it does not imply a hierarchy betw
23672367
To support polymorphism, the OpenAPI Specification adds the `discriminator` field.
23682368
When used, the `discriminator` will be the name of the property that decides which schema definition validates the structure of the model.
23692369
As such, the `discriminator` field MUST be a required field.
2370-
There are are two ways to define the value of a discriminator for an inheriting instance.
2370+
There are two ways to define the value of a discriminator for an inheriting instance.
23712371
- Use the schema name.
23722372
- Override the schema name by overriding the property with a new value. If a new value exists, this takes precedence over the schema name.
23732373
As such, inline schema definitions, which do not have a given id, *cannot* be used in polymorphism.

0 commit comments

Comments
 (0)