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(openapi): api_entrypoint should use "docs_formats" config #5965

Closed

Conversation

paullallier
Copy link
Contributor

Q A
Branch? 3.2
Tickets Addresses #5845 (comment)
License MIT
Doc PR N/A

I still have a slightly obscure issue where the api_entrypoint is returning a 406 error in some cases (at least when I load the page with curl with "Accept: text/html" headers). Essentially, its using the formats rather than docs_formats config for that url, and my formats list doesn't include text/html as an option.

There's a test for this currently, I think, but it already passes because the test API has text/html in the config file for both formats and doc_formats, which masks that it's picking the wrong option. I'm not sure if there's a way to modify the config on a single Behat test?

@paullallier
Copy link
Contributor Author

paullallier commented Nov 12, 2023

I've "fixed" some failing Behat test, but I'm not sure that my fix is valid - perhaps I've changed what's being tested?

Also, I seem to have tests failing on a deprecation - I'm not sure if this is something I broke or not? [EDIT: I think it's new deprecation in a package updated a few hours ago.]

@paullallier
Copy link
Contributor Author

Maybe fixes #6010?

@paullallier
Copy link
Contributor Author

Superseded by #6012 - thanks!

@paullallier paullallier deleted the fix_use_docs_formats_on_root branch April 1, 2024 12:30
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.

1 participant