Skip to content

Commit

Permalink
Add support for xml (and externalDocs and properties) inside a @swg\I…
Browse files Browse the repository at this point in the history
…tems. #279
  • Loading branch information
bfanger committed Jan 30, 2016
1 parent 6b1185e commit ebecbe9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 2.0.6-dev
- Add support for xml (and externalDocs and properties) inside a @SWG\Items. #279

## 2.0.5
- Removed JSON-Schema properties that are not supported in swagger. #273
- Added ordering filenames to guarantee a consistent output #263
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.4-dev
2.0.6-dev
3 changes: 2 additions & 1 deletion src/Annotations/ExternalDocumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ExternalDocumentation extends AbstractAnnotation
'Swagger\Annotations\Delete',
'Swagger\Annotations\Patch',
'Swagger\Annotations\Head',
'Swagger\Annotations\Options'
'Swagger\Annotations\Options',
'Swagger\Annotations\Items',
];
}
3 changes: 3 additions & 0 deletions src/Annotations/Items.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class Items extends Schema
/** @inheritdoc */
public static $_nested = [
'Swagger\Annotations\Items' => 'items',
'Swagger\Annotations\Property' => ['properties', 'property'],
'Swagger\Annotations\ExternalDocumentation' => 'externalDocs',
'Swagger\Annotations\Xml' => 'xml'
];

/** @inheritdoc */
Expand Down
1 change: 1 addition & 0 deletions src/Annotations/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ class Property extends Schema
'Swagger\Annotations\Definition',
'Swagger\Annotations\Schema',
'Swagger\Annotations\Property',
'Swagger\Annotations\Items',
];
}
3 changes: 2 additions & 1 deletion src/Annotations/Xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class Xml extends AbstractAnnotation
public static $_parents = [
'Swagger\Annotations\Schema',
'Swagger\Annotations\Property',
'Swagger\Annotations\Definition'
'Swagger\Annotations\Definition',
'Swagger\Annotations\Items',
];
}

0 comments on commit ebecbe9

Please sign in to comment.