Skip to content

Commit

Permalink
test(crd-generator): approval test for default double
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <marc@marcnuri.com>
  • Loading branch information
manusa authored Nov 28, 2024
1 parent 0207e9c commit 70b2128
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public class AnnotatedSpec {
@JsonProperty(defaultValue = "1337")
@Default("1337") // compatibility with CRDGenerator-v1
private int defaultInt;
@JsonProperty(defaultValue = "13.37")
@Default("13.37") // compatibility with CRDGenerator-v1
private double defaultDouble;
@Required
private boolean emptySetter;
@Required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
defaultBoolean:
default: true
type: "boolean"
defaultDouble:
default: 13.37
type: "number"
defaultInt:
default: 1337
type: "integer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
defaultBoolean:
default: true
type: "boolean"
defaultDouble:
default: 13.37
type: "number"
defaultInt:
default: 1337
type: "integer"
Expand Down

0 comments on commit 70b2128

Please sign in to comment.