Title: PointerToNowhere error when validating CRDs · Issue #216 · python-openapi/openapi-schema-validator · GitHub
Open Graph Title: PointerToNowhere error when validating CRDs · Issue #216 · python-openapi/openapi-schema-validator
X Title: PointerToNowhere error when validating CRDs · Issue #216 · python-openapi/openapi-schema-validator
Description: I have tried creating a schema and validating yaml file structures based on their datatype and I have been constantly getting the same error no matter how I try to resolve it. The source code where I'm getting this error is here: Openapi...
Open Graph Description: I have tried creating a schema and validating yaml file structures based on their datatype and I have been constantly getting the same error no matter how I try to resolve it. The source code where...
X Description: I have tried creating a schema and validating yaml file structures based on their datatype and I have been constantly getting the same error no matter how I try to resolve it. The source code where...
Opengraph URL: https://github.com/python-openapi/openapi-schema-validator/issues/216
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PointerToNowhere error when validating CRDs","articleBody":"I have tried creating a schema and validating yaml file structures based on their datatype and I have been constantly getting the same error no matter how I try to resolve it.\n\nThe source code where I'm getting this error is here: [Openapi_validation](https://github.com/Sanjay-2004/openapi_validation.git)\n\n### Steps to Reproduce\n\n- Run `pip install pyyaml openapi_schema_validator`\n- Run `python validate_crd.py valid_crd.yaml`\n\n### Error Message:\n`❌ Validation Error: PointerToNowhere: '/components/schemas/CustomAttribute' does not exist within {'oneOf': [{'type': 'string', 'minLength': 0, 'maxLength': 100, 'default': '', 'pattern': '.*', 'description': 'A string value.'}, {'type': 'integer', 'minimum': 0, 'maximum': 100, 'default': 0, 'description': 'An integer value.'}, {'type': 'boolean', 'default': False, 'enum': [True, False], 'description': 'A boolean value.'}, {'type': 'array', 'items': {'oneOf': [{'type': 'string'}, {'type': 'integer'}, {'type': 'boolean'}, {'$ref': '#/components/schemas/CustomAttribute'}]}, 'default': [], 'description': 'An array of values.'}, {'type': 'object', 'properties': {'default': {'type': 'object'}, 'description': {'type': 'string'}, 'properties': {'type': 'object', 'additionalProperties': {'$ref': '#/components/schemas/CustomAttribute'}}}, 'required': ['default', 'description', 'properties']}]}`\n\n\nIt would really help if there is any fix for this\n","author":{"url":"https://github.com/Sanjay-2004","@type":"Person","name":"Sanjay-2004"},"datePublished":"2025-02-22T18:50:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/216/openapi-schema-validator/issues/216"}
| 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:6b3446fd-2f65-56d3-611d-817e2d4a6f0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC4C:1889FD:51E3CE2:7033634:69782015 |
| html-safe-nonce | a0f1095dddc1f45d433f2386c074f3429a733f4877972b83ae6060abee1fecbb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzRDOjE4ODlGRDo1MUUzQ0UyOjcwMzM2MzQ6Njk3ODIwMTUiLCJ2aXNpdG9yX2lkIjoiMjU0Njk2NDg5MzA0NzIwMTgxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 887a1872064b3a3d14912edb84a28f18fec6ecb7ae76200608798ed8b53f461f |
| hovercard-subject-tag | issue:2871176871 |
| 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-schema-validator/216/issue_layout |
| twitter:image | https://opengraph.githubassets.com/326fdbaface180c2646fc0e7c5dad4f146832b22e67cfde2f24c5a4a17881571/python-openapi/openapi-schema-validator/issues/216 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/326fdbaface180c2646fc0e7c5dad4f146832b22e67cfde2f24c5a4a17881571/python-openapi/openapi-schema-validator/issues/216 |
| og:image:alt | I have tried creating a schema and validating yaml file structures based on their datatype and I have been constantly getting the same error no matter how I try to resolve it. The source code where... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Sanjay-2004 |
| hostname | github.com |
| expected-hostname | github.com |
| None | e71ed39771d00f42ce2fc9320895c8c608c164191e118eae487fc3bd0af6886d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openapi/openapi-schema-validator git https://github.com/python-openapi/openapi-schema-validator.git |
| octolytics-dimension-user_id | 126442889 |
| octolytics-dimension-user_login | python-openapi |
| octolytics-dimension-repository_id | 245119225 |
| octolytics-dimension-repository_nwo | python-openapi/openapi-schema-validator |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 245119225 |
| octolytics-dimension-repository_network_root_nwo | python-openapi/openapi-schema-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 | 4919f24054c1e9bf76d7b543cb2ac018075b18ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width