Title: Why required: [] generates an error · Issue #651 · openapi-generators/openapi-python-client · GitHub
Open Graph Title: Why required: [] generates an error · Issue #651 · openapi-generators/openapi-python-client
X Title: Why required: [] generates an error · Issue #651 · openapi-generators/openapi-python-client
Description: { ... "components": { "schemas": { "ABC": { "required": [], ... }, ... } } } this generates an error: components -> schemas -> ABC -> required ensure this value has at least 1 items (type=value_error.list.min_items; limit_value=1) "requi...
Open Graph Description: { ... "components": { "schemas": { "ABC": { "required": [], ... }, ... } } } this generates an error: components -> schemas -> ABC -> required ensure this value has at least 1 items (type=value_err...
X Description: { ... "components": { "schemas": { "ABC": { "required": [], ... }, ... } } } this generates an error: components -> schemas -> ABC -> required ensur...
Opengraph URL: https://github.com/openapi-generators/openapi-python-client/issues/651
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Why required: [] generates an error","articleBody":"```json\r\n{\r\n ...\r\n \"components\": {\r\n \"schemas\": {\r\n \"ABC\": {\r\n \"required\": [],\r\n ...\r\n },\r\n ...\r\n }\r\n }\r\n}\r\n```\r\nthis generates an error:\r\n```\r\ncomponents -\u003e schemas -\u003e ABC -\u003e required\r\n ensure this value has at least 1 items (type=value_error.list.min_items; limit_value=1)\r\n```\r\n`\"required\": null` do not generates an error\r\n\r\nexpected:\r\n - required not set\r\n - required = null\r\n - required = []\r\n\r\nare the same and not generates an error","author":{"url":"https://github.com/erdnax123","@type":"Person","name":"erdnax123"},"datePublished":"2022-08-11T02:52:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/651/openapi-python-client/issues/651"}
| 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:736254a3-4ed8-fce1-709c-7d124c3b68c6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BCA:F41E2:1F1C:232B:697F4B5A |
| html-safe-nonce | b10060c927c3a464d389a27f2b4797ee29c80f35d5e9c868fa7712044a607a8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkNBOkY0MUUyOjFGMUM6MjMyQjo2OTdGNEI1QSIsInZpc2l0b3JfaWQiOiIzMDE1MTcyMjIzMDE2MDYxNzg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9b88c47f5966cdb2f4a60c18c53cb5d913c9fd06ca46c21e81c009e483833370 |
| hovercard-subject-tag | issue:1335407333 |
| 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/openapi-generators/openapi-python-client/651/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4cd197608be7b47710bd80cb9564986583bc6020caacf3ee2d2d89b6caed1eb6/openapi-generators/openapi-python-client/issues/651 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4cd197608be7b47710bd80cb9564986583bc6020caacf3ee2d2d89b6caed1eb6/openapi-generators/openapi-python-client/issues/651 |
| og:image:alt | { ... "components": { "schemas": { "ABC": { "required": [], ... }, ... } } } this generates an error: components -> schemas -> ABC -> required ensure this value has at least 1 items (type=value_err... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | erdnax123 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/openapi-generators/openapi-python-client git https://github.com/openapi-generators/openapi-python-client.git |
| octolytics-dimension-user_id | 84925606 |
| octolytics-dimension-user_login | openapi-generators |
| octolytics-dimension-repository_id | 240776275 |
| octolytics-dimension-repository_nwo | openapi-generators/openapi-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 240776275 |
| octolytics-dimension-repository_network_root_nwo | openapi-generators/openapi-python-client |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width