Title: [Bug]: validation shouldn't fail when values contain array with null · Issue #822 · python-openapi/openapi-core · GitHub
Open Graph Title: [Bug]: validation shouldn't fail when values contain array with null · Issue #822 · python-openapi/openapi-core
X Title: [Bug]: validation shouldn't fail when values contain array with null · Issue #822 · python-openapi/openapi-core
Description: Actual Behavior This issue is somewhat similar to #551, only with a list in the input ({'names': [None]} instead of {'name': None}), and this time RecursionExceeded is raised instead of UnmarshallerError. Expected Behavior Should not rai...
Open Graph Description: Actual Behavior This issue is somewhat similar to #551, only with a list in the input ({'names': [None]} instead of {'name': None}), and this time RecursionExceeded is raised instead of Unmarshalle...
X Description: Actual Behavior This issue is somewhat similar to #551, only with a list in the input ({'names': [None]} instead of {'name': None}), and this time RecursionExceeded is raised instea...
Opengraph URL: https://github.com/python-openapi/openapi-core/issues/822
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: validation shouldn't fail when values contain array with null","articleBody":"### Actual Behavior\n\nThis issue is somewhat similar to #551, only with a list in the input (`{'names': [None]}` instead of `{'name': None}`), and this time `RecursionExceeded` is raised instead of `UnmarshallerError`.\n\n### Expected Behavior\n\nShould not raise an exception.\n\n### Steps to Reproduce\n\nHere's a test case, modelled after the one in #555 (that fixed #551). This also shows that somehow the issue is limited to the 3.0 code path, because it works just fine with 3.1\r\n\r\n```python\r\n @pytest.mark.parametrize('factory', [\r\n oas30_write_schema_unmarshallers_factory,\r\n oas31_schema_unmarshallers_factory])\r\n def test_object_with_array_of_null(self, factory):\r\n schema = {}\r\n spec = SchemaPath.from_dict(schema)\r\n unmarshaller = factory.create(spec)\r\n result = unmarshaller.unmarshal({'foo': [None]})\r\n assert result == {'foo': [None]}\r\n```\n\n### OpenAPI Core Version\n\n0.19.0\n\n### OpenAPI Core Integration\n\npyramid-openapi3\n\n### Affected Area(s)\n\nunmarshalling\n\n### References\n\n_No response_\n\n### Anything else we need to know?\n\n_No response_\n\n### Would you like to implement a fix?\n\nNo","author":{"url":"https://github.com/wosc","@type":"Person","name":"wosc"},"datePublished":"2024-03-28T15:28:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/822/openapi-core/issues/822"}
| 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:9a1d1fe1-df12-6b3f-659a-cb5bd869c484 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A186:37ADE8:21F08EA:2CD7D04:696B10D0 |
| html-safe-nonce | 264d85d51f08443e150cb0625b431f3746d8de4baadabd8a0d3ebb846681c679 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTg2OjM3QURFODoyMUYwOEVBOjJDRDdEMDQ6Njk2QjEwRDAiLCJ2aXNpdG9yX2lkIjoiNjk0MTY1Njc3Njk5NDEzMjE3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fe88d2484dd2e16242e460f45ff595a860e64ee15f227125f3e33036e99d448b |
| hovercard-subject-tag | issue:2213520231 |
| 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/822/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b89dee3a1a68472916101549fc9e240b3421d8b657f35758cbda8df24585ac1/python-openapi/openapi-core/issues/822 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b89dee3a1a68472916101549fc9e240b3421d8b657f35758cbda8df24585ac1/python-openapi/openapi-core/issues/822 |
| og:image:alt | Actual Behavior This issue is somewhat similar to #551, only with a list in the input ({'names': [None]} instead of {'name': None}), and this time RecursionExceeded is raised instead of Unmarshalle... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wosc |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width