This repository was archived by the owner on Apr 27, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/org/javawebstack/openapi/parser Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6262 <distributionManagement >
6363 <snapshotRepository >
6464 <id >javawebstack-snapshots</id >
65- <url >https://nexus.javawebstack.org /repository/javawebstack-snapshots</url >
65+ <url >https://nexus.lumaserv.cloud /repository/javawebstack-snapshots</url >
6666 </snapshotRepository >
6767 <repository >
6868 <id >javawebstack-releases</id >
69- <url >https://nexus.javawebstack.org /repository/javawebstack-releases</url >
69+ <url >https://nexus.lumaserv.cloud /repository/javawebstack-releases</url >
7070 </repository >
7171 </distributionManagement >
7272
Original file line number Diff line number Diff line change 22
33import com .google .gson .JsonArray ;
44import com .google .gson .JsonElement ;
5+ import com .google .gson .annotations .JsonAdapter ;
56import lombok .Getter ;
67import lombok .Setter ;
8+ import org .javawebstack .graph .util .GsonEnum ;
9+ import org .javawebstack .graph .util .GsonEnumAdapter ;
10+
11+ import java .util .Locale ;
712
813@ Getter @ Setter
914public class OpenAPIParameter {
1015
1116 String name ;
1217 String description ;
18+ @ JsonAdapter (GsonEnumAdapter .class )
1319 Location in ;
1420 OpenAPISchema schema ;
1521 Boolean required ;
@@ -18,11 +24,14 @@ public class OpenAPIParameter {
1824 JsonArray examples ;
1925 Boolean deprecated ;
2026
21- public enum Location {
27+ public enum Location implements GsonEnum {
2228 PATH ,
2329 QUERY ,
2430 HEADER ,
25- COOKIE
31+ COOKIE ;
32+ public String gsonValue () {
33+ return name ().toLowerCase (Locale .ROOT );
34+ }
2635 }
2736
2837}
You can’t perform that action at this time.
0 commit comments