Skip to content

Conversation

@tisonkun
Copy link

@tisonkun tisonkun commented Mar 11, 2024

This closes #452.

This supersedes #511.

}

// Prepend request base path, if applicable
if c.cfg.Path != "" {
Copy link
Author

@tisonkun tisonkun Mar 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't make openapi locally so perhaps we still need some formatting here. But the code functions are proper.

./etc/generate-openapi.sh
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Error opening file "/api/contract/openapi/src/legacy/paths/query.yml" 
ENOENT: no such file or directory, open '/api/contract/openapi/src/legacy/paths/query.yml'
make: *** [openapi] Error 1


// Prepend request base path, if applicable
if c.cfg.Path != "" {
url.Path = c.cfg.Path + url.Path
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to handle / properly. I don't know if there is an existing utility for it. But users can always self add/remove the / on demand.

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 this pull request may close these issues.

Feature Request: Support specifying path prefix for InfluxDB URL

1 participant