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 66 */
77package org .gridsuite .geodata .server ;
88
9+ import io .swagger .v3 .oas .models .media .JsonSchema ;
10+ import io .swagger .v3 .oas .models .media .NumberSchema ;
11+
912import org .gridsuite .geodata .server .dto .json .CoordinateJsonModule ;
13+ import org .springdoc .core .utils .SpringDocUtils ;
1014import org .springframework .boot .SpringApplication ;
1115import org .springframework .boot .autoconfigure .SpringBootApplication ;
1216import org .springframework .context .annotation .Bean ;
1923public class GeoDataApplication {
2024
2125 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 ()));
2230 SpringApplication .run (GeoDataApplication .class , args );
2331 }
2432
2533 @ Bean
2634 public CoordinateJsonModule createCoordinateJsonModule () {
2735 return new CoordinateJsonModule ();
2836 }
37+
2938}
You can’t perform that action at this time.
0 commit comments