'string', 'required' => '[string]', 'format' => 'string', 'collectionFormat' => ['csv', 'ssv', 'tsv', 'pipes', 'multi'], 'maximum' => 'number', 'exclusiveMaximum' => 'boolean', 'minimum' => 'number', 'exclusiveMinimum' => 'boolean', 'maxLength' => 'integer', 'minLength' => 'integer', 'pattern' => 'string', 'maxItems' => 'integer', 'minItems' => 'integer', 'uniqueItems' => 'boolean', 'multipleOf' => 'integer', ]; /** @inheritdoc */ public static $_nested = [ 'Swagger\Annotations\Items' => 'items', 'Swagger\Annotations\Property' => ['properties', 'property'], 'Swagger\Annotations\ExternalDocumentation' => 'externalDocs', 'Swagger\Annotations\Xml' => 'xml' ]; /** @inheritdoc */ public static $_parents = [ 'Swagger\Annotations\Response', 'Swagger\Annotations\Parameter', ]; public function validate($parents = [], $skip = [], $ref = '') { if ($this->type === 'array' && $this->items === null) { Logger::notice('@SWG\Items() is required when ' . $this->identity() . ' has type "array" in ' . $this->_context); return false; } return parent::validate($parents, $skip, $ref); } }