All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- PR #41 Fix for JSON example command with multiple properties by sserbin.
- PR #32 Separated parsing from compiling parts, by weirdan.
- Support for
additionalProperties
(#31) added by weirdan.
- Support for
allOf
added by weirdan.
- Suppress
exclusive*
when no min/max specified, by weirdan. - Significant refactoring of type creating by weirdan.
- Added
example
to Response and parameters to fix #22 submitted by oozolii.
- Short-hand JSON like notation for objects (
{...}
) and arrays ([...]
).
- Passthrough of commands to most recent property of object (#15) submitted by weirdan.
- Allow
HEAD
andOPTIONS
methods (#16) submitted by weirdan.
- Read-only definitions fix (#14) by petejohnson84.
- Removed hhvm Travis.ci tests due to bug on Travis.ci.
- Read-only properties fix (#13) by petejohnson84.
- Fixed issue with preprocessor statements being interpreted as plain text.
- Correctly parse parenthesis in object properties. Fixes issue #12 by ObliviousHarmony.
- Supply custom
format
for typeuuid
. - Improved some
string
type exception messages.
- New string-based builtin type
uuid
. - Allow model definitions to overwrite builtin types.
- Supports referencing a single
definition
(a.k.a.model
) from within anotherdefinition
. Fixes issue #10 by tecnom1k3.
- Parameter commands (i.e.
path
,query?
andbody
) inSwagger
context to create global parameter definitions. parameter
command (and aliasparam
) inOperation
context to create references to global parameter definitions.- Alternative signature for
response
for references to Response Definitions. description
command inSchema
context to set/change the description.title
command inSchema
context to set/change the title.StatementException
added. Can be thrown during the generator phase, after parsing the input. Contains agetStatement()
method which returns aStatement
object with which you can access the publicgetFile()
(if applicable) andgetLine()
methods.
- Removed the
type
argument from thedefinition
command in the Swagger context; it's always a Schema. Note that this is a backwards incompatible change!
- Removed the
define
command in theSwagger
context as it was in conflict with thedefine
command in the preprocessor. Replace use of this command with the previous available aliassesdefinition
ormodel
. Since thedefine
command was blocked by the preprocessor context, this deprecation shouldn't affect users. - Merged the
\SwaggerGen\Parser\Php\Statement
class (and tests) into the\SwaggerGen\Statement
class for universal file/line support. This shouldn't affect average users.