Title: Chained validators not working as documented · Issue #94 · formencode/formencode · GitHub
Open Graph Title: Chained validators not working as documented · Issue #94 · formencode/formencode
X Title: Chained validators not working as documented · Issue #94 · formencode/formencode
Description: From the docs: chained_validators will also allow for multiple validators to fail and report to the error_dict Running the following snippet should result in two errors, but only one is produced: >>> from formencode import Invalid, Schem...
Open Graph Description: From the docs: chained_validators will also allow for multiple validators to fail and report to the error_dict Running the following snippet should result in two errors, but only one is produced: >...
X Description: From the docs: chained_validators will also allow for multiple validators to fail and report to the error_dict Running the following snippet should result in two errors, but only one is produced: &...
Opengraph URL: https://github.com/formencode/formencode/issues/94
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Chained validators not working as documented","articleBody":"From the [docs](http://www.formencode.org/en/latest/Validator.html#compound-validators):\n\n> chained_validators will also allow for multiple validators to fail and report to the error_dict\n\nRunning the following snippet should result in two errors, but only one is produced:\n\n`````` python\n>>> from formencode import Invalid, Schema\n>>> from formencode.validators import RequireIfMissing\n>>> \n>>> class A(Schema):\n... chained_validators = [\n... RequireIfMissing('foo', missing='far'), \n... RequireIfMissing('moo', missing='mar')]\n... \n>>> \n>>> try:\n... A.to_python({})\n... except Invalid as e:\n... print e.error_dict\n... \n{'foo': Invalid(u'Please enter a value', None, None, None, None)}```\n``````\n","author":{"url":"https://github.com/benbeanfield","@type":"Person","name":"benbeanfield"},"datePublished":"2015-09-10T19:26:50Z","url":"https://github.com/formencode/formencode/issues/94"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c6ac4c87-26ac-d68d-949c-4ef306f71efd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C926:3C90A4:194477:23BE56:6B046633 |
| html-safe-nonce | 8160a10d7f153bcfb2cd74662207076f231a70aaa0ac061a170a018cac8907ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTI2OjNDOTBBNDoxOTQ0Nzc6MjNCRTU2OjZCMDQ2NjMzIiwidmlzaXRvcl9pZCI6IjkxMjc3MDM3MzM3ODA4OTkzNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 191f36bd4979edacd6ffe38dd511d74b5f18f364ba0c8bc07cb1a0da056a84c8 |
| hovercard-subject-tag | issue:105880969 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/formencode/formencode/94/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cb6cc138da4a624cb3ff065e7d01a97093fa8b01fd4ac35003f9544a7eb003d2/formencode/formencode/issues/94 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cb6cc138da4a624cb3ff065e7d01a97093fa8b01fd4ac35003f9544a7eb003d2/formencode/formencode/issues/94 |
| og:image:alt | From the docs: chained_validators will also allow for multiple validators to fail and report to the error_dict Running the following snippet should result in two errors, but only one is produced: >... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | benbeanfield |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/formencode/formencode git https://github.com/formencode/formencode.git |
| octolytics-dimension-user_id | 1541742 |
| octolytics-dimension-user_login | formencode |
| octolytics-dimension-repository_id | 3733133 |
| octolytics-dimension-repository_nwo | formencode/formencode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3733133 |
| octolytics-dimension-repository_network_root_nwo | formencode/formencode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width