Title: Handle user-defined resource properties that would serialize as reserved json-api keys · Issue #84 · JSONAPIdotNET/JSONAPI.NET · GitHub
Open Graph Title: Handle user-defined resource properties that would serialize as reserved json-api keys · Issue #84 · JSONAPIdotNET/JSONAPI.NET
X Title: Handle user-defined resource properties that would serialize as reserved json-api keys · Issue #84 · JSONAPIdotNET/JSONAPI.NET
Description: The following reserved words cannot be used as resource attribute names: id type links meta (I am including id in this list because it's possible someone could use UseAsId to specify a particular property as the ID, and then have an addi...
Open Graph Description: The following reserved words cannot be used as resource attribute names: id type links meta (I am including id in this list because it's possible someone could use UseAsId to specify a particular p...
X Description: The following reserved words cannot be used as resource attribute names: id type links meta (I am including id in this list because it's possible someone could use UseAsId to specify a particul...
Opengraph URL: https://github.com/JSONAPIdotNET/JSONAPI.NET/issues/84
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handle user-defined resource properties that would serialize as reserved json-api keys","articleBody":"The following reserved words cannot be used as resource attribute names:\n- `id`\n- `type`\n- `links`\n- `meta`\n\n(I am including `id` in this list because it's possible someone could use `UseAsId` to specify a particular property as the ID, and then have an additional non-id property called `Id`.)\n\nTo deal with properties like `Type`, my gut inclination would be to prefix an underscore to the offending field, but that goes against this json-api recommendation:\n\n\u003e It is recommended that resource types, attribute names, and association names be \"dasherized\"; i.e. consist of only lower case alphanumeric characters and dashes\n\nATM we are using camel-cased resource attribute names, so we aren't complying with this recommendation anyway - although maybe we should?\n\nOn a related note, we should probably have some strategy for dealing with models that have naming collisions based on differing capitalization: e.g. a model that has properties called `Foo`, `foo`, and `fOO`. Arguably if you are doing this you have only yourself to blame, but it would be nice if we explicitly blocked it.\n","author":{"url":"https://github.com/csantero","@type":"Person","name":"csantero"},"datePublished":"2015-02-26T13:23:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/84/JSONAPI.NET/issues/84"}
| 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:04890c36-394a-43cc-c332-09703b97d649 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9086:26FC81:145D4E5:1B2AA6E:6A534696 |
| html-safe-nonce | cef6eddca278630fba9cc07135595e7d3871652e1792f2de4024f94c2f66923a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDg2OjI2RkM4MToxNDVENEU1OjFCMkFBNkU6NkE1MzQ2OTYiLCJ2aXNpdG9yX2lkIjoiNjg2OTAyNTIwNzgzNjk1MjIxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5ddfbcc407b6ab8d0073937ced2a05237bc74a163f3b32df38bae7db1973a973 |
| hovercard-subject-tag | issue:59071570 |
| 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/JSONAPIdotNET/JSONAPI.NET/84/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d5e3ba1a7d71bfd9ef344143041489d2d36003dea0306a9bf243c92b6c327ed/JSONAPIdotNET/JSONAPI.NET/issues/84 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d5e3ba1a7d71bfd9ef344143041489d2d36003dea0306a9bf243c92b6c327ed/JSONAPIdotNET/JSONAPI.NET/issues/84 |
| og:image:alt | The following reserved words cannot be used as resource attribute names: id type links meta (I am including id in this list because it's possible someone could use UseAsId to specify a particular p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | csantero |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/JSONAPIdotNET/JSONAPI.NET git https://github.com/JSONAPIdotNET/JSONAPI.NET.git |
| octolytics-dimension-user_id | 16112275 |
| octolytics-dimension-user_login | JSONAPIdotNET |
| octolytics-dimension-repository_id | 27474358 |
| octolytics-dimension-repository_nwo | JSONAPIdotNET/JSONAPI.NET |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27474358 |
| octolytics-dimension-repository_network_root_nwo | JSONAPIdotNET/JSONAPI.NET |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width