Title: Codegen doesn't support nullable types · Issue #149 · aws-cloudformation/cloudformation-cli-java-plugin · GitHub
Open Graph Title: Codegen doesn't support nullable types · Issue #149 · aws-cloudformation/cloudformation-cli-java-plugin
X Title: Codegen doesn't support nullable types · Issue #149 · aws-cloudformation/cloudformation-cli-java-plugin
Description: This is the property that I’m trying to define: "Canceled": { "description": "POSIX Timestamp of cancellation of this downtime (null if not canceled)", "type": ["integer", "null"] }, This should be ok according to JsonSchema, but cfn-cli...
Open Graph Description: This is the property that I’m trying to define: "Canceled": { "description": "POSIX Timestamp of cancellation of this downtime (null if not canceled)", "type": ["integer", "null"] }, This should be...
X Description: This is the property that I’m trying to define: "Canceled": { "description": "POSIX Timestamp of cancellation of this downtime (null if not canceled)", "type"...
Opengraph URL: https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/149
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Codegen doesn't support nullable types","articleBody":"This is the property that I’m trying to define:\r\n\r\n \"Canceled\": {\r\n \"description\": \"POSIX Timestamp of cancellation of this downtime (null if not canceled)\",\r\n \"type\": [\"integer\", \"null\"]\r\n },\r\n\r\nThis should be ok according to JsonSchema, but `cfn-cli generate` fails and rpdk.log contains this:\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"/Users/.../programming/aws-cloudformation-rpdk-nightly/env/lib/python3.7/site-packages/rpdk/core/cli.py\", line 95, in main\r\n args.command(args)\r\n File \"/Users/.../programming/aws-cloudformation-rpdk-nightly/env/lib/python3.7/site-packages/rpdk/core/generate.py\", line 15, in generate\r\n project.generate()\r\n File \"/Users/.../programming/aws-cloudformation-rpdk-nightly/env/lib/python3.7/site-packages/rpdk/core/project.py\", line 190, in generate\r\n return self._plugin.generate(self)\r\n File \"/Users/.../programming/aws-cloudformation-rpdk-nightly/env/lib/python3.7/site-packages/rpdk/java/codegen.py\", line 255, in generate\r\n pojos = pojo_resolver.resolve_pojos()\r\n File \"/Users/.../programming/aws-cloudformation-rpdk-nightly/env/lib/python3.7/site-packages/rpdk/java/pojo_resolver.py\", line 58, in resolve_pojos\r\n java_property_map[prop_name] = self._java_property_type(prop_schema)\r\n File \"/Users/.../programming/aws-cloudformation-rpdk-nightly/env/lib/python3.7/site-packages/rpdk/java/pojo_resolver.py\", line 88, in _java_property_type\r\n return primitive_types_map[json_type]\r\nTypeError: unhashable type: 'list'\r\n```","author":{"url":"https://github.com/rjlohan","@type":"Person","name":"rjlohan"},"datePublished":"2019-08-29T16:44:11Z","url":"https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/149"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:cacef98a-b47f-40af-25a8-47429e2aadb9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF14:1C0841:6123BC:8C27B5:6AFD8D92 |
| html-safe-nonce | 1d7589c1276d1860116d586451f952d81e4b4e086752952573de9b103232bb02 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjE0OjFDMDg0MTo2MTIzQkM6OEMyN0I1OjZBRkQ4RDkyIiwidmlzaXRvcl9pZCI6IjkzNzI3NDQ5NzAwNDU3MjA1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0c1d88a39b3ae658eb16cd8988e5e40fc8473d406274f17b62ce17e2c1bef4c4 |
| hovercard-subject-tag | issue:487067635 |
| 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/aws-cloudformation/cloudformation-cli-java-plugin/149/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f5ec8a29482e74a36c6fd0b730cf684231d1c26256302e554feaab69964844ec/aws-cloudformation/cloudformation-cli-java-plugin/issues/149 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5ec8a29482e74a36c6fd0b730cf684231d1c26256302e554feaab69964844ec/aws-cloudformation/cloudformation-cli-java-plugin/issues/149 |
| og:image:alt | This is the property that I’m trying to define: "Canceled": { "description": "POSIX Timestamp of cancellation of this downtime (null if not canceled)", "type": ["integer", "null"] }, This should be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rjlohan |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/aws-cloudformation/cloudformation-cli-java-plugin git https://github.com/aws-cloudformation/cloudformation-cli-java-plugin.git |
| octolytics-dimension-user_id | 19900777 |
| octolytics-dimension-user_login | aws-cloudformation |
| octolytics-dimension-repository_id | 152624998 |
| octolytics-dimension-repository_nwo | aws-cloudformation/cloudformation-cli-java-plugin |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 152624998 |
| octolytics-dimension-repository_network_root_nwo | aws-cloudformation/cloudformation-cli-java-plugin |
| 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 | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width