Title: Documentation for FormValidator maybe be inaccurate re: .validate method · Issue #112 · formencode/formencode · GitHub
Open Graph Title: Documentation for FormValidator maybe be inaccurate re: .validate method · Issue #112 · formencode/formencode
X Title: Documentation for FormValidator maybe be inaccurate re: .validate method · Issue #112 · formencode/formencode
Description: The docstring in the source and the documentation online for FormValidator both repeatedly mention a .validate method: The important method is .validate(), of course. It gets passed a dictionary of the (processed) values from the form. I...
Open Graph Description: The docstring in the source and the documentation online for FormValidator both repeatedly mention a .validate method: The important method is .validate(), of course. It gets passed a dictionary of...
X Description: The docstring in the source and the documentation online for FormValidator both repeatedly mention a .validate method: The important method is .validate(), of course. It gets passed a dictionary of...
Opengraph URL: https://github.com/formencode/formencode/issues/112
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Documentation for FormValidator maybe be inaccurate re: .validate method","articleBody":"The docstring in the [source](https://github.com/formencode/formencode/blob/267f05e9ec6730806fc7c143abc468421cbf94bc/formencode/validators.py#L2688-L2698) and the [documentation online](http://www.formencode.org/en/latest/modules/validators.html?highlight=formvalidator#formencode.validators.FormValidator) for FormValidator both repeatedly mention a `.validate` method:\n\n```\n The important method is .validate(), of course. It gets passed a\n dictionary of the (processed) values from the form. If you have\n .validate_partial_form set to True, then it will get the incomplete\n values as well -- check with the \"in\" operator if the form was able\n to process any particular field.\n\n Anyway, .validate() should return a string or a dictionary. If a\n string, it's an error message that applies to the whole form. If\n not, then it should be a dictionary of fieldName: errorMessage.\n The special key \"form\" is the error message for the form as a whole\n (i.e., a string is equivalent to {\"form\": string}).\n```\n\nI'm not sure if `.validate` is meant to collectively stand in for all the different validate methods (i.e. `_convert_to_python`, `_validate_python`, `_validate_other`, etc), and I'm sorry if that is mentioned somewhere in the documentation, but I did get tripped up by it for a little bit when I was trying to sub class FormValidator to make a custom chained_validator.\n","author":{"url":"https://github.com/mhavard999","@type":"Person","name":"mhavard999"},"datePublished":"2016-06-02T15:40:16Z","url":"https://github.com/formencode/formencode/issues/112"}
| 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:cba3eb6e-5c36-4ec8-3906-9687e855a995 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C0C:205334:29522E:3A8294:6B0469C6 |
| html-safe-nonce | 1d51267f6d91201912844c44f0701e81eb1f767c9fd9a73f95a12c167979b96e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzBDOjIwNTMzNDoyOTUyMkU6M0E4Mjk0OjZCMDQ2OUM2IiwidmlzaXRvcl9pZCI6IjE1Njg4MDg1MDI1NDg1MjM0NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8fa30a82163c641a034efe3fca70b4b13e71a09c0ca10bb7b5e6b60f5fb69ccd |
| hovercard-subject-tag | issue:158172993 |
| 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/112/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5db7192928c93825dd3931adf27b0a913668d04f7e24add0e143f9a9550121e5/formencode/formencode/issues/112 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5db7192928c93825dd3931adf27b0a913668d04f7e24add0e143f9a9550121e5/formencode/formencode/issues/112 |
| og:image:alt | The docstring in the source and the documentation online for FormValidator both repeatedly mention a .validate method: The important method is .validate(), of course. It gets passed a dictionary of... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mhavard999 |
| 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