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

add generic juttle value input control #17

Open
go-oleg opened this issue Feb 9, 2016 · 3 comments
Open

add generic juttle value input control #17

go-oleg opened this issue Feb 9, 2016 · 3 comments

Comments

@go-oleg
Copy link
Contributor

go-oleg commented Feb 9, 2016

Proposing creating a new input type called juttleValue that renders as a textarea and parses the entered value as a juttle value. This will allow users to enter anything from free-form Dates (:1 hour and 20 minutes ago:) to Objects ({ hello: "world"}) without us having to build a dedicated input type for every type of value Juttle supports.

Open Questions:

  • Is juttleValue an okay name? Our convention is camelCase in juttle, but I think juttle_value looks a lot better.
  • Assuming the parsing into values will happen on the client-side, we will want to bring the parser into the juttle-client-library. The other option would be to send the value as an unparsed string and have juttle-service/juttle understand the input type and parse the value.

cc @jadbox @demmer

@go-oleg
Copy link
Contributor Author

go-oleg commented Feb 9, 2016

Another thought, we can just call it value:

input a: value -default { hello: 'world' };

@dmajda
Copy link

dmajda commented Feb 10, 2016

value sounds good to me

@dmehra
Copy link
Contributor

dmehra commented Mar 9, 2016

This depends on juttle/juttle#148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants