File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/main/java/org/gridsuite/geodata/server Expand file tree Collapse file tree 1 file changed +7
-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 ;
9
11
import org .gridsuite .geodata .server .dto .json .CoordinateJsonModule ;
12
+ import org .springdoc .core .utils .SpringDocUtils ;
10
13
import org .springframework .boot .SpringApplication ;
11
14
import org .springframework .boot .autoconfigure .SpringBootApplication ;
12
15
import org .springframework .context .annotation .Bean ;
19
22
public class GeoDataApplication {
20
23
21
24
public static void main (String [] args ) {
25
+ SpringDocUtils .getConfig ().replaceWithSchema (
26
+ com .powsybl .iidm .network .extensions .Coordinate .class , new JsonSchema ()
27
+ .addProperty ("lat" , new NumberSchema ().format ("double" ))
28
+ .addProperty ("lon" , new NumberSchema ().format ("double" )));
22
29
SpringApplication .run (GeoDataApplication .class , args );
23
30
}
24
31
You can’t perform that action at this time.
0 commit comments