-
Notifications
You must be signed in to change notification settings - Fork 2
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
Returns Sample Values #2
Comments
Hi, thanks for giving the repository a try and filing an issue! There's
been more active development on this library's underlying dependencies, so
some things might have gone out of sync.
I'll try spinning everything up in a couple hours, see what needs a hotfix.
For the sake of debugging, could you please share:
- your OS version
- your contract
For the contract, a link to a pastebin would be just fine!
Thanks very much,
John O'Sullivan
…On Wed, Dec 19, 2018, 13:52 JohannesMayerConda ***@***.*** wrote:
I wanted to try this out...
Took me a while to get it running, here my quickfixes:
- Give absolute path in SwaggerService_template.hbs to
SwaggerServiceGenerator.js (might be a macOS issue)
- Give absolute path in abi2api/index.js to swagger-codegen-cli.jar
(might be a macOS issue)
- abi2api.js fixed by changing the lib path to:
parser.process(path.basename(contract_path, '.json') + "/" +
path.basename(contract_path, '.json') + "ContractLib" + "/" +
contractNameWithoutExtension + "Controller.js") -> this totally is a bug or
compatibility issue, right? It was "contract_lib" hardcoded and that
directory didn't exist
Now I have my api under http://localhost:8080/docs but it seems to return
just example values every time. Also the GET requests do not add parameters
as I would expect them to.
Just wanted to ask if this project is incomplete from where I now stand or
if there might be other things to fix?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADpNtS3QRPXaPMP598CwOf-hiRqHOu_tks5u6orogaJpZM4Za0b5>
.
|
Oh wow thanks for taking the time :) My OS: macOS mojave 10.14.1 Here a contract I quickly created that should be fine for simulation and does essentially what I've tried: And the contract's compiled json (via openzeppelin project): Also while you are at it please add web3 to the generated package.json dependencies. Otherwise you require users to have it installed globally (and I hate that ^^) |
I wanted to try this out...
Took me a while to get it running, here my quickfixes:
Now I have my api under http://localhost:8080/docs but it seems to return just example values every time. Also the GET requests do not add parameters as I would expect them to (also doesn't work if I try it manually). In code the parameter seem to never reach the method (empty object)
Just wanted to ask if this project is incomplete from where I now stand or if there might be other things to fix?
The text was updated successfully, but these errors were encountered: