swagger-maven-plugin
swagger.json を生成するために使用します。ただし、実行ごとにプロパティの順序が変わることに気付きました。たとえば、次のようになります。
{
...
"definitions" : {
"MyClass1" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"title" : {
"type" : "string"
},
"description" : {
"type" : "string"
},
}
}
}
...
}
そして、次の世代の後:
{
...
"definitions" : {
"MyClass1" : {
"type" : "object",
"properties" : {
"description" : {
"type" : "string"
},
"title" : {
"type" : "string"
},
"name" : {
"type" : "string"
}
}
}
}
...
}
Javaの私のクラス:
public interface MyClass1 {
String getName();
String getTitle();
String getDescription();
}