Skip to content

Conversation

@tecpromotion
Copy link

During the MCP sprint, I attempted to work with the json file. In doing so, these two response details were criticised. This PR standardises the return.

Copilot AI review requested due to automatic review settings January 17, 2026 11:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes the structure of two MediaFileResponse references in the OpenAPI specification to comply with proper OpenAPI 3.x standards. Previously, the responses incorrectly used direct $ref to schemas instead of wrapping them in proper response objects with descriptions and content specifications.

Changes:

  • Converted POST /api/index.php/v1/media/files 200 response to proper OpenAPI response structure
  • Converted PATCH /api/index.php/v1/media/files/{path} 200 response to proper OpenAPI response structure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

tecpromotion and others added 2 commits January 17, 2026 12:39
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@HermanPeeren
Copy link
Owner

Thank you for your PR and sorry for my late reply. I had already changed the things you did in the PR, just hadn't pushed it yet at the time you created the PR. Will have a good look if I really got this PR covered, and then close it.

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