-
Notifications
You must be signed in to change notification settings - Fork 21
fix: use object for CTS parameters #61
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
Conversation
5ee34a5
to
564069f
Compare
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.
Small comment, I think we should add the API ref in this PR otherwise we will start forgetting things
564069f
to
15c2811
Compare
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.
NICE!! GG
doc/CTS.md
Outdated
"method": "the method to call on the API Client", | ||
"parameters": { | ||
// Object of all parameters with their name, tobe used for languages that require the parameter name | ||
"parameter name": "value", |
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.
"parameter name": "value", | |
"parameterName": "value", |
🧭 What and Why
Use object for every parameters in the CTS, to accommodate language like javascript where you need to pass the parameters name too.
Also create a parameter array for other languages.
The test are now ordered alphabetically, because on some machines the file order was messed up and generating a different output.
Changes included:
🧪 Test
yarn docker cts:generate
yarn docker cts:test