File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
src/main/java/org/gridsuite/network/map Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 97
97
<type >pom</type >
98
98
<scope >import</scope >
99
99
</dependency >
100
+
101
+ <dependency >
102
+ <groupId >com.fasterxml.jackson.module</groupId >
103
+ <artifactId >jackson-module-jsonSchema</artifactId >
104
+ <version >${jackson-module-jsonSchema.version} </version >
105
+ <type >pom</type >
106
+ <scope >runtime</scope >
107
+ </dependency >
100
108
</dependencies >
101
109
</dependencyManagement >
102
110
131
139
<dependency >
132
140
<groupId >com.fasterxml.jackson.module</groupId >
133
141
<artifactId >jackson-module-jsonSchema</artifactId >
134
- <version >${jackson-module-jsonSchema.version} </version >
135
142
</dependency >
136
143
<dependency >
137
144
<groupId >com.powsybl</groupId >
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ public class SchemaController {
32
32
private final SchemaService schemaService ;
33
33
34
34
@ GetMapping (value = "/{elementType}/{infoType}" , produces = APPLICATION_JSON_SCHEMA_VALUE )
35
- @ Operation (summary = "Get network elements " )
36
- @ ApiResponse (responseCode = "200" , description = "Elements description " )
35
+ @ Operation (summary = "Get element schema description " )
36
+ @ ApiResponse (responseCode = "200" , description = "Element schema " )
37
37
public JsonSchema getElementSchema (@ Parameter (description = "Element type" ) @ PathVariable (name = "elementType" ) ElementType elementType ,
38
- @ Parameter (description = "Info type" ) @ PathVariable (name = "infoType" ) InfoType infoType ) {
38
+ @ Parameter (description = "Info type" ) @ PathVariable (name = "infoType" ) InfoType infoType ) {
39
39
try {
40
40
return schemaService .getSchema (elementType , infoType );
41
41
} catch (final UnsupportedOperationException | JsonMappingException ex ) {
You can’t perform that action at this time.
0 commit comments