File tree Expand file tree Collapse file tree
samples/client/petstore/crystal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,5 +16,8 @@ development_dependencies:
1616 version : ~>1.5.0
1717 ameba :
1818 github : crystal-ameba/ameba
19+ spectator :
20+ gitlab : arctic-fox/spectator
21+ version : ~> 0.12.0
1922
2023license :
Original file line number Diff line number Diff line change 99#
1010
1111# load modules
12- require " spec "
12+ require " spectator "
1313require " json"
14+ require " time"
1415require " ../src/petstore"
1516
1617def assert_compilation_error (path : String , message : String ) : Nil
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ module Petstore
127127 end
128128
129129 if @password .to_s.size < 10
130- invalid_properties.push(" invalid value for \" password\" , the character length must be great than or equal to 10." )
130+ invalid_properties.push(" invalid value for \" password\" , the character length must be greater than or equal to 10." )
131131 end
132132
133133 pattern = Regexp .new(/^\d {10} $/ )
@@ -253,7 +253,7 @@ module Petstore
253253 end
254254
255255 if password.to_s.size < 10
256- raise ArgumentError .new(" invalid value for \" password\" , the character length must be great than or equal to 10." )
256+ raise ArgumentError .new(" invalid value for \" password\" , the character length must be greater than or equal to 10." )
257257 end
258258
259259 @password = password
You can’t perform that action at this time.
0 commit comments