Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bnasslahsen committed Dec 7, 2020
1 parent 73ca49b commit 8b58b07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
* @author bnasslashen
*/
@JsonPropertyOrder(value = {"openapi", "info", "externalDocs", "servers", "security", "tags", "paths", "components"}, alphabetic = true)
public abstract class SortedOpenAPIMixin {
public interface SortedOpenAPIMixin {

@JsonAnyGetter
@JsonPropertyOrder(alphabetic = true)
public abstract Map<String, Object> getExtensions();
Map<String, Object> getExtensions();

@JsonAnySetter
public abstract void addExtension(String name, Object value);
void addExtension(String name, Object value);

@JsonSerialize(using = PathsSerializer.class)
public abstract Paths getPaths();
Paths getPaths();
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@
* @author bnasslashen
*/
@JsonPropertyOrder(value = {"type", "format"}, alphabetic = true)
public abstract class SortedSchemaMixin {
public interface SortedSchemaMixin {

@JsonAnyGetter
@JsonPropertyOrder(alphabetic = true)
public abstract Map<String, Object> getExtensions();
Map<String, Object> getExtensions();

@JsonAnySetter
public abstract void addExtension(String name, Object value);
void addExtension(String name, Object value);

@JsonIgnore
public abstract boolean getExampleSetFlag();
boolean getExampleSetFlag();

@JsonInclude(JsonInclude.Include.CUSTOM)
public abstract Object getExample();
Object getExample();

}

0 comments on commit 8b58b07

Please sign in to comment.