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

Conversation

Projects
None yet
2 participants
@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.

Added option to registerFormInterface for non strict form handling.
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

This comment has been minimized.

Show comment
Hide comment
@s-ludwig

s-ludwig Jan 10, 2013

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?

Member

s-ludwig commented Jan 10, 2013

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

This comment has been minimized.

Show comment
Hide comment
@eskimor

eskimor 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.

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

Merge pull request #156 from eskimor/master
registerFormInterface improvements

@s-ludwig s-ludwig merged commit 3b5932e into vibe-d:master Jan 10, 2013

@s-ludwig

This comment has been minimized.

Show comment
Hide comment
@s-ludwig

s-ludwig Jan 10, 2013

Member

Now I had to do it ;) 40b8106

Member

s-ludwig commented Jan 10, 2013

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