Rework parameters. fixes #32

### Bug fixes

- Fix headers in parameters so that invalid enums fail the route.