Title: Nondescript error message/internal exception on ill-formed property spec · Issue #436 · python-openapi/openapi-spec-validator · GitHub
Open Graph Title: Nondescript error message/internal exception on ill-formed property spec · Issue #436 · python-openapi/openapi-spec-validator
X Title: Nondescript error message/internal exception on ill-formed property spec · Issue #436 · python-openapi/openapi-spec-validator
Description: With this ill-formed spec: openapi: 3.1.0 info: version: "1" title: "Title" components: schemas: Component: type: object properties: name: string # error here ... the output is empty/nondescript: $ openapi-spec-validator wrong.yaml wrong...
Open Graph Description: With this ill-formed spec: openapi: 3.1.0 info: version: "1" title: "Title" components: schemas: Component: type: object properties: name: string # error here ... the output is empty/nondescript: $...
X Description: With this ill-formed spec: openapi: 3.1.0 info: version: "1" title: "Title" components: schemas: Component: type: object properties: name: string # error here ... the output is ...
Opengraph URL: https://github.com/python-openapi/openapi-spec-validator/issues/436
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nondescript error message/internal exception on ill-formed property spec","articleBody":"With this ill-formed spec:\n```\nopenapi: 3.1.0\ninfo:\n version: \"1\"\n title: \"Title\"\ncomponents:\n schemas:\n Component:\n type: object\n properties:\n name: string # error here\n```\n\n... the output is empty/nondescript:\n```\n$ openapi-spec-validator wrong.yaml \nwrong.yaml: Error: \n```\n\nThis is the internal exception thrown:\n```\nTraceback (most recent call last):\n File \"/path/to/openapi-spec-validator/.venv/bin/openapi-spec-validator\", line 7, in \u003cmodule\u003e\n sys.exit(main())\n File \"/path/to/openapi-spec-validator/openapi_spec_validator/__main__.py\", line 106, in main\n validate(spec, base_uri=base_uri, cls=validator_cls)\n File \"/path/to/openapi-spec-validator/openapi_spec_validator/shortcuts.py\", line 48, in validate\n return v.validate()\n File \"/path/to/openapi-spec-validator/openapi_spec_validator/validation/validators.py\", line 70, in validate\n for err in self.iter_errors():\n File \"/path/to/openapi-spec-validator/openapi_spec_validator/validation/caches.py\", line 62, in __next__\n item = next(self.parent)\n File \"/path/to/openapi-spec-validator/openapi_spec_validator/validation/caches.py\", line 31, in __next__\n item = next(self.iter)\n File \"/path/to/openapi-spec-validator/openapi_spec_validator/validation/decorators.py\", line 27, in wrapper\n for err in errors:\n File \"/path/to/openapi-spec-validator/openapi_spec_validator/validation/validators.py\", line 91, in iter_errors\n yield from self.root_validator(self.schema_path)\n File \"/path/to/openapi-spec-validator/openapi_spec_validator/validation/keywords.py\", line 453, in __call__\n yield from self.components_validator(components)\n File \"/path/to/openapi-spec-validator/openapi_spec_validator/validation/keywords.py\", line 435, in __call__\n yield from self.schemas_validator(schemas)\n File \"/path/to/openapi-spec-validator/openapi_spec_validator/validation/keywords.py\", line 190, in __call__\n yield from self.schema_validator(schema)\n File \"/path/to/openapi-spec-validator/openapi_spec_validator/validation/keywords.py\", line 155, in __call__\n yield from self(\n File \"/path/to/openapi-spec-validator/openapi_spec_validator/validation/keywords.py\", line 113, in __call__\n if \"allOf\" in schema:\n File \"/path/to/openapi-spec-validator/.venv/lib/python3.9/site-packages/pathable/paths.py\", line 173, in __contains__\n return key in self.accessor.keys(self.parts)\n File \"/path/to/openapi-spec-validator/.venv/lib/python3.9/site-packages/jsonschema_path/accessors.py\", line 73, in keys\n raise AttributeError\n```\n\nRevision tested is 118ad6125b35df075ed78d61f4f90d6a0abc1c88\nPython 3.9.5\n\n```\nattrs==25.4.0\njsonschema==4.24.1\njsonschema-path==0.4.0b1\njsonschema-specifications==2025.9.1\nlazy-object-proxy==1.12.0\nopenapi-schema-validator==0.6.3\n-e git+https://github.com/python-openapi/openapi-spec-validator.git@118ad6125b35df075ed78d61f4f90d6a0abc1c88#egg=openapi_spec_validator\npathable==0.5.0b2\npkg_resources==0.0.0\npyrsistent==0.20.0\nPyYAML==6.0.3\nreferencing==0.36.2\nrfc3339-validator==0.1.4\nrpds-py==0.27.1\nsix==1.17.0\ntyping_extensions==4.15.0\n```","author":{"url":"https://github.com/chenz-svsarrazin","@type":"Person","name":"chenz-svsarrazin"},"datePublished":"2025-11-20T11:30:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/436/openapi-spec-validator/issues/436"}
| 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:fd0a10e5-9561-83df-6f45-a114f31c1343 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D678:25975D:261B38E:3504F3A:6977A1B6 |
| html-safe-nonce | 15ceb1ce0fe66bb505fc73bcb3ef644fd0a20de0069c77ada7550f476abfdf6b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjc4OjI1OTc1RDoyNjFCMzhFOjM1MDRGM0E6Njk3N0ExQjYiLCJ2aXNpdG9yX2lkIjoiNzMyMjA5NDc0NTE2NzU2OTMzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b4101155feeafe6a57e31e6d751784798861e6e7178130594ab9275b0fff35f1 |
| hovercard-subject-tag | issue:3646842835 |
| 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-spec-validator/436/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ceea072087e4101a2dc39d7740954ac8c7f385485d74b4d1f0074b6276941716/python-openapi/openapi-spec-validator/issues/436 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ceea072087e4101a2dc39d7740954ac8c7f385485d74b4d1f0074b6276941716/python-openapi/openapi-spec-validator/issues/436 |
| og:image:alt | With this ill-formed spec: openapi: 3.1.0 info: version: "1" title: "Title" components: schemas: Component: type: object properties: name: string # error here ... the output is empty/nondescript: $... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chenz-svsarrazin |
| hostname | github.com |
| expected-hostname | github.com |
| None | e10aafdf5297192c9b24eb4c1705326a9448d90025c2907ca863f7e62d40627d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openapi/openapi-spec-validator git https://github.com/python-openapi/openapi-spec-validator.git |
| octolytics-dimension-user_id | 126442889 |
| octolytics-dimension-user_login | python-openapi |
| octolytics-dimension-repository_id | 102581313 |
| octolytics-dimension-repository_nwo | python-openapi/openapi-spec-validator |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 102581313 |
| octolytics-dimension-repository_network_root_nwo | python-openapi/openapi-spec-validator |
| 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 | 6ba450e9e3f0dbffd9b797b93684cf55e32593e3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width