-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add required metadata attributes when retrieving survey unit met…
…adata (#253)
- Loading branch information
Showing
7 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...n-application/src/main/java/fr/insee/queen/application/surveyunit/dto/output/LogoDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package fr.insee.queen.application.surveyunit.dto.output; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
@Schema(name = "Logo") | ||
public record LogoDto( | ||
@NotNull | ||
String url, | ||
@NotNull | ||
String label | ||
) { | ||
} |
2 changes: 2 additions & 0 deletions
2
...-application/src/main/java/fr/insee/queen/application/surveyunit/dto/output/LogoDtos.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ public record MetadataDto( | |
String label, | ||
String objectives | ||
) { | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...n/src/main/java/fr/insee/queen/application/surveyunit/dto/output/MetadataVariableDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
package fr.insee.queen.application.surveyunit.dto.output; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
@Schema(name = "MetadataVariable") | ||
public record MetadataVariableDto( | ||
@NotNull | ||
String name, | ||
// TODO: Bug with openapi 3.1 and springdoc. Uncomment this when problem solved | ||
// https://github.com/springdoc/springdoc-openapi/issues/2608 | ||
//@Schema(description = "Variable value", oneOf = {String.class, Boolean.class}) | ||
@NotNull | ||
Object value | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters