[General] fix InlineModelResolver's logic and use openapi-generator's InlineModelResolver, so that nested "required" works correctly (#1200)

* fix InlineModelResolver's logis and use openapi-generator's InlineModelResolver, so that nested "required" works correctly

* add "required" to nested model schema

* update ensure-up-to-date to include openapi v3's jaxrs

* change test required field

* fix sample shell script, hide timestamp

* fix NPE

* move test case to petstore-with-fake-endpoints-models-for-testing.yaml

* fix jaxrs-jersey (oas3) example generate shell script to use petstore-with-fake-endpoints-models-for-testing.yaml

* add default value

* re-generate samples
This commit is contained in:
Dec12 | Fujigon
2018-10-23 17:51:55 +09:00
committed by William Cheng
parent 51d2e4bd4c
commit bb056ccf3d
310 changed files with 17989 additions and 346 deletions

View File

@@ -39,7 +39,7 @@ public class Category {
@JsonProperty("name")
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private String name;
private String name = "default-name";
public Category id(Long id) {
this.id = id;
@@ -68,7 +68,7 @@ public class Category {
* Get name
* @return name
**/
@ApiModelProperty(value = "")
@ApiModelProperty(required = true, value = "")
public String getName() {
return name;
}