-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4729 from swagger-api/Fix-#4715-JsonSchemaDialect
refs #4715 - change JsonSchemaDialect to one accepted by Swagger-UI
- Loading branch information
Showing
11 changed files
with
157 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/resources/TestArrayType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package io.swagger.v3.core.resolving.resources; | ||
|
||
import io.swagger.v3.oas.annotations.media.ArraySchema; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class TestArrayType { | ||
|
||
private Integer id; | ||
|
||
@ArraySchema(maxItems = 10) | ||
private List<String> names; | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
public List<String> getNames() { | ||
return names; | ||
} | ||
|
||
public void setNames(List<String> names) { | ||
this.names = names; | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...les/swagger-core/src/test/java/io/swagger/v3/core/resolving/resources/TestObject4715.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package io.swagger.v3.core.resolving.resources; | ||
|
||
public class TestObject4715 { | ||
|
||
private String foo; | ||
|
||
private String bar; | ||
|
||
private Integer id; | ||
|
||
public String getFoo() { | ||
return foo; | ||
} | ||
|
||
public void setFoo(String foo) { | ||
this.foo = foo; | ||
} | ||
|
||
public String getBar() { | ||
return bar; | ||
} | ||
|
||
public void setBar(String bar) { | ||
this.bar = bar; | ||
} | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.