We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The regex on this line:
PHPSwaggerGen/SwaggerGen/Parser/Php/Parser.php
Line 159 in 752f0e4
Should be changed to: '~^@' . preg_quote(self::COMMENT_TAG) . '\\\\([a-z][-a-z]*[?!]?)\\s*(.*)$~'
'~^@' . preg_quote(self::COMMENT_TAG) . '\\\\([a-z][-a-z]*[?!]?)\\s*(.*)$~'
It fails when attempting to parse the following:
/** * @rest\definition Account * @rest\property! int[0,] id */
The resulting matches array looks like this:
Array ( [0] => @rest\property! int[0,] id [1] => property [2] => ! int[0,] id )
It is expected to look like this:
Array ( [0] => @rest\property! int[0,] id [1] => property! [2] => int[0,] id )
I am not particularly good with PHPUnit, so feel free to create a test for this case.
The text was updated successfully, but these errors were encountered:
Fix PHP parser such that it recognizes property! as a command and a…
property!
91fb26c
…dd tests for both optional and readonly suffixes. See vanderlee#44.
Fixed through your own pull request. Will bump version soon
Sorry, something went wrong.
No branches or pull requests
The regex on this line:
PHPSwaggerGen/SwaggerGen/Parser/Php/Parser.php
Line 159 in 752f0e4
Should be changed to:
'~^@' . preg_quote(self::COMMENT_TAG) . '\\\\([a-z][-a-z]*[?!]?)\\s*(.*)$~'
It fails when attempting to parse the following:
The resulting matches array looks like this:
It is expected to look like this:
I am not particularly good with PHPUnit, so feel free to create a test for this case.
The text was updated successfully, but these errors were encountered: