Skip to content
New issue

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

OAS 3: ErrorException : Unexpected field "basePath" for @OAS\OpenApi(), expecting "openapi", "info", "servers", "paths", "components", "tags", "externalDocs", "x" #147

Closed
xl32 opened this issue Jun 11, 2018 · 1 comment

Comments

@xl32
Copy link
Contributor

xl32 commented Jun 11, 2018

  • L5-Swagger Version: 5.6.4 (composer show | grep l5-swagger)
  • PHP Version: PHP 7.2.6 (cli) (built: May 22 2018 16:22:08) ( NTS )
  • OS: Fedora 27

Description:

I'm receiving exception on docs generation with OAS 3 and setting L5_SWAGGER_BASE_PATH in env:
OAS 3: ErrorException : Unexpected field "basePath" for @oas\OpenApi(), expecting "openapi", "info", "servers", "paths", "components", "tags", "externalDocs", "x"

Steps To Reproduce:

  1. Set L5_SWAGGER_BASE_PATH=http://example.com/api/v1 in env;
  2. Require "zircote/swagger-php": "3.*" in comsposer.json;
  3. Generate docs and observe error.

Please also review my proposed fix in PR #146.

@DarkaOnLine
Copy link
Owner

resolved #146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants