Title: [Feature]: Provide error details (validation text, path) · Issue #899 · python-openapi/openapi-core · GitHub
Open Graph Title: [Feature]: Provide error details (validation text, path) · Issue #899 · python-openapi/openapi-core
X Title: [Feature]: Provide error details (validation text, path) · Issue #899 · python-openapi/openapi-core
Description: Suggested Behavior The ValidationError (why is it a dataclass btw?) and it's child classes don't provide any details of: What actually failed (ie. what was the error message, like Failed validating 'oneOf' in schema or Failed validating ...
Open Graph Description: Suggested Behavior The ValidationError (why is it a dataclass btw?) and it's child classes don't provide any details of: What actually failed (ie. what was the error message, like Failed validating...
X Description: Suggested Behavior The ValidationError (why is it a dataclass btw?) and it's child classes don't provide any details of: What actually failed (ie. what was the error message, like Failed va...
Opengraph URL: https://github.com/python-openapi/openapi-core/issues/899
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature]: Provide error details (validation text, path)","articleBody":"### Suggested Behavior\r\n\r\nThe `ValidationError` (why is it a `dataclass` btw?) and it's child classes don't provide any details of:\r\n\r\n- What actually failed (ie. what was the error message, like `Failed validating 'oneOf' in schema` or `Failed validating 'minLength=3`)\r\n- The path which failed (e.g. `foo.bar.array[1].some.nested.field`)\r\n\r\nThese details used to be available in previous versions, but now the error text is very plain, just `Request body validation error` and such.\r\n\r\n### Why is this needed?\r\n\r\nTo _log_ the details, for easier debugging/understanding.\r\n\r\nOr, maybe even return them to the caller, so they can understand why the API is not accepting their request.\r\n\r\n### References\r\n\r\n_No response_\r\n\r\n### Would you like to implement a feature?\r\n\r\nNone","author":{"url":"https://github.com/tuukkamustonen","@type":"Person","name":"tuukkamustonen"},"datePublished":"2024-08-20T08:30:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/899/openapi-core/issues/899"}
| 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:990a1bcf-8a85-2786-dc5c-a6aad7590f07 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE7A:3AFDE9:1EF39A3:2B3FE70:69779130 |
| html-safe-nonce | ba89e6da901e3823359d4f5f253bcb94f29d3630524e2eb56df462bbf8b210fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTdBOjNBRkRFOToxRUYzOUEzOjJCM0ZFNzA6Njk3NzkxMzAiLCJ2aXNpdG9yX2lkIjoiMzY3MTkyODE1MzQyMTg3NzU1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c4ce8af087ec91425130e020d363c2177a3f33a12e1a3db5a7a497b4e406da72 |
| hovercard-subject-tag | issue:2475036893 |
| 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/python-openapi/openapi-core/899/issue_layout |
| twitter:image | https://opengraph.githubassets.com/24e1828fb70cbc3fa5867bd0493f8210f5feeda5d3030571930593f92949e615/python-openapi/openapi-core/issues/899 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/24e1828fb70cbc3fa5867bd0493f8210f5feeda5d3030571930593f92949e615/python-openapi/openapi-core/issues/899 |
| og:image:alt | Suggested Behavior The ValidationError (why is it a dataclass btw?) and it's child classes don't provide any details of: What actually failed (ie. what was the error message, like Failed validating... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tuukkamustonen |
| hostname | github.com |
| expected-hostname | github.com |
| None | fd37f8e74ecc49b700617ea694fa6d7b395b6c9a4b79c59b3014da220462ac69 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openapi/openapi-core git https://github.com/python-openapi/openapi-core.git |
| octolytics-dimension-user_id | 126442889 |
| octolytics-dimension-user_login | python-openapi |
| octolytics-dimension-repository_id | 104200746 |
| octolytics-dimension-repository_nwo | python-openapi/openapi-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 104200746 |
| octolytics-dimension-repository_network_root_nwo | python-openapi/openapi-core |
| 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 | acb9f387e67b45e2eeb6a57ef561ec67eb21d805 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width