Skip to content

Commit db94bf1

Browse files
committed
Define type: "integer"
Part of OAI#4038
1 parent 3deaba2 commit db94bf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

versions/3.0.4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Note that no aspect of implicit connection resolution changes how [URLs are reso
173173
### Data Types
174174

175175
Data types in the OAS are based on the types supported by the [JSON Schema Specification Wright Draft 00](https://tools.ietf.org/html/draft-wright-json-schema-00#section-4.2).
176-
Note that `integer` as a type is also supported and is defined as a JSON number without a fraction or exponent part.
176+
Note that `integer` as a type is also supported and is defined as a JSON number that is a multiple of 1.
177177
`null` is not supported as a type (see [`nullable`](#schema-nullable) for an alternative solution).
178178
Models are defined using the [Schema Object](#schema-object), which is an extended subset of JSON Schema Specification Wright Draft 00.
179179

@@ -2662,7 +2662,7 @@ The following keywords are taken directly from the JSON Schema definition and fo
26622662

26632663
The following keywords are taken from the JSON Schema definition but their definitions were adjusted to the OpenAPI Specification.
26642664

2665-
* type - Value MUST be a string. Multiple types via an array are not supported.
2665+
* type - Value MUST be a string. Multiple types via an array are not supported. `type: "integer"` is supported as a shortcut for `type: "number", multipleOf: 1`.
26662666
* allOf - Inline or referenced schema MUST be of a [Schema Object](#schema-object) and not a standard JSON Schema.
26672667
* oneOf - Inline or referenced schema MUST be of a [Schema Object](#schema-object) and not a standard JSON Schema.
26682668
* anyOf - Inline or referenced schema MUST be of a [Schema Object](#schema-object) and not a standard JSON Schema.

0 commit comments

Comments
 (0)