forked from zircote/swagger-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request zircote#1 from zircote/3.x
Migrate all examples to OpenAPI (zircote#488)
- Loading branch information
Showing
11 changed files
with
63 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,3 @@ | ||
# Changelog | ||
|
||
## 2.0.11 | ||
|
||
- Implemented Swagger->ref(). $swagger->ref('#/info/contact') === $swagger->info->contact | ||
- Added validation of internal refs. | ||
- Misc typos and improved unittests #399, #402 | ||
|
||
## 2.0.10 | ||
|
||
- Fix errors when parsing php7 anonymous class #380, #390 | ||
- Added support for linked files and directories #393 | ||
- Added support for $ref in deserialize() #369 | ||
- Misc documentation tweaks. | ||
|
||
## 2.0.9 | ||
|
||
- Added support for PHP 7.1 and dropped support for PHP 5.5 and below | ||
- Added `composer test` script | ||
- Added support for custom DocParser->setImports() #360 | ||
|
||
## 2.0.8 | ||
|
||
- Dynamic Definitions / partial support #301 | ||
- By default only scan *.php files #350 | ||
- Removed silence operator @, improves compatiblity custom errorhandlers #331 | ||
- Additional datetime classes & interfaces #338 | ||
- Fixed case of UNDEFINED constants namespaces, improves hhvm compatibility #319 | ||
- Misc improvements to the docs | ||
|
||
## 2.0.7 | ||
|
||
- Beter validation of type="file" #305 | ||
- Augment Operations summary and description based on the comment. #293 | ||
- Bugfixes #300 | ||
- Add support for xml (and externalDocs and properties) inside a @SWG\Items. #279 | ||
- Nested properties are no longer injected into the Definition #297 | ||
- Fixed nesting issue with verbose property notation #297 | ||
|
||
## 2.0.6 | ||
|
||
- Added Deserializer for converting json string into a Swagger Annotations object. #290 | ||
- Various readme improvements #284 #286 | ||
- Various PSR-2 coding standard fixes #291 | ||
- Travis now enforces passing PHP CodeSniffer PSR-2 tests #291 | ||
- Use badges from shields.io #288 | ||
|
||
## 2.0.5 | ||
|
||
- Removed JSON-Schema properties that are not supported in swagger. #273 | ||
- Added ordering filenames to guarantee a consistent output #263 | ||
|
||
## 2.0.4 | ||
|
||
- Fixed minor regression #254 | ||
- Removed format restrictions from the remaining annotations #253 | ||
|
||
## 2.0.3 | ||
|
||
- Removed format restrictions #253 | ||
- Fixed a bug with inherited properties #250 | ||
|
||
## 2.0.2 | ||
|
||
- Added support for @SWG\Head & @SWG\Options for documenting the HEAD and OPTIONS responses | ||
- Removed restrictions in @SWG\Items, allow @SWG\Property and other @SWG\Schema options. | ||
|
||
## 2.0.1 | ||
|
||
- Minimal support for traits (no inheritance) | ||
|
||
## 2.0.0 | ||
|
||
- Generates swagger.json with Swagger Specification v2 | ||
- New simplified architecture (crawl -> analysis -> processors -> validation -> output) | ||
The changelog is moved to the [releases page](https://github.com/zircote/swagger-php/releases) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<?php declare(strict_types=1); | ||
|
||
/** | ||
* @license Apache 2.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* Created by IntelliJ IDEA. | ||
* User: sonrac | ||
* Date: 3/12/18 | ||
* Time: 10:25 AM | ||
*/ | ||
|
||
namespace SwaggerTests\Fixtures; | ||
|
||
/** | ||
* @OAS\Schema( | ||
* schema="UsingVar", | ||
* type="object", | ||
* required={"name"} | ||
* ) | ||
*/ | ||
class UsingVar | ||
{ | ||
/** | ||
* @var string | ||
* @OAS\Property | ||
*/ | ||
private $name; | ||
|
||
/** | ||
* @var \DateTimeInterface | ||
* @OAS\Property(ref="#/components/schemas/date") | ||
*/ | ||
private $createdAt; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters