Skip to content

Feature/add project request validation and exception handling#11

Merged
angelmp01 merged 5 commits intodevelopfrom
feature/create-project-validation
Mar 27, 2026
Merged

Feature/add project request validation and exception handling#11
angelmp01 merged 5 commits intodevelopfrom
feature/create-project-validation

Conversation

@angelmp01
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

📊 Static Analysis Summary

🔍 Code Quality Checks

  • ✅ JaCoCo coverage report generated

📦 Download detailed reports from the workflow artifacts.

@github-actions
Copy link
Copy Markdown

📊 Static Analysis Summary

🔍 Code Quality Checks

  • ✅ JaCoCo coverage report generated

📦 Download detailed reports from the workflow artifacts.

@github-actions
Copy link
Copy Markdown

📊 Static Analysis Summary

🔍 Code Quality Checks

  • ✅ JaCoCo coverage report generated

📦 Download detailed reports from the workflow artifacts.

@angelmp01 angelmp01 marked this pull request as ready for review March 26, 2026 10:41
…ints

- Updated OpenAPI schema for CreateProjectRequest to include field patterns, min/max lengths, and required fields using oneOf.
- Removed redundant manual validation logic for projectKey, projectName, and projectDescription from ProjectRequestValidator.
- Enhanced ProjectExceptionHandler to map validation errors to specific error keys and messages based on the failing field.
- Extended ProjectExceptionHandlerTest with parameterized tests for various validation scenarios.
- Removed obsolete tests from ProjectRequestValidatorTest.
- Adjusted ProjectMapperTest to reflect removal of projectKeyPattern.
@github-actions
Copy link
Copy Markdown

📊 Static Analysis Summary

🔍 Code Quality Checks

  • ✅ JaCoCo coverage report generated

📦 Download detailed reports from the workflow artifacts.

@sonarqubecloud
Copy link
Copy Markdown

validateFlavorOrConfigItem(request);
}

private void validateFlavorOrConfigItem(CreateProjectRequest request) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Questions, the validation should be a XOR? it needs to have flavor or configitem but not both at the same time?
If that is the case, it does not work.

@github-actions
Copy link
Copy Markdown

📊 Static Analysis Summary

🔍 Code Quality Checks

  • ✅ JaCoCo coverage report generated

📦 Download detailed reports from the workflow artifacts.

@angelmp01 angelmp01 merged commit d2bd7be into develop Mar 27, 2026
4 checks passed
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