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

registerFormInterface improvements #156

Merged
merged 1 commit into from
Jan 10, 2013
Merged

Conversation

eskimor
Copy link

@eskimor eskimor commented Jan 10, 2013

Added option of ignoring missing parameters in the form.
(You will get the type default values in this case)

The option defaults to strict (the current behaviour) but can be changed
to non strict in order to to ignore missing parameters in the form.

The option defaults to strict (the current behaviour) but can be changed
to non strict in order to to ignore missing parameters in the form.
@s-ludwig
Copy link
Member

That's something that I also wanted to add for the REST stuff, only that my idea was to treat parameters with default values that way and leave normal parameters as always required. Did you already notice that http://dlang.org/phobos/std_traits.html#.ParameterDefaultValueTuple was recently added?

@eskimor
Copy link
Author

eskimor commented Jan 10, 2013

No I haven't :-) I will look into it. For values contained in structs, it would still take the default init value if missing, but for parameters I should use the provided parameter default values, as this is possible now. Thanks.

s-ludwig added a commit that referenced this pull request Jan 10, 2013
registerFormInterface improvements
@s-ludwig s-ludwig merged commit 3b5932e into vibe-d:master Jan 10, 2013
@s-ludwig
Copy link
Member

Now I had to do it ;) 40b8106

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

Successfully merging this pull request may close these issues.

None yet

2 participants