-
Notifications
You must be signed in to change notification settings - Fork 57
Open Api Library #409
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
Open Api Library #409
Conversation
Removed open api generated code Removed open api templates Updated open api imports Patched some client call lines Added TransactionHttp tests mocking open api route clients.
Open api released version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added small change to fix #405. sorry @fboucquez I missed that issue in our previous discussion.
Otherwise this PR looks good to me.
@evias we have been discussing this in previous closed PRs. I second the idea wrapping OpenAPI codes into a lib package. A few benefit here:
|
I suggest to have the package reviewed for adding to |
Certainly can. Buy the way, the package is generated using official openAPI generator and standard template. Content would be the same as before. |
* The transaction status group "failed", "unconfirmed", "confirmed", etc... | ||
*/ | ||
public readonly group: string, | ||
public readonly group: TransactionStateTypeEnum, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TransactionStatus is part of the SDK API. If we add the enums here we are exposing generated code to the clients when everything other open API code is wrapped/hidden. This would make it harder to update if we want to change the generated clients eventually. For example, Java has 2 different generated clients, another possible client could be direct to DB one. Not a big issue at this stage.
Generator:
https://github.com/NEMStudios/nem2-open-api-generator
NPM Package:
https://www.npmjs.com/package/nem2-sdk-openapi-typescript-node-client
Maintainer @rg911 @fboucquez