Skip to content

Commit

Permalink
[Dashboard] fix: RouteStatus is not nullchecked
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Dec 29, 2020
1 parent 9fdc490 commit e9a4e19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
import lombok.Singular;
import lombok.ToString;

/*
*
*
* FILE OVERRIDDEN DUE TO BAD DESCRIPTION FOR ingress FIELD:
* - It can come as null, but it's marked as required.
*
*
*
*/

/**
* RouteStatus provides relevant info about the status of a route, including which routers acknowledge it.
*/
Expand All @@ -42,7 +52,6 @@ public class RouteStatus implements Model {
/**
* ingress describes the places where the route may be exposed. The list of ingress points may contain duplicate Host or RouterName values. Routes are considered live once they are `Ready`
*/
@NonNull
@JsonProperty("ingress")
@Singular(value = "addToIngress", ignoreNullCollections = true)
private List<RouteIngress> ingress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void generate() {
final String fileContents = modelTemplate.execute(templateContext);
writeFile(key, fileContents);
});
settings.getLogger().lifecycle("Generated {} api entries", schemas.size());
settings.getLogger().lifecycle("Generated {} model entries", schemas.size());
}

private Map<String, Object> templateContext(Entry<String, Schema> entry) {
Expand Down

0 comments on commit e9a4e19

Please sign in to comment.