Title: Action schema defines links inconsistently with Thing Description · Issue #324 · labthings/python-labthings · GitHub
Open Graph Title: Action schema defines links inconsistently with Thing Description · Issue #324 · labthings/python-labthings
X Title: Action schema defines links inconsistently with Thing Description · Issue #324 · labthings/python-labthings
Description: Thing Description defines the links property of a Thing to be an array of objects, each with "rel" and "href" properties (among others). Would it make sense for Actions to follow suit? This isn't a normative part of the spec, but it woul...
Open Graph Description: Thing Description defines the links property of a Thing to be an array of objects, each with "rel" and "href" properties (among others). Would it make sense for Actions to follow suit? This isn't a...
X Description: Thing Description defines the links property of a Thing to be an array of objects, each with "rel" and "href" properties (among others). Would it make sense for Actions to follo...
Opengraph URL: https://github.com/labthings/python-labthings/issues/324
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Action schema defines links inconsistently with Thing Description","articleBody":"Thing Description defines the `links` property of a Thing to be an array of objects, each with \"rel\" and \"href\" properties (among others). Would it make sense for Actions to follow suit? This isn't a normative part of the spec, but it would feel quite sensible. It would mean changing from:\r\n\r\n```json\r\n{\r\n \"status\": \"completed\",\r\n \"output\": true,\r\n \"links\": {\r\n \"self\": {\r\n \"href\": \"https://my_host/actions/id\"\r\n }\r\n }\r\n}\r\n```\r\nto\r\n```json\r\n{\r\n \"status\": \"completed\",\r\n \"output\": true,\r\n \"links\": [\r\n {\"rel\": \"self\", \"href\":\"https://my_host/actions/id\"},\r\n ]\r\n}\r\n```\r\n\r\nThe resulting object is slightly less convenient (I can't just do `action[\"links\"][\"self\"][\"href\"]`) but it is more in keeping with the standard.\r\n\r\nThis is really a decision for LabThings-FastAPI, but I'm keen not to break compatibility if there was a good reason for doing it the current way.\r\n","author":{"url":"https://github.com/rwb27","@type":"Person","name":"rwb27"},"datePublished":"2023-08-10T10:38:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/324/python-labthings/issues/324"}
| 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:2e7f4fe0-5dc4-7252-ccf1-6f728a8b6ccf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8042:8D4A2:1BBEEE3:239A07E:6990023F |
| html-safe-nonce | 808513dd1c160a2f748a183924cf51f1e761456d8c0d7d66052bce0f5c6673de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDQyOjhENEEyOjFCQkVFRTM6MjM5QTA3RTo2OTkwMDIzRiIsInZpc2l0b3JfaWQiOiIxMzczOTY2OTAzMTE5MTg0NDQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0e7b733e0bfab74a5e30c915ef410b685b95e3fdb5f92f4fd08d73f38f53038a |
| hovercard-subject-tag | issue:1844915742 |
| 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/labthings/python-labthings/324/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f764db95bd64303f68cf099655b391bf59925383e59c862c41f2d2f4db8c33d7/labthings/python-labthings/issues/324 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f764db95bd64303f68cf099655b391bf59925383e59c862c41f2d2f4db8c33d7/labthings/python-labthings/issues/324 |
| og:image:alt | Thing Description defines the links property of a Thing to be an array of objects, each with "rel" and "href" properties (among others). Would it make sense for Actions to follow suit? This isn't a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rwb27 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/labthings/python-labthings git https://github.com/labthings/python-labthings.git |
| octolytics-dimension-user_id | 58913024 |
| octolytics-dimension-user_login | labthings |
| octolytics-dimension-repository_id | 234552142 |
| octolytics-dimension-repository_nwo | labthings/python-labthings |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 234552142 |
| octolytics-dimension-repository_network_root_nwo | labthings/python-labthings |
| 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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width