question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

String Scalar (extra arguments)

See original GitHub issue

how to pass extra arguments on string scalar ? ex String(min_length=xx, other_args)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
weiztechcommented, Mar 5, 2018

Thanks @jkimbo , yes i agree

i also found some good example at issue 456

0reactions
jkimbocommented, Mar 4, 2018

@weiztech I don’t think it’s possible since the argument types use classmethods to parse and serialise values so they don’t contain any actual state (which you would need to have to validate values)

I would suggest creating some helper functions/classes to validate inputs that can then be called in the mutate function. I actually think that is a better solution anyway since it allows you to return accurate error messages to the client.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Define String Scalar Inputs - MATLAB & Simulink
You can define string scalar inputs at the command line or in the MATLAB ® Coder™ ... To provide an example string scalar...
Read more >
Scalar functions - IBM
A scalar function takes input argument(s) and returns a single value result. A scalar function can be used wherever an expression can be...
Read more >
How to pass the scalar to arguments of the mata function?
#delimit; /*** mata session ***/ mata; void wx(string scalar A, string scalar B, string scalar C, real scalar d_km){; /* Obtain and put ......
Read more >
How to add a scalar function? — Velox documentation
The output types can be scalar strings (varchar and varbinaries), but also complex ... method with an additional first parameter const core::QueryConfig&.
Read more >
Schemas and Types - GraphQL
String is one of the built-in scalar types - these are types that resolve to a ... Every field on a GraphQL object...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found