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

Boolean parameter not working in "Try It Out" mode #11

Open
dantonio-sap opened this issue Apr 19, 2022 · 0 comments
Open

Boolean parameter not working in "Try It Out" mode #11

dantonio-sap opened this issue Apr 19, 2022 · 0 comments

Comments

@dantonio-sap
Copy link

I found this issue when doing the following -

  • Set up basic CAP application using wizards.
  • Enable drafts as in this setting - Enable Drafts
  • Compile swagger file using default command - "cds compile srv --service all -o docs --to openapi"

The drafts APIs all include a parameter called "IsActiveEntity" which is a boolean parameter. It seems to look correct in the json file, but the "Try It Out" feature in the swagger page doesn't work because it seems to wrap the parameter value in quotes, instead of directly passing it in. Not sure if this breaks down here or somewhere in the swagger dist itself.

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

1 participant