Skip to content

Commit

Permalink
finishing off review changes and adding a test
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Apr 29, 2024
1 parent 4352572 commit ef05f18
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ private T resolveProperty(LinkedHashMap<String, String> visited, InternalSchemaS
// currently on string enums are supported
StringSchema stringSchema = jacksonSchema.asStringSchema();
if (!stringSchema.getEnums().isEmpty()) {
Set<String> ignores = type.isEnumType() ? findIngoredEnumConstants(type) : Collections.emptySet();
Set<String> ignores = type.isEnumType() ? findIgnoredEnumConstants(type) : Collections.emptySet();
final JsonNode[] enumValues = stringSchema.getEnums().stream()
.sorted()
.filter(s -> !ignores.contains(s))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public ComplexStatus() {
private State state;

@JsonProperty("message")
@PrinterColumn(name = "Message")
@PrinterColumn()
private String message;

public State getState() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
versions:
- additionalPrinterColumns:
- jsonPath: .status.message
name: Message
name: MESSAGE
priority: 0
type: string
- jsonPath: .status.state
Expand Down

0 comments on commit ef05f18

Please sign in to comment.