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

[InvalidArgumentException] Invalid yml: `/config/swagger.yml #540

Closed
cnizzardini opened this issue Feb 24, 2024 · 0 comments · Fixed by #542
Closed

[InvalidArgumentException] Invalid yml: `/config/swagger.yml #540

cnizzardini opened this issue Feb 24, 2024 · 0 comments · Fixed by #542
Milestone

Comments

@cnizzardini
Copy link
Owner

cnizzardini commented Feb 24, 2024

Describe the bug

Encountered the following when navigating to swagger page.

[InvalidArgumentException] Invalid yml: `/config/swagger.yml`. yml must exist on the file system. 
An attempt was made to create `{omitted}/config/swagger.yml`, but permission was denied or the 
file path is bad. Either fix the file system permissions, create the file and/or both. Generally this 
value should be placed in your projects webroot directory.

To Reproduce

Steps to reproduce the behavior:

  1. Load up swagger page with non-writable permissions to config/swagger.yml

Expected behavior

  • Swagger page loads
  • Error message is incorrect, file should actually exist in config/

Version and Platform (please complete the following information):

  • OS/Platform: Linux
  • CakePHP: ^5.0
  • SwaggerBake Version: ^3.0

Additional context

Work around to this is giving write permissions to /config/swagger.yml. Fix will be adjusting the logic to not care about write permissions.

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

Successfully merging a pull request may close this issue.

1 participant