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

Wrong spelling for default in statement.parmas in monkey patch.. #554

Closed
khurrumqureshi opened this issue Sep 28, 2012 · 5 comments
Closed

Comments

@khurrumqureshi
Copy link

In monkey patch arguments passed to patch contains statement like this

{ table: 'wines',
'validate param': [Function],
type: 'select',
'patch uri': [Function],
'patch headers': [Function],
'body template': [Function],
'patch body': [Function],
'compute key': [Function],
'parse response': [Function],
'patch response': [Function],
'patch mediaType': [Function],
'patch status': [Function],
params:
[ { variable: 'startbudget', defautl: 5 },
{ variable: 'endbudget', defautl: 30 },
{ variable: 'color', defautl: 'red' } ],
uri: 'http://api-botnik-com.herokuapp.com/v0.1/service/name/KlWines.json?startbudget={startbudget}&endbudget{endbudget}&color={color}',
method: 'get',
validateParams: [Function],
uris: [Function],
patchHeaders: [Function],
tmpl: [Function],
patchBody: [Function],
computeKey: [Function],
parseResponse: [Function],
patchResponse: [Function],
patchMediaType: [Function],
patchStatus: [Function],
exec: [Function],
curry: [Function],
log: [Function] }

if you look at params
params:
[ { variable: 'startbudget', defautl: 5 },
{ variable: 'endbudget', defautl: 30 },
{ variable: 'color', defautl: 'red' } ]

instead of default it is deafutl.. It's a minor error but just let you inform because it causes problem as everyone expecting default not deafutl..

@shimonchayim
Copy link
Member

default is a keyword in javascript and hence can't be used. We have put this in purpose.

@mbellmbell
Copy link

ok, thansk! ;-)

@mbellmbell
Copy link

btw, thank you so much for the work you're doing with ql.io. It's well on its way to becoming a truly great product.

@shimonchayim
Copy link
Member

Thanks for encouragement!

@khurrumqureshi
Copy link
Author

Thanks..

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

3 participants