Skip to content

Commit

Permalink
Merge pull request #269 from InseeFr/develop
Browse files Browse the repository at this point in the history
fix: accept more flexible json data for temp zone
  • Loading branch information
davdarras authored Oct 11, 2024
2 parents 84bc7a6 + a78897b commit a51817e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<description>Modules for queen back-office</description>

<properties>
<revision>4.3.17</revision>
<revision>4.3.18</revision>
<changelist></changelist>
<java.version>21</java.version>
<maven.compiler.source>21</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import fr.insee.queen.application.configuration.auth.AuthorityPrivileges;
import fr.insee.queen.application.surveyunittempzone.dto.output.SurveyUnitTempZoneDto;
import fr.insee.queen.application.web.validation.IdValid;
import fr.insee.queen.application.web.validation.json.JsonValid;
import fr.insee.queen.application.web.validation.json.SchemaType;
import fr.insee.queen.domain.surveyunittempzone.service.SurveyUnitTempZoneService;
import io.swagger.v3.oas.annotations.Operation;
Expand Down Expand Up @@ -49,7 +48,6 @@ public class SurveyUnitTempZoneController {
@ResponseStatus(HttpStatus.CREATED)
public void postSurveyUnitByIdInTempZone(@IdValid @PathVariable(value = "id") String surveyUnitId,
@RequestBody
@JsonValid(SchemaType.SURVEY_UNIT_TEMP_ZONE)
ObjectNode surveyUnit,
@CurrentSecurityContext(expression = "authentication.name") String userId) {
surveyUnitTempZoneService.saveSurveyUnitToTempZone(surveyUnitId, userId, surveyUnit);
Expand Down

0 comments on commit a51817e

Please sign in to comment.