From 6e42c928761fbde330a3a5f6040cd4e5d3d4f62f Mon Sep 17 00:00:00 2001
From: Malek Mneri No details available. See: Using refs The relative or absolute path to an example. See: Using refs The key into `#/components/examples`.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
No details available.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The key into Components::parameters
or PathItem::parameters
array.
No details available.
See: Using refs
The relative or absolute path to a request body.
See: Using refs
Request body model name.
No details available.
See: Using refs
The relative or absolute path to a response.
See: Using refs
The key into Operations->responses array.
@@ -938,7 +938,7 @@ On top of this subset, there are extensions provided by this specification to al
---
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The key into Components->schemas array.
description
for more details.A description will provide explanation about the purpose of the instance described by this schema.
An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the
-value of this property.
The maximum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is less than, or equal to, the value of this attribute.
An object instance is valid against "minProperties" if its number of properties is greater than, or equal to,
-the value of this property.
The minimum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is greater than, or equal to, the value of this attribute.
An object instance is valid against this property if its property set contains all elements in this property's
array value.
Sets a default value to the parameter. The type of the value depends on the defined type.
No details available.
The maximum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the maximum value is not included in the set of valid values.
No details available.
The minimum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the minimum value is not included in the set of valid values.
No details available.
The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
No details available.
The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
A string instance is considered valid if the regular expression matches the instance successfully.
No details available.
The maximum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
No details available.
The minimum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
No details available.
A boolean value indicating whether all items in an array property must be unique.
+If this attribute is set to true, then all items in the array must be unique.
No details available.
A collection of allowable values for a property.
+A property instance is valid against this attribute if its value is one of the values specified in this collection.
A numeric instance is valid against "multipleOf" if the result of the division of the instance by this
property's value is an integer.
No details available.
See: Using refs
The relative or absolute path to a security scheme.
See: Using refs
The key into OpenApi->security array.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The key into Components->schemas array.
description
for more details.
A description will provide explanation about the purpose of the instance described by this schema.
An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the
-value of this property.
The maximum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is less than, or equal to, the value of this attribute.
An object instance is valid against "minProperties" if its number of properties is greater than, or equal to,
-the value of this property.
The minimum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is greater than, or equal to, the value of this attribute.
An object instance is valid against this property if its property set contains all elements in this property's
array value.
No details available.
A collection of properties to define for an object. Each property is represented as an instance of the Property class.
The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or
"object".
Sets a default value to the parameter. The type of the value depends on the defined type.
No details available.
The maximum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the maximum value is not included in the set of valid values.
No details available.
The minimum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the minimum value is not included in the set of valid values.
No details available.
The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
No details available.
The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
No details available.
The maximum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
No details available.
The minimum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
No details available.
A boolean value indicating whether all items in an array property must be unique.
+If this attribute is set to true, then all items in the array must be unique.
A string instance is considered valid if the regular expression matches the instance successfully.
No details available.
A collection of allowable values for a property.
+A property instance is valid against this attribute if its value is one of the values specified in this collection.
Adds support for polymorphism.
@@ -276,7 +282,7 @@ Default value is false.
If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue shall be ignored.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The schema defining the type used for the parameter.
No details available.
See: Using refs
The relative or absolute path to an example.
See: Using refs
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
@@ -768,7 +774,7 @@ These will be ignored but can be used for custom processing.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
No details available.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The schema defining the type used for the parameter.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The key into Components->schemas array.
description
for more details.
A description will provide explanation about the purpose of the instance described by this schema.
An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the
-value of this property.
The maximum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is less than, or equal to, the value of this attribute.
An object instance is valid against "minProperties" if its number of properties is greater than, or equal to,
-the value of this property.
The minimum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is greater than, or equal to, the value of this attribute.
An object instance is valid against this property if its property set contains all elements in this property's
array value.
No details available.
A collection of properties to define for an object. Each property is represented as an instance of the Property class.
The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or
"object".
Sets a default value to the parameter. The type of the value depends on the defined type.
No details available.
The maximum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the maximum value is not included in the set of valid values.
No details available.
The minimum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the minimum value is not included in the set of valid values.
No details available.
The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
No details available.
The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
No details available.
The maximum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
No details available.
The minimum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
No details available.
A boolean value indicating whether all items in an array property must be unique.
+If this attribute is set to true, then all items in the array must be unique.
A string instance is considered valid if the regular expression matches the instance successfully.
No details available.
A collection of allowable values for a property.
+A property instance is valid against this attribute if its value is one of the values specified in this collection.
Adds support for polymorphism.
@@ -1091,9 +1103,10 @@ These will be ignored but can be used for custom processing.
No details available.
An associative array of Examples attributes. The keys represent the name of the example and the values are instances of the Examples attribute.
+Each example is used to show how the content of the request or response should look like.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The key into Components->schemas array.
description
for more details.
A description will provide explanation about the purpose of the instance described by this schema.
An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the
-value of this property.
The maximum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is less than, or equal to, the value of this attribute.
An object instance is valid against "minProperties" if its number of properties is greater than, or equal to,
-the value of this property.
The minimum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is greater than, or equal to, the value of this attribute.
An object instance is valid against this property if its property set contains all elements in this property's
array value.
No details available.
A collection of properties to define for an object. Each property is represented as an instance of the Property class.
The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or
"object".
Sets a default value to the parameter. The type of the value depends on the defined type.
No details available.
The maximum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the maximum value is not included in the set of valid values.
No details available.
The minimum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the minimum value is not included in the set of valid values.
No details available.
The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
No details available.
The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
No details available.
The maximum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
No details available.
The minimum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
No details available.
A boolean value indicating whether all items in an array property must be unique.
+If this attribute is set to true, then all items in the array must be unique.
A string instance is considered valid if the regular expression matches the instance successfully.
No details available.
A collection of allowable values for a property.
+A property instance is valid against this attribute if its value is one of the values specified in this collection.
Adds support for polymorphism.
@@ -1545,7 +1564,7 @@ Default value is false.
If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue shall be ignored.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The schema defining the type used for the parameter.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The schema defining the type used for the parameter.
The key into Schema->properties array.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The key into Components->schemas array.
description
for more details.
A description will provide explanation about the purpose of the instance described by this schema.
An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the
-value of this property.
The maximum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is less than, or equal to, the value of this attribute.
An object instance is valid against "minProperties" if its number of properties is greater than, or equal to,
-the value of this property.
The minimum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is greater than, or equal to, the value of this attribute.
An object instance is valid against this property if its property set contains all elements in this property's
array value.
No details available.
A collection of properties to define for an object. Each property is represented as an instance of the Property class.
The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or
"object".
Sets a default value to the parameter. The type of the value depends on the defined type.
No details available.
The maximum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the maximum value is not included in the set of valid values.
No details available.
The minimum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the minimum value is not included in the set of valid values.
No details available.
The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
No details available.
The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
No details available.
The maximum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
No details available.
The minimum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
No details available.
A boolean value indicating whether all items in an array property must be unique.
+If this attribute is set to true, then all items in the array must be unique.
A string instance is considered valid if the regular expression matches the instance successfully.
No details available.
A collection of allowable values for a property.
+A property instance is valid against this attribute if its value is one of the values specified in this collection.
Adds support for polymorphism.
@@ -2196,7 +2221,7 @@ Default value is false.
If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue shall be ignored.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The schema defining the type used for the parameter.
No details available.
See: Using refs
The relative or absolute path to a request body.
See: Using refs
Request body model name.
No details available.
See: Using refs
The relative or absolute path to a response.
See: Using refs
The key into Operations->responses array.
@@ -2363,7 +2388,7 @@ These will be ignored but can be used for custom processing.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The key into Components->schemas array.
description
for more details.
A description will provide explanation about the purpose of the instance described by this schema.
An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the
-value of this property.
The maximum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is less than, or equal to, the value of this attribute.
An object instance is valid against "minProperties" if its number of properties is greater than, or equal to,
-the value of this property.
The minimum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is greater than, or equal to, the value of this attribute.
An object instance is valid against this property if its property set contains all elements in this property's
array value.
No details available.
A collection of properties to define for an object. Each property is represented as an instance of the Property class.
The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or
"object".
Sets a default value to the parameter. The type of the value depends on the defined type.
No details available.
The maximum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the maximum value is not included in the set of valid values.
No details available.
The minimum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the minimum value is not included in the set of valid values.
No details available.
The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
No details available.
The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
No details available.
The maximum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
No details available.
The minimum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
No details available.
A boolean value indicating whether all items in an array property must be unique.
+If this attribute is set to true, then all items in the array must be unique.
A string instance is considered valid if the regular expression matches the instance successfully.
No details available.
A collection of allowable values for a property.
+A property instance is valid against this attribute if its value is one of the values specified in this collection.
Adds support for polymorphism.
@@ -2502,7 +2533,7 @@ These will be ignored but can be used for custom processing.
No details available.
See: Using refs
The relative or absolute path to a security scheme.
See: Using refs
The key into OpenApi->security array.
No details available.
No details available.
See: Using refs
The relative or absolute path to the endpoint.
See: Using refs
The key into Components->schemas array.
description
for more details.
A description will provide explanation about the purpose of the instance described by this schema.
An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the
-value of this property.
The maximum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is less than, or equal to, the value of this attribute.
An object instance is valid against "minProperties" if its number of properties is greater than, or equal to,
-the value of this property.
The minimum number of properties allowed in an object instance.
+An object instance is valid against this property if its number of properties is greater than, or equal to, the value of this attribute.
An object instance is valid against this property if its property set contains all elements in this property's
array value.
No details available.
A collection of properties to define for an object. Each property is represented as an instance of the Property class.
The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or
"object".
Sets a default value to the parameter. The type of the value depends on the defined type.
No details available.
The maximum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the maximum value is not included in the set of valid values.
No details available.
The minimum value allowed for a numeric property. This value must be a number.
No details available.
A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values.
+If this attribute is set to true, then the minimum value is not included in the set of valid values.
No details available.
The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
No details available.
The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
No details available.
The maximum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
No details available.
The minimum number of items allowed in an array property.
+An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
No details available.
A boolean value indicating whether all items in an array property must be unique.
+If this attribute is set to true, then all items in the array must be unique.
A string instance is considered valid if the regular expression matches the instance successfully.
No details available.
A collection of allowable values for a property.
+A property instance is valid against this attribute if its value is one of the values specified in this collection.
Adds support for polymorphism. No details available. This takes 'cookie' as the default location. No details available. This takes 'header' as the default location. No details available. This takes 'path' as the default location. No details available. No details available. This takes 'query' as the default location.
diff --git a/src/Annotations/Examples.php b/src/Annotations/Examples.php
index fc26cc9f2..a1f3feb4f 100644
--- a/src/Annotations/Examples.php
+++ b/src/Annotations/Examples.php
@@ -14,6 +14,7 @@
class Examples extends AbstractAnnotation
{
/**
+ * The relative or absolute path to an example.
* @see [Using refs](https://swagger.io/docs/specification/using-ref/)
*
* @var string|class-string|object
diff --git a/src/Annotations/Header.php b/src/Annotations/Header.php
index 385488b52..2f1e613df 100644
--- a/src/Annotations/Header.php
+++ b/src/Annotations/Header.php
@@ -15,6 +15,7 @@
class Header extends AbstractAnnotation
{
/**
+ * The relative or absolute path to the endpoint.
* @see [Using refs](https://swagger.io/docs/specification/using-ref/)
*
* @var string|class-string|object
diff --git a/src/Annotations/JsonContent.php b/src/Annotations/JsonContent.php
index 348f8d625..d93d10a44 100644
--- a/src/Annotations/JsonContent.php
+++ b/src/Annotations/JsonContent.php
@@ -18,6 +18,8 @@
class JsonContent extends Schema
{
/**
+ * An associative array of Examples attributes. The keys represent the name of the example and the values are instances of the Examples attribute.
+ * Each example is used to show how the content of the request or response should look like.
* @var array
## [Delete](https://github.com/zircote/swagger-php/tree/master/src/Annotations/Delete.php)
@@ -355,7 +355,7 @@ A `@OA\Request` header parameter.
---
## [Info](https://github.com/zircote/swagger-php/tree/master/src/Annotations/Info.php)
@@ -768,7 +768,7 @@ A `@OA\Request` path parameter.
---
@@ -846,7 +846,7 @@ A `@OA\Request` query parameter.
---
## [RequestBody](https://github.com/zircote/swagger-php/tree/master/src/Annotations/RequestBody.php)
diff --git a/docs/reference/attributes.md b/docs/reference/attributes.md
index 4a7e7395e..b4a3c4f27 100644
--- a/docs/reference/attributes.md
+++ b/docs/reference/attributes.md
@@ -265,7 +265,7 @@ This could contain examples of use.
CommonMark syntax may be used for rich text representation.
No details available.
This takes 'cookie' as the default location.
Determines whether this parameter is mandatory.
@@ -836,7 +836,7 @@ This could contain examples of use.
CommonMark syntax may be used for rich text representation.
No details available.
This takes 'header' as the default location.
Determines whether this parameter is mandatory.
@@ -1779,7 +1779,7 @@ This could contain examples of use.
CommonMark syntax may be used for rich text representation.
No details available.
This takes 'path' as the default location.
No details available.
No details available.
This takes 'query' as the default location.
Determines whether this parameter is mandatory. An object instance is valid against this property if its property set contains all elements in this property's The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or The type of the schema/property. The extending format for the previously mentioned type. See Data Type Formats for further details. Determines the format of the array if type array is used. The maximum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values. A boolean indicating whether the maximum value is excluded from the set of valid values. The minimum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values. A boolean indicating whether the minimum value is excluded from the set of valid values. The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute. The maximum length of a string property. The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute. The minimum length of a string property. A string instance is considered valid if the regular expression matches the instance successfully. The maximum number of items allowed in an array property. The minimum number of items allowed in an array property. A boolean value indicating whether all items in an array property must be unique. A collection of allowable values for a property. A numeric instance is valid against "multipleOf" if the result of the division of the instance by this An object instance is valid against this property if its property set contains all elements in this property's A collection of properties to define for an object. Each property is represented as an instance of the Property class. A collection of properties to define for an object. The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or The type of the schema/property. The extending format for the previously mentioned type. See Data Type Formats for further details. Required if type is "array". Describes the type of items in the array. Determines the format of the array if type array is used. The maximum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values. A boolean indicating whether the maximum value is excluded from the set of valid values. The minimum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values. A boolean indicating whether the minimum value is excluded from the set of valid values. The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute. The maximum length of a string property. The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute. The minimum length of a string property. The maximum number of items allowed in an array property. The minimum number of items allowed in an array property. A boolean value indicating whether all items in an array property must be unique. A string instance is considered valid if the regular expression matches the instance successfully. A collection of allowable values for a property. Adds support for polymorphism. An object instance is valid against this property if its property set contains all elements in this property's A collection of properties to define for an object. Each property is represented as an instance of the Property class. A collection of properties to define for an object. The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or The type of the schema/property. The extending format for the previously mentioned type. See Data Type Formats for further details. Required if type is "array". Describes the type of items in the array. Determines the format of the array if type array is used. The maximum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values. A boolean indicating whether the maximum value is excluded from the set of valid values. The minimum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values. A boolean indicating whether the minimum value is excluded from the set of valid values. The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute. The maximum length of a string property. The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute. The minimum length of a string property. The maximum number of items allowed in an array property. The minimum number of items allowed in an array property. A boolean value indicating whether all items in an array property must be unique. A string instance is considered valid if the regular expression matches the instance successfully. A collection of allowable values for a property. Adds support for polymorphism. An associative array of Examples attributes. The keys represent the name of the example and the values are instances of the Examples attribute. An associative array of Examples attributes. The relative or absolute path to the endpoint. See: Using refs An object instance is valid against this property if its property set contains all elements in this property's A collection of properties to define for an object. Each property is represented as an instance of the Property class. A collection of properties to define for an object. The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or The type of the schema/property. The extending format for the previously mentioned type. See Data Type Formats for further details. Required if type is "array". Describes the type of items in the array. Determines the format of the array if type array is used. The maximum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values. A boolean indicating whether the maximum value is excluded from the set of valid values. The minimum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values. A boolean indicating whether the minimum value is excluded from the set of valid values. The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute. The maximum length of a string property. The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute. The minimum length of a string property. The maximum number of items allowed in an array property. The minimum number of items allowed in an array property. A boolean value indicating whether all items in an array property must be unique. A string instance is considered valid if the regular expression matches the instance successfully. A collection of allowable values for a property. Adds support for polymorphism. An object instance is valid against this property if its property set contains all elements in this property's A collection of properties to define for an object. Each property is represented as an instance of the Property class. A collection of properties to define for an object. The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or The type of the schema/property. The extending format for the previously mentioned type. See Data Type Formats for further details. Required if type is "array". Describes the type of items in the array. Determines the format of the array if type array is used. The maximum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values. A boolean indicating whether the maximum value is excluded from the set of valid values. The minimum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values. A boolean indicating whether the minimum value is excluded from the set of valid values. The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute. The maximum length of a string property. The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute. The minimum length of a string property. The maximum number of items allowed in an array property. The minimum number of items allowed in an array property. A boolean value indicating whether all items in an array property must be unique. A string instance is considered valid if the regular expression matches the instance successfully. A collection of allowable values for a property. Adds support for polymorphism. An object instance is valid against this property if its property set contains all elements in this property's A collection of properties to define for an object. Each property is represented as an instance of the Property class. A collection of properties to define for an object. The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or The type of the schema/property. The extending format for the previously mentioned type. See Data Type Formats for further details. Required if type is "array". Describes the type of items in the array. Determines the format of the array if type array is used. The maximum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values. A boolean indicating whether the maximum value is excluded from the set of valid values. The minimum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values. A boolean indicating whether the minimum value is excluded from the set of valid values. The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute. The maximum length of a string property. The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute. The minimum length of a string property. The maximum number of items allowed in an array property. The minimum number of items allowed in an array property. A boolean value indicating whether all items in an array property must be unique. A string instance is considered valid if the regular expression matches the instance successfully. A collection of allowable values for a property. Adds support for polymorphism. An object instance is valid against this property if its property set contains all elements in this property's A collection of properties to define for an object. Each property is represented as an instance of the Property class. A collection of properties to define for an object. The type of the schema/property. The value MUST be one of "string", "number", "integer", "boolean", "array" or The type of the schema/property. The extending format for the previously mentioned type. See Data Type Formats for further details. Required if type is "array". Describes the type of items in the array. Determines the format of the array if type array is used. The maximum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the maximum value specified in the maximum attribute is excluded from the set of valid values. A boolean indicating whether the maximum value is excluded from the set of valid values. The minimum value allowed for a numeric property. This value must be a number. A boolean value indicating whether the minimum value specified in the minimum attribute is excluded from the set of valid values. A boolean indicating whether the minimum value is excluded from the set of valid values. The maximum length of a string property. A string instance is valid against this property if its length is less than, or equal to, the value of this attribute. The maximum length of a string property. The minimum length of a string property. A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute. The minimum length of a string property. The maximum number of items allowed in an array property. The minimum number of items allowed in an array property. A boolean value indicating whether all items in an array property must be unique. A string instance is considered valid if the regular expression matches the instance successfully. A collection of allowable values for a property. Adds support for polymorphism.
diff --git a/src/Annotations/CookieParameter.php b/src/Annotations/CookieParameter.php
index b02ae01d9..5c2f42205 100644
--- a/src/Annotations/CookieParameter.php
+++ b/src/Annotations/CookieParameter.php
@@ -15,6 +15,7 @@ class CookieParameter extends Parameter
{
/**
* @inheritdoc
+ * This takes 'cookie' as the default location.
*/
public $in = 'cookie';
}
diff --git a/src/Annotations/HeaderParameter.php b/src/Annotations/HeaderParameter.php
index 27e3eec9d..439a2c018 100644
--- a/src/Annotations/HeaderParameter.php
+++ b/src/Annotations/HeaderParameter.php
@@ -15,6 +15,7 @@ class HeaderParameter extends Parameter
{
/**
* @inheritdoc
+ * This takes 'header' as the default location.
*/
public $in = 'header';
}
diff --git a/src/Annotations/PathParameter.php b/src/Annotations/PathParameter.php
index 9e600b479..4e3d42c8b 100644
--- a/src/Annotations/PathParameter.php
+++ b/src/Annotations/PathParameter.php
@@ -15,6 +15,7 @@ class PathParameter extends Parameter
{
/**
* @inheritdoc
+ * This takes 'path' as the default location.
*/
public $in = 'path';
diff --git a/src/Annotations/QueryParameter.php b/src/Annotations/QueryParameter.php
index 0f5fe299c..6ee3e47f8 100644
--- a/src/Annotations/QueryParameter.php
+++ b/src/Annotations/QueryParameter.php
@@ -15,6 +15,7 @@ class QueryParameter extends Parameter
{
/**
* @inheritdoc
+ * This takes 'query' as the default location.
*/
public $in = 'query';
}
From abf3d318db7081fe7ac31b64351cb1f2b0605934 Mon Sep 17 00:00:00 2001
From: Malek Mneri
array value.
-"object".
+
+The value MUST be one of "string", "number", "integer", "boolean", "array" or "object".
+
Possible values are:
- csv: comma separated values foo,bar.
- ssv: space separated values foo bar.
@@ -976,30 +978,40 @@ Default value is csv.
-If this attribute is set to true, then the maximum value is not included in the set of valid values.
+
+When set to true, the maximum value is excluded, and when false or not specified, it is included.
-If this attribute is set to true, then the minimum value is not included in the set of valid values.
+
+When set to true, the minimum value is excluded, and when false or not specified, it is included.
+
+A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
+
+A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
+
If this attribute is set to true, then all items in the array must be unique.
+
A property instance is valid against this attribute if its value is one of the values specified in this collection.
diff --git a/docs/reference/attributes.md b/docs/reference/attributes.md
index b4a3c4f27..c4ebcf0c2 100644
--- a/docs/reference/attributes.md
+++ b/docs/reference/attributes.md
@@ -41,16 +41,20 @@ An object instance is valid against this property if its number of properties is
array value.
+
+Each property is represented as an instance of the Property class.
-"object".
+
+The value MUST be one of "string", "number", "integer", "boolean", "array" or "object".
+
Possible values are:
- csv: comma separated values foo,bar.
- ssv: space separated values foo bar.
@@ -64,30 +68,40 @@ Default value is csv.
-If this attribute is set to true, then the maximum value is not included in the set of valid values.
+
+When set to true, the maximum value is excluded, and when false or not specified, it is included.
-If this attribute is set to true, then the minimum value is not included in the set of valid values.
+
+When set to true, the minimum value is excluded, and when false or not specified, it is included.
+
+A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
+
+A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
+
If this attribute is set to true, then all items in the array must be unique.
+
A property instance is valid against this attribute if its value is one of the values specified in this collection.
@@ -983,16 +997,20 @@ An object instance is valid against this property if its number of properties is
array value.
+
+Each property is represented as an instance of the Property class.
-"object".
+
+The value MUST be one of "string", "number", "integer", "boolean", "array" or "object".
+
Possible values are:
- csv: comma separated values foo,bar.
- ssv: space separated values foo bar.
@@ -1006,30 +1024,40 @@ Default value is csv.
-If this attribute is set to true, then the maximum value is not included in the set of valid values.
+
+When set to true, the maximum value is excluded, and when false or not specified, it is included.
-If this attribute is set to true, then the minimum value is not included in the set of valid values.
+
+When set to true, the minimum value is excluded, and when false or not specified, it is included.
+
+A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
+
+A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
+
If this attribute is set to true, then all items in the array must be unique.
+
A property instance is valid against this attribute if its value is one of the values specified in this collection.
@@ -1103,7 +1131,9 @@ These will be ignored but can be used for custom processing.
+
+
+The keys represent the name of the example and the values are instances of the Examples attribute.
Each example is used to show how the content of the request or response should look like.
array value.
+
+Each property is represented as an instance of the Property class.
-"object".
+
+The value MUST be one of "string", "number", "integer", "boolean", "array" or "object".
+
Possible values are:
- csv: comma separated values foo,bar.
- ssv: space separated values foo bar.
@@ -1148,30 +1182,40 @@ Default value is csv.
-If this attribute is set to true, then the maximum value is not included in the set of valid values.
+
+When set to true, the maximum value is excluded, and when false or not specified, it is included.
-If this attribute is set to true, then the minimum value is not included in the set of valid values.
+
+When set to true, the minimum value is excluded, and when false or not specified, it is included.
+
+A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
+
+A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
+
If this attribute is set to true, then all items in the array must be unique.
+
A property instance is valid against this attribute if its value is one of the values specified in this collection.
@@ -1975,16 +2019,20 @@ An object instance is valid against this property if its number of properties is
array value.
+
+Each property is represented as an instance of the Property class.
-"object".
+
+The value MUST be one of "string", "number", "integer", "boolean", "array" or "object".
+
Possible values are:
- csv: comma separated values foo,bar.
- ssv: space separated values foo bar.
@@ -1998,30 +2046,40 @@ Default value is csv.
-If this attribute is set to true, then the maximum value is not included in the set of valid values.
+
+When set to true, the maximum value is excluded, and when false or not specified, it is included.
-If this attribute is set to true, then the minimum value is not included in the set of valid values.
+
+When set to true, the minimum value is excluded, and when false or not specified, it is included.
+
+A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
+
+A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
+
If this attribute is set to true, then all items in the array must be unique.
+
A property instance is valid against this attribute if its value is one of the values specified in this collection.
@@ -2407,16 +2465,20 @@ An object instance is valid against this property if its number of properties is
array value.
+
+Each property is represented as an instance of the Property class.
-"object".
+
+The value MUST be one of "string", "number", "integer", "boolean", "array" or "object".
+
Possible values are:
- csv: comma separated values foo,bar.
- ssv: space separated values foo bar.
@@ -2430,30 +2492,40 @@ Default value is csv.
-If this attribute is set to true, then the maximum value is not included in the set of valid values.
+
+When set to true, the maximum value is excluded, and when false or not specified, it is included.
-If this attribute is set to true, then the minimum value is not included in the set of valid values.
+
+When set to true, the minimum value is excluded, and when false or not specified, it is included.
+
+A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
+
+A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
+
If this attribute is set to true, then all items in the array must be unique.
+
A property instance is valid against this attribute if its value is one of the values specified in this collection.
@@ -2841,16 +2913,20 @@ An object instance is valid against this property if its number of properties is
array value.
+
+Each property is represented as an instance of the Property class.
-"object".
+
+The value MUST be one of "string", "number", "integer", "boolean", "array" or "object".
+
Possible values are:
- csv: comma separated values foo,bar.
- ssv: space separated values foo bar.
@@ -2864,30 +2940,40 @@ Default value is csv.
-If this attribute is set to true, then the maximum value is not included in the set of valid values.
+
+When set to true, the maximum value is excluded, and when false or not specified, it is included.
-If this attribute is set to true, then the minimum value is not included in the set of valid values.
+
+When set to true, the minimum value is excluded, and when false or not specified, it is included.
+
+A string instance is valid against this property if its length is less than, or equal to, the value of this attribute.
+
+A string instance is valid against this property if its length is greater than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is less than, or equal to, the value of this attribute.
+
An array instance is valid against this property if its number of items is greater than, or equal to, the value of this attribute.
+
If this attribute is set to true, then all items in the array must be unique.
+
A property instance is valid against this attribute if its value is one of the values specified in this collection.
diff --git a/src/Annotations/JsonContent.php b/src/Annotations/JsonContent.php
index c28acad1e..357db5ce6 100644
--- a/src/Annotations/JsonContent.php
+++ b/src/Annotations/JsonContent.php
@@ -18,7 +18,9 @@
class JsonContent extends Schema
{
/**
- * An associative array of Examples attributes. The keys represent the name of the example and the values are instances of the Examples attribute.
+ * An associative array of Examples attributes.
+ *
+ * The keys represent the name of the example and the values are instances of the Examples attribute.
* Each example is used to show how the content of the request or response should look like.
*
* @var array