Skip to content

Conversation

@christopherthielen
Copy link
Contributor

… params block

closes #2294

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whops, missed that. I will fix and force push

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defer applying the default path/query param type of "string" until the getType function.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this was the bit that was setting things as type string for me. I didn't fully understand all the code so I tried to confine my changes to getType as to limit impact.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you want expect(...).toThrow(...)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@nateabele
Copy link
Contributor

This looks 👍 to me, and should translate 1:1 onto the params branch.

christopherthielen added a commit that referenced this pull request Oct 9, 2015
fix(urlMatcherFactory): fix configuring a parameter type by name in a…
@christopherthielen christopherthielen merged commit d23e9fa into master Oct 9, 2015
@christopherthielen christopherthielen deleted the issue2294 branch October 9, 2015 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parameter types cannot be declared in the param config block

4 participants