Skip to content

Prevent invalid responses#85

Open
stolen wants to merge 2 commits into
nomasystems:mainfrom
stolen:prevent_invalid_responses
Open

Prevent invalid responses#85
stolen wants to merge 2 commits into
nomasystems:mainfrom
stolen:prevent_invalid_responses

Conversation

@stolen

@stolen stolen commented Feb 14, 2025

Copy link
Copy Markdown

User code has errors.
Do not allow these errors to cause troubles on client side.
Crash early when response does not match schema.

@javiergarea javiergarea left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi, this is a nice feature, thank you! I have one suggestion though - this feature should be configurable when spawning the server by some sort of validate_response :: boolean() option that defaults to true.

@stolen

stolen commented May 23, 2025

Copy link
Copy Markdown
Author

Hi!
I did this researching available options, and erf didn't fit my current use case.
Feel free to modify or close my PRs.
Sorry for bothering without intention to really use your library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📑 TODO

Development

Successfully merging this pull request may close these issues.

2 participants