File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/main/java/org/gridsuite/geodata/server Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
package org .gridsuite .geodata .server ;
8
8
9
+ import io .swagger .v3 .oas .models .media .JsonSchema ;
10
+ import io .swagger .v3 .oas .models .media .NumberSchema ;
11
+
9
12
import org .gridsuite .geodata .server .dto .json .CoordinateJsonModule ;
13
+ import org .springdoc .core .utils .SpringDocUtils ;
10
14
import org .springframework .boot .SpringApplication ;
11
15
import org .springframework .boot .autoconfigure .SpringBootApplication ;
12
16
import org .springframework .context .annotation .Bean ;
19
23
public class GeoDataApplication {
20
24
21
25
public static void main (String [] args ) {
26
+ SpringDocUtils .getConfig ().replaceWithSchema (
27
+ com .powsybl .iidm .network .extensions .Coordinate .class , new JsonSchema ()
28
+ .addProperty ("lat" , new NumberSchema ())
29
+ .addProperty ("lon" , new NumberSchema ()));
22
30
SpringApplication .run (GeoDataApplication .class , args );
23
31
}
24
32
25
33
@ Bean
26
34
public CoordinateJsonModule createCoordinateJsonModule () {
27
35
return new CoordinateJsonModule ();
28
36
}
37
+
29
38
}
You can’t perform that action at this time.
0 commit comments