Read-only mirror of https://github.com/cdc-si/zia-translation — Zentrale Ausgleichsstelle ZAS. Issues & pull requests at the source.
  • Java 99.7%
  • Dockerfile 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Copilot fa414bdd54
feat: optional strategy parameter on translation endpoints (#47)
* Initial plan

* feat: implement optional strategy parameter for translation endpoints

- Add TranslationStrategy enum (SINGLE/DUAL) with case-insensitive fromString()
- Add StringToTranslationStrategyConverter and WebMvcConfiguration to register it
- Update TranslationService: replace String strategy with TranslationStrategy defaultStrategy,
  remove STRATEGY_SINGLE/STRATEGY_DUAL constants, add strategy param to public methods,
  add resolveStrategy() for request > global priority
- Update TranslationController: add optional strategy @RequestParam to 3 POST endpoints
- Update GlobalExceptionHandler: handle MethodArgumentTypeMismatchException → 400
- Update openapi.yaml: add strategy param and TranslationStrategy schema
- Add TranslationStrategyTest and StringToTranslationStrategyConverterTest
- Update existing tests to use new method signatures

* refactor: address review feedback on strategy naming and component registration

* better handling of strategy type mismatch

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Boris <boris.flueckigersaltarin@zas.admin.ch>
2026-07-17 10:20:15 +02:00
.copilot add CI configuration and contributing guidelines 2026-04-08 16:25:49 +02:00
.github docs: align copilot instructions with Spring Boot 3 baseline 2026-04-22 09:58:09 +00:00
specifications add spec for strategy as parameter 2026-07-10 13:48:29 +02:00
src feat: optional strategy parameter on translation endpoints (#47) 2026-07-17 10:20:15 +02:00
.gitignore Add target/ to .gitignore and remove from tracking 2026-04-09 11:43:48 +00:00
CONTRIBUTING.md chore: target Java 21 in build and docs 2026-04-20 12:36:10 +00:00
Dockerfile Add CI/CD Jenkinsfile Dockerfile and Maven finalName 2026-04-20 12:35:03 +00:00
Jenkinsfile feat: update application properties for translation strategy and add security token configuration 2026-05-06 13:47:35 +02:00
pom.xml postrelease 2026-07-02 15:16:07 +02:00
README.md Initial commit 2026-04-08 15:38:04 +02:00

zia-translation

Service de Traduction