Skip to content

Conversation

@slim
Copy link
Contributor

@slim slim commented Nov 8, 2023

Q A
Branch? main
Tickets
License MIT
Doc PR
  1. was not handling Content-Type: application/problem+json which is necessary for API-Platform
  2. getDocumentationFromHeaders() was not extracting URL from Link, when multiple alternative urls were provided

slim added 2 commits November 2, 2023 10:08
This content type is defined in RFC7807 and is used for errors in
Symfony and API-Platform
It was not working when there were multiple urls in the Link: header.
There was a defect in the regex
Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

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

Awesome, thanks! Could you please add tests too? 😁

@alanpoulain alanpoulain merged commit 11aaafd into api-platform:main Nov 10, 2023
@alanpoulain
Copy link
Member

Nicely done @slim.

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.

3 participants