Skip to content

Commit

Permalink
Fixed in field
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaTretyak committed Mar 26, 2021
1 parent 75533cf commit ddf0a5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions versions/3.1/src/base-parameter-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ export class BaseParameterObject {
/**
* A brief description of the parameter. This could contain examples of use.
* [CommonMark syntax][1] MAY be used for rich text representation.
*
*
* [1]: https://spec.commonmark.org/
*/
description?: string;
/**
* Determines whether this parameter is mandatory. If the [parameter location][1]
* is `"path"`, this property is **REQUIRED** and its value MUST be `true`. Otherwise,
* the property MAY be included and its default value is `false`.
*
*
* [1]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#parameterIn
*/
required?: boolean;
Expand All @@ -31,7 +31,7 @@ export class BaseParameterObject {
* If [`style`][1] is used, and if behavior is `n/a` (cannot be serialized),
* the value of `allowEmptyValue` SHALL be ignored. Use of this property is NOT RECOMMENDED,
* as it is likely to be removed in a later revision.
*
*
* [1]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#parameterStyle
*/
allowEmptyValue?: boolean;
Expand All @@ -49,7 +49,7 @@ export class BaseParameterObject {
* for each value of the array or key-value pair of the map. For other types of parameters this
* property has no effect. When [`style`][1] is `form`, the default value is
* `true`. For all other styles, the default value is `false`.
*
*
* [1]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#parameterStyle
*/
explode?: boolean;
Expand All @@ -58,7 +58,7 @@ export class BaseParameterObject {
* [RFC3986][1] `:/?#[]@!$&'()*+,;=` to be included
* without percent-encoding. This property only applies to parameters with an `in` value
* of `query`. The default value is `false`.
*
*
* [1]: https://tools.ietf.org/html/rfc3986#section-2.2
*/
allowReserved?: boolean;
Expand Down Expand Up @@ -87,4 +87,4 @@ export class BaseParameterObject {
* the value describes it. The map MUST only contain one entry.
*/
content?: { [mediaTypeName: string]: MediaTypeObject };
}
}
2 changes: 1 addition & 1 deletion versions/3.1/src/parameter-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,5 @@ export class ParameterObject extends BaseParameterObject {
* The location of the parameter. Possible values are `"query"`, `"header"`, `"path"`
* or `"cookie"`.
*/
in: string;
in: 'query' | 'header' | 'path' | 'cookie';
}

0 comments on commit ddf0a5d

Please sign in to comment.