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

Configuration "sampleUrl" not working as expected #1058

Closed
yyFilteredAI opened this issue Oct 22, 2021 · 4 comments
Closed

Configuration "sampleUrl" not working as expected #1058

yyFilteredAI opened this issue Oct 22, 2021 · 4 comments
Labels

Comments

@yyFilteredAI
Copy link

Describe the bug

Setting sampleUrl to be boolean true in the apidoc.json file results in a string true prefix rather than what's described in the documentation,

If set to true, the form will be visible and the same URL as the current document will be used

Steps to reproduce

apidoc.json

{
  "name": "Demo",
  "version": "0.50",
  "title": "",
  "description": "",
  "sampleUrl": true
}

run apidoc command and open the webpage:
Screen Shot 2021-10-22 at 1 21 38 AM

Information

  • Version of apidoc: 0.50.0, node v14.18.0
  • Operating system: MacOS
  • Browser: any
@NicolasCARPi
Copy link
Collaborator

Thanks for the bug report.

@yyFilteredAI
Copy link
Author

Just updated to the latest version 0.50.1, and looks like the fix only removes the boolean true from the sample request URL while the major problem is still there - it doesn't add the current page url as a prefix:

Screen Shot 2021-10-26 at 10 25 55 AM

In the screenshot above, what I would expect is instead of /city, it is something like https://xxxx/city. Did I miss anything?

@NicolasCARPi
Copy link
Collaborator

It's not shown in the input but the request goes to the current server, which is the intended behavior.

@yyFilteredAI
Copy link
Author

It's not shown in the input but the request goes to the current server, which is the intended behavior.

Got it, thanks

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

No branches or pull requests

2 participants