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.
- Expand defined preprocessor values in processed content.
- Test support for PHP 8.0 through PHP 8.5.
- Modernized the codebase for PHP 8 and current PHPUnit releases.
- Replaced the obsolete Travis CI configuration with GitHub Actions.
- Allow whitespace in quoted default values for string types.
- Fixed example case.
- PHP code quality improvements.
- PR #47; Fix array access PHP8 by daniol.
- Minor fixes for php-unit.
- PR #45 fixes #44; PHP Parser fails when parsing @rest\property! by SteenSchutt
- PR #42;
examplecommand: support for input containing special chars by sserbin.
- 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
allOfadded by weirdan.
- Suppress
exclusive*when no min/max specified, by weirdan. - Significant refactoring of type creating by weirdan.
- Added
exampleto 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
HEADandOPTIONSmethods (#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
formatfor typeuuid. - Improved some
stringtype 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) inSwaggercontext to create global parameter definitions. parametercommand (and aliasparam) inOperationcontext to create references to global parameter definitions.- Alternative signature for
responsefor references to Response Definitions. descriptioncommand inSchemacontext to set/change the description.titlecommand inSchemacontext to set/change the title.StatementExceptionadded. Can be thrown during the generator phase, after parsing the input. Contains agetStatement()method which returns aStatementobject with which you can access the publicgetFile()(if applicable) andgetLine()methods.
- Removed the
typeargument from thedefinitioncommand in the Swagger context; it's always a Schema. Note that this is a backwards incompatible change!
- Removed the
definecommand in theSwaggercontext as it was in conflict with thedefinecommand in the preprocessor. Replace use of this command with the previous available aliassesdefinitionormodel. Since thedefinecommand was blocked by the preprocessor context, this deprecation shouldn't affect users. - Merged the
\SwaggerGen\Parser\Php\Statementclass (and tests) into the\SwaggerGen\Statementclass for universal file/line support. This shouldn't affect average users.