Skip to content

The type checking for parameters could be much more stringent#123

Merged
ahl merged 1 commit intomainfrom
type_check
Jul 28, 2021
Merged

The type checking for parameters could be much more stringent#123
ahl merged 1 commit intomainfrom
type_check

Conversation

@ahl
Copy link
Copy Markdown
Collaborator

@ahl ahl commented Jul 20, 2021

No description provided.

informative. We'd ideally like to raise issues at compile time, but we
don't actually have the data (e.g. in proc macro context) we'd need to
identify type errors. We definitely do not want to fail after the server
has been running when a particular combination of paramters fails to
deserialize into the given structs. As a middle ground, we fail as the
ApiDescription is built up, before the server is servicing requests.
@ahl ahl merged commit 1c6f4d1 into main Jul 28, 2021
@ahl ahl deleted the type_check branch July 28, 2021 19:46
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.

1 participant