-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Resolves not locating singular table names and other refactors #171 Uses MixerApi/Core to locate models, entities, etc... * csfix * Updates SwaggerBake.Schema.created to use ModelDecorator * cs fix * Removes EntityDecorator and PropertyDecorator, now uses MixerApi/Core classes. * set mixerapi/core version * Support DTOs for XML and JSON request types #204 - Adds support for XML/JSON DTO via SwagDtoRequestBody annotation - Deprecates SwagDtoForm in favor of SwagDtoRequestBody * Updates composer and fixes CS issues - Removes minimum-stability and prefer-stable - Sets CakePHP version constraint to `~4.0` - Sets MixerApi/Core to `~1.0`
- Loading branch information
1 parent
7a0b786
commit cc7a3fd
Showing
57 changed files
with
534 additions
and
880 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
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,42 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace SwaggerBake\Lib\Annotation; | ||
|
||
/** | ||
* Property level annotation for use in your SwagDto classes. Read the comments to see all supported properties. | ||
* | ||
* @Annotation | ||
* @Target({"PROPERTY"}) | ||
* @Attributes({ | ||
* @Attribute("name", type = "string"), | ||
* @Attribute("type", type = "string"), | ||
* @Attribute("format", type = "string"), | ||
* @Attribute("description", type = "string"), | ||
* @Attribute("readOnly", type = "bool"), | ||
* @Attribute("writeOnly", type = "bool"), | ||
* @Attribute("required", type = "bool"), | ||
* @Attribute("multipleOf", type = "float"), | ||
* @Attribute("maximum", type = "float"), | ||
* @Attribute("exclusiveMaximum", type = "bool"), | ||
* @Attribute("minimum", type = "float"), | ||
* @Attribute("exclusiveMinimum", type = "bool"), | ||
* @Attribute("maxLength", type = "integer"), | ||
* @Attribute("minLength", type = "integer"), | ||
* @Attribute("pattern", type = "string"), | ||
* @Attribute("maxItems", type = "integer"), | ||
* @Attribute("minItems", type = "integer"), | ||
* @Attribute("uniqueItems", type = "bool"), | ||
* @Attribute("maxProperties", type = "integer"), | ||
* @Attribute("minProperties", type = "integer"), | ||
* @Attribute("enum", type = "array"), | ||
* }) | ||
* | ||
* Read OpenAPI specification for exact usage of the attributes: | ||
* @see https://swagger.io/specification/ search for "Schema Object" | ||
* @see https://swagger.io/docs/specification/data-models/data-types/?sbsearch=Data%20Format search for "data format" | ||
* @see AbstractSchemaProperty | ||
*/ | ||
class SwagDtoRequestBody extends AbstractSchemaProperty | ||
{ | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.