Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby-source-drupal): skip jsonapi_schema endpoint #19879

Merged
merged 1 commit into from
Dec 2, 2019
Merged

Conversation

mglaman
Copy link
Contributor

@mglaman mglaman commented Nov 29, 2019

Description

The JSON:API Schema module (https://www.drupal.org/project/jsonapi_schema) adds a describedby link to resources. This payload doesn't contain a JSON:API document, but information describing the object's schema. It's not a valid source of content.

After debugging, it is the original cause of #19867

Related Issues

Related to #19867

The JSON:API Schema module (https://www.drupal.org/project/jsonapi_schema) adds a `describedby` link to resources. This payload doesn't contain a JSON:API document, but information describing the object's schema. It's not a valid source of content.

After debugging, it is the original cause of #19867
@mglaman mglaman requested a review from a team as a code owner November 29, 2019 21:01
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, makes sense as well ;) Let's get this in!

Question for future: not quite sure how "type" usually looks like, but maybe this could be type whitelist (only handle if link type is one we care about) instead of type blacklist (don't handle this type - "self" and "describedby" in current shape)?

@pieh pieh merged commit 61a0280 into master Dec 2, 2019
@pieh pieh deleted the mglaman-patch-1 branch December 2, 2019 12:00
@mglaman
Copy link
Contributor Author

mglaman commented Dec 2, 2019

@pieh ah, good idea. jsonapi_hypermedia and core improvements allow misc links (like actions to take) and we should add an allowed_links option which defaults to next and maybe allows others. I have set a reminder to option an issue and PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants