Document schema title wrong for multiple resource types

Created on 17 November 2022, over 2 years ago
Updated 14 May 2025, 6 days ago

Problem/Motivation

The title for document schemas concerning multiple resource types duplicates the title of the last resource type instead of showing all the resource type titles.

Steps to reproduce

Navigate to the JSON:API schema endpoint for a relationship having multiple possible entity/bundles that could be related. In farmOS that looks like `/api/asset/animal/resource/relationships/location/related/schema` but this should be reproducible on any Drupal install where there is a relationship which isn't constrained to a single bundle - and where multiple bundles for the related entity type exist.

Proposed resolution

Fix the array slice.

Remaining tasks

Review/Test patch

User interface changes

N/A

API changes

Text of schema document title changes.

Data model changes

N/A

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024