Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jsonSchema</artifactId>
<version>${jackson-module-jsonSchema.version}</version>
<type>pom</type>
<scope>runtime</scope>
Copy link
Contributor

Choose a reason for hiding this comment

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

No need

</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -131,7 +139,6 @@
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jsonSchema</artifactId>
<version>${jackson-module-jsonSchema.version}</version>
</dependency>
<dependency>
<groupId>com.powsybl</groupId>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/gridsuite/network/map/SchemaController.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public class SchemaController {
private final SchemaService schemaService;

@GetMapping(value = "/{elementType}/{infoType}", produces = APPLICATION_JSON_SCHEMA_VALUE)
@Operation(summary = "Get network elements")
@ApiResponse(responseCode = "200", description = "Elements description")
@Operation(summary = "Get element schema description")
@ApiResponse(responseCode = "200", description = "Element schema")
public JsonSchema getElementSchema(@Parameter(description = "Element type") @PathVariable(name = "elementType") ElementType elementType,
@Parameter(description = "Info type") @PathVariable(name = "infoType") InfoType infoType) {
@Parameter(description = "Info type") @PathVariable(name = "infoType") InfoType infoType) {
try {
return schemaService.getSchema(elementType, infoType);
} catch (final UnsupportedOperationException | JsonMappingException ex) {
Expand Down