Skip to content

Commit 9d4755c

Browse files
committed
definition changes
1 parent 417aaea commit 9d4755c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

versions/3.0.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,7 +2390,7 @@ schemas:
23902390
23912391
#### <a name="referenceObject"></a>Reference Object
23922392
2393-
A simple object to allow referencing other definitions in the specification, internally and externally.
2393+
A simple object to allow referencing other components in the specification, internally and externally.
23942394
23952395
The Reference Object is defined by [JSON Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03) and follows the same structure, behavior and rules.
23962396
@@ -2509,8 +2509,8 @@ To support polymorphism, OpenAPI Specification adds the support of the `discrimi
25092509
When used, the `discriminator` will be the name of the property used to decide which schema definition is used to validate the structure of the model.
25102510
As such, the `discriminator` field MUST be a required field.
25112511
There are are two ways to define the value of a discriminator for an inheriting instance.
2512-
- Use the definition's name.
2513-
- Override the definition's name by overriding the property with a new value. If exists, this takes precedence over the definition's name.
2512+
- Use the schema's name.
2513+
- Override the schema's name by overriding the property with a new value. If exists, this takes precedence over the schema's name.
25142514
As such, inline schema definitions, which do not have a given id, *cannot* be used in polymorphism.
25152515

25162516
###### XML Modeling
@@ -3428,7 +3428,7 @@ read:pets: read your pets
34283428
#### <a name="securityRequirementObject"></a>Security Requirement Object
34293429

34303430
Lists the required security schemes to execute this operation.
3431-
The name used for each property MUST correspond to a security scheme declared in the [Security Definitions](#componentsSecuritySchemes) under the [Components Object](#componentsObject).
3431+
The name used for each property MUST correspond to a security scheme declared in the [Security Schemes](#componentsSecuritySchemes) under the [Components Object](#componentsObject).
34323432

34333433
Security Requirement Objects that contain multiple schemes require that all schemes MUST be satisfied for a request to be authorized.
34343434
This enables support for scenarios where there multiple query parameters or HTTP headers are required to convey security information.
@@ -3439,7 +3439,7 @@ When a list of Security Requirement Objects is defined on the [Open API object](
34393439

34403440
Field Pattern | Type | Description
34413441
---|:---:|---
3442-
<a name="securityRequirementsName"></a>{name} | [`string`] | Each name MUST correspond to a security scheme which is declared in the [Security Definitions](#securityDefinitions). If the security scheme is of type `"oauth2"` or `"openIdConnect"`, then the value is a list of scope names required for the execution. For other security scheme types, the array MUST be empty.
3442+
<a name="securityRequirementsName"></a>{name} | [`string`] | Each name MUST correspond to a security scheme which is ddeclared in the [Security Schemes](#componentsSecuritySchemes) under the [Components Object](#componentsObject). If the security scheme is of type `"oauth2"` or `"openIdConnect"`, then the value is a list of scope names required for the execution. For other security scheme types, the array MUST be empty.
34433443

34443444
##### Security Requirement Object Examples
34453445

0 commit comments

Comments
 (0)