René's URL Explorer Experiment


Title: Relationship without data property · Issue #92 · json-api-php/json-api · GitHub

Open Graph Title: Relationship without data property · Issue #92 · json-api-php/json-api

X Title: Relationship without data property · Issue #92 · json-api-php/json-api

Description: Hi, I'd like to create resource with following relationship my_relation, which only contains links property, ie. there is no data property with resource linkage: { "data": { "type": "...", "id": "...", "relationships": { "my_relation": {...

Open Graph Description: Hi, I'd like to create resource with following relationship my_relation, which only contains links property, ie. there is no data property with resource linkage: { "data": { "type": "...", "id": "....

X Description: Hi, I'd like to create resource with following relationship my_relation, which only contains links property, ie. there is no data property with resource linkage: { "data": { "typ...

Opengraph URL: https://github.com/json-api-php/json-api/issues/92

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Relationship without data property","articleBody":"Hi,\r\nI'd like to create resource with following relationship `my_relation`, which only contains `links` property, ie. there is no `data` property with resource linkage:\r\n\r\n```json\r\n{\r\n    \"data\": {\r\n        \"type\": \"...\",\r\n        \"id\": \"...\",\r\n        \"relationships\": {\r\n            \"my_relation\": {\r\n                \"links\": {\r\n                    \"related\": \"/foo\"\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nThis is allowed as per [JSON:API spec](https://jsonapi.org/format/#document-resource-object-relationships): \r\n\r\n>  A “relationship object” MUST contain at least one of the following:\r\n>     - links: a links object \r\n>     - data: resource linkage\r\n>     - meta: a meta object that contains non-standard meta-information about the relationship.\r\n\r\nIs there any way how to accomplish this now, with version 2 of the library? It was possible with version 1:\r\n```php\r\n$resourceObject->setRelationship('my_relation', Relationship::fromRelatedLink('/foo'));\r\n```\r\n\r\nHowever now there seems to be only `ToNull`, `ToOne` and `ToMany` relation, neither of which accomplishes exactly this (eg. ToNull adds `data: null` to the relationship).","author":{"url":"https://github.com/OndraM","@type":"Person","name":"OndraM"},"datePublished":"2019-02-19T13:27:02Z","url":"https://github.com/json-api-php/json-api/issues/92"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:63c71733-0ee9-05d0-c648-b0c1da82f0b2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9A06:2AAD2E:B7EA8D:F6E4C9:6B00F6B9
html-safe-nonce4a67532b8a10a434285f54d496211534660dad43751bac56a154a356d1fd84fa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTA2OjJBQUQyRTpCN0VBOEQ6RjZFNEM5OjZCMDBGNkI5IiwidmlzaXRvcl9pZCI6IjY2NTA4MTAzMDUyMDE0MTQ5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac79fdd294791fc72c89b7329cfc22edaa4096f0e80dfbe37d1ed8023b9a5f8fd2
hovercard-subject-tagissue:411922818
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/json-api-php/json-api/92/issue_layout
twitter:imagehttps://opengraph.githubassets.com/38bf8b3c5b6f52c9438fe78d29d4219b9dbf209c9a989b8f6614fc136161c433/json-api-php/json-api/issues/92
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/38bf8b3c5b6f52c9438fe78d29d4219b9dbf209c9a989b8f6614fc136161c433/json-api-php/json-api/issues/92
og:image:altHi, I'd like to create resource with following relationship my_relation, which only contains links property, ie. there is no data property with resource linkage: { "data": { "type": "...", "id": "....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameOndraM
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
go-importgithub.com/json-api-php/json-api git https://github.com/json-api-php/json-api.git
octolytics-dimension-user_id26732274
octolytics-dimension-user_loginjson-api-php
octolytics-dimension-repository_id86419223
octolytics-dimension-repository_nwojson-api-php/json-api
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id86419223
octolytics-dimension-repository_network_root_nwojson-api-php/json-api
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/json-api-php/json-api/issues/92#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjson-api-php%2Fjson-api%2Fissues%2F92
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjson-api-php%2Fjson-api%2Fissues%2F92
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=json-api-php%2Fjson-api
Reloadhttps://github.com/json-api-php/json-api/issues/92
Reloadhttps://github.com/json-api-php/json-api/issues/92
Reloadhttps://github.com/json-api-php/json-api/issues/92
json-api-phphttps://github.com/json-api-php
json-apihttps://github.com/json-api-php/json-api
Codehttps://github.com/json-api-php/json-api
Issues3 (3)https://github.com/json-api-php/json-api/issues
Pull requestshttps://github.com/json-api-php/json-api/pulls
Actionshttps://github.com/json-api-php/json-api/actions
Projectshttps://github.com/json-api-php/json-api/projects
Security and qualityhttps://github.com/json-api-php/json-api/security
Insightshttps://github.com/json-api-php/json-api/insights
https://github.com/json-api-php/json-api
New issuehttps://github.com/login?return_to=https://github.com/json-api-php/json-api/issues/92
New issuehttps://github.com/login?return_to=https://github.com/json-api-php/json-api/issues/92
Relationship without data propertyhttps://github.com/json-api-php/json-api/issues/92#top
bughttps://github.com/json-api-php/json-api/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/OndraM
OndraMhttps://github.com/OndraM
on Feb 19, 2019https://github.com/json-api-php/json-api/issues/92#issue-411922818
JSON:API spechttps://jsonapi.org/format/#document-resource-object-relationships
f3athhttps://github.com/f3ath
bughttps://github.com/json-api-php/json-api/issues?q=state%3Aopen%20label%3A%22bug%22
on Feb 19, 2019https://github.com/json-api-php/json-api/issues/92#event-2149899961
https://github.com/f3ath
f3athhttps://github.com/f3ath
on Feb 19, 2019https://github.com/json-api-php/json-api/issues/92#issuecomment-465278897
https://github.com/OndraM
OndraMhttps://github.com/OndraM
on Feb 20, 2019https://github.com/json-api-php/json-api/issues/92#issuecomment-465380033
https://github.com/f3ath
f3athhttps://github.com/f3ath
on Feb 20, 2019https://github.com/json-api-php/json-api/issues/92#issuecomment-465386462
f3athhttps://github.com/f3ath
on Feb 23, 2019https://github.com/json-api-php/json-api/issues/92#event-2159750806
Relationship with no "data" member. Fixed json-api-php#92https://github.com/f3ath/json-api-php/commit/a875be9e7cc4b8f646877ce1f3027627a3e0705d
json-api-php#92https://github.com/json-api-php/json-api/issues/92
https://docs.github.com/articles/closing-issues-via-commit-messages
a875be9https://github.com/f3ath/json-api-php/commit/a875be9e7cc4b8f646877ce1f3027627a3e0705d
f3athhttps://github.com/f3ath
completedhttps://github.com/json-api-php/json-api/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
5f47c15https://github.com/json-api-php/json-api/commit/5f47c15571f8b8f616febcdc872ff5ddc70155aa
on Feb 25, 2019https://github.com/json-api-php/json-api/issues/92#event-2162756180
Sign up for freehttps://github.com/signup?return_to=https://github.com/json-api-php/json-api/issues/92
Sign in to commenthttps://github.com/login?return_to=https://github.com/json-api-php/json-api/issues/92
bughttps://github.com/json-api-php/json-api/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.