Skip to content

Conversation

@lbarcziova
Copy link
Contributor

@lbarcziova lbarcziova commented Dec 18, 2025

Schema incorrectly defined field as String instead of List(String), causing Flask-RESTX to stringify the list in API responses. Context: packit/packit-service#2907 (comment)

Assisted-by: Cursor(Claude)

Schema incorrectly defined field as String instead of List(String),
causing Flask-RESTX to stringify the list in API responses.
Context: packit/packit-service#2907 (comment)

Assisted-by: Cursor(Claude)
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly fixes an issue where the packit_forge_projects_allowed field was being stringified in API responses. The change updates the schema from String to List(String), which is the correct approach. The description and example in the schema have also been updated for consistency. Furthermore, a new test case has been added to verify that the API now returns a list as expected, ensuring the fix is effective and preventing future regressions. The changes are clear, focused, and well-implemented.

@github-actions
Copy link

github-actions bot commented Dec 18, 2025

Pull Request validation

Failed

🔴 Failed or pending checks:

  • python-lint-job[failure]

🔴 Review - Missing review from a member (2 required)

@nikromen nikromen self-requested a review December 22, 2025 09:06
Copy link
Member

@nikromen nikromen left a comment

Choose a reason for hiding this comment

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

thanks!

@nikromen nikromen merged commit 16fd542 into fedora-copr:main Dec 22, 2025
6 of 7 checks passed
@lbarcziova lbarcziova deleted the packit-forge-projects-allowed-fix-api branch December 22, 2025 13:05
evgeni added a commit to evgeni/packit-service that referenced this pull request Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants