Skip to content

Two bug fixes related to API Platform Admin - #132

Merged
alanpoulain merged 4 commits into
api-platform:mainfrom
slim:main
Nov 10, 2023
Merged

Two bug fixes related to API Platform Admin#132
alanpoulain merged 4 commits into
api-platform:mainfrom
slim:main

Conversation

@slim

@slim slim commented Nov 8, 2023

Copy link
Copy Markdown
Contributor
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

@dunglas dunglas left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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