Title: DGCBarcodeDecoder fails to decode a valid 1.0.0 test result · Issue #79 · diggsweden/dgc-java · GitHub
Open Graph Title: DGCBarcodeDecoder fails to decode a valid 1.0.0 test result · Issue #79 · diggsweden/dgc-java
X Title: DGCBarcodeDecoder fails to decode a valid 1.0.0 test result · Issue #79 · diggsweden/dgc-java
Description: DGCBarcodeDecoder fails to decode a valid test result which is created using "1.0.0" schema. In particular, field "dr" (Date/Time of Test Result) was valid, but optional field in schema "1.0.0", it is removed in schema "1.3.0". As a resu...
Open Graph Description: DGCBarcodeDecoder fails to decode a valid test result which is created using "1.0.0" schema. In particular, field "dr" (Date/Time of Test Result) was valid, but optional field in schema "1.0.0", it...
X Description: DGCBarcodeDecoder fails to decode a valid test result which is created using "1.0.0" schema. In particular, field "dr" (Date/Time of Test Result) was valid, but optional field i...
Opengraph URL: https://github.com/diggsweden/dgc-java/issues/79
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DGCBarcodeDecoder fails to decode a valid 1.0.0 test result","articleBody":"DGCBarcodeDecoder fails to decode a valid test result which is created using \"1.0.0\" schema. In particular, field \"dr\" (Date/Time of Test Result) was valid, but optional field in schema \"1.0.0\", it is removed in schema \"1.3.0\". As a result, the decoder now fails. Would it be possible/feasible to support older schemas in addition to \"1.3.0\"?\r\n\r\n**Exception**\r\nse.digg.dgc.payload.v1.DGCSchemaException: Failed to decode DCC from CBOR encoding\r\n\tat se.digg.dgc.payload.v1.DigitalCovidCertificate.decode(DigitalCovidCertificate.java:258) ~[dgc-schema-1.0.1.jar:na]\r\n\tat se.digg.dgc.service.impl.DefaultDGCDecoder.decode(DefaultDGCDecoder.java:71) ~[dgc-create-validate-1.0.1.jar:na]\r\n\r\nUnrecognizedPropertyException: Unrecognized field \"dr\" (class se.digg.dgc.payload.v1.TestEntry), not marked as ignorable (10 known properties: \"tt\", \"tg\", \"ma\", \"ci\", \"is\", \"co\", \"tr\", \"nm\", \"sc\", \"tc\"])\"\r\n\r\n**Test data**\r\nhttps://github.com/eu-digital-green-certificates/dgc-testdata/blob/main/BG/2DCode/raw/5.json\r\n\r\n**Schemas**\r\n1.0.0: https://github.com/ehn-dcc-development/ehn-dcc-schema/blob/release/1.0.0/DGC.combined-schema.json\r\n1.3.0 (dr is missing): https://github.com/ehn-dcc-development/ehn-dcc-schema/blob/release/1.3.0/DCC.combined-schema.json","author":{"url":"https://github.com/aspruds","@type":"Person","name":"aspruds"},"datePublished":"2021-06-29T22:42:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/79/dgc-java/issues/79"}
| 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:6e3165d4-1803-d3b6-f896-16b8c756068e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCDA:4500B:237A823:32FC329:6A4BE243 |
| html-safe-nonce | 9f11ecb680d859ccb56e3afc877a90083948c9ba5778605aa16651f60a410579 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0RBOjQ1MDBCOjIzN0E4MjM6MzJGQzMyOTo2QTRCRTI0MyIsInZpc2l0b3JfaWQiOiI5MDgxMDcyNTkwOTM2MzM0OTE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 31f0e94c38ee45d995ccb906d46ec320b769b1e1faf51dd5e4dcbac3e6cc4562 |
| hovercard-subject-tag | issue:933157799 |
| 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/diggsweden/dgc-java/79/issue_layout |
| twitter:image | https://opengraph.githubassets.com/98f261cd8e8309edd880e2211527c67c8904a5b10040c6fb621e08b018d9e41e/diggsweden/dgc-java/issues/79 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/98f261cd8e8309edd880e2211527c67c8904a5b10040c6fb621e08b018d9e41e/diggsweden/dgc-java/issues/79 |
| og:image:alt | DGCBarcodeDecoder fails to decode a valid test result which is created using "1.0.0" schema. In particular, field "dr" (Date/Time of Test Result) was valid, but optional field in schema "1.0.0", it... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aspruds |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0f5d3ba365b3985d75c32a5957c8635488d58dcf027ae6ae958eee7edaa306a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/diggsweden/dgc-java git https://github.com/diggsweden/dgc-java.git |
| octolytics-dimension-user_id | 55883233 |
| octolytics-dimension-user_login | diggsweden |
| octolytics-dimension-repository_id | 353085698 |
| octolytics-dimension-repository_nwo | diggsweden/dgc-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 353085698 |
| octolytics-dimension-repository_network_root_nwo | diggsweden/dgc-java |
| 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 | 253920ac2dc35b0849cca4633895f1f2e5f03051 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width