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

root attribute in config file no longer accept http:// URL since 1.26.1 #1836

Closed
lephuongbg opened this issue Jan 2, 2025 · 1 comment · Fixed by #1837
Closed

root attribute in config file no longer accept http:// URL since 1.26.1 #1836

lephuongbg opened this issue Jan 2, 2025 · 1 comment · Fixed by #1837
Labels
p1 Type: Bug Something isn't working

Comments

@lephuongbg
Copy link

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. Given this redocly.yaml file

    extends:
      - recommended
    apis:
      admin:
        root: http://api:5000/admin/api/openapi.json
  2. And this OpenAPI file(s)

  3. Run this command with these arguments...

    npx --yes @redocly/[email protected] bundle --config redocly-cli.yaml --remove-unused-components admin -o src/schemas/admin-api.yaml`
    
  4. See error

    http:/api:5000/admin/api/openapi.json does not exist or is invalid.
    
    Please provide a valid path.
    

Expected behavior

redocly cli should be able to fetch the openapi definition from provided URL

Logs

OpenAPI description

Redocly Version(s)

1.26.1

Node.js Version(s)

20

OS, environment

linux

Additional context

@lephuongbg lephuongbg added the Type: Bug Something isn't working label Jan 2, 2025
@tatomyr
Copy link
Contributor

tatomyr commented Jan 2, 2025

This is a bug indeed. Thank you for rising the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p1 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants