You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Primitives have an optional modifier property format. Swagger uses several known formats to more finely define the data type being used. However, the format property is an open string-valued property, and can have any value to support documentation needs. Formats such as "email", "uuid", etc., can be used even though they are not defined by this specification
Currently the lib is throwing notices when using non-swagger-predefined-formats:
Notice (1024): @swg\Parameter(name="id",in="path")->format "uuid" is invalid, expecting "int32", "int64", "float", "double", "byte", "date", "date-time" in \App\Controller\SwaggerController->index() in /home/vagrant/projects/my.cool.app/src/Controller/SwaggerController.php on line 30 [ROOT/vendor/zircote/swagger-php/src/Logger.php, line 38]
Please review before I create a PR.
Quoted from the 2.0 specification:
Currently the lib is throwing notices when using non-swagger-predefined-formats:
Caused by an
in_array
check against https://github.com/zircote/swagger-php/blob/master/src/Annotations/Parameter.php#L172My suggestion would be dropping that whole array now that formats (seem to be) non restricted anyways, would you agree?
The text was updated successfully, but these errors were encountered: