File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ import com.papsign.ktor.openapigen.annotations.properties.description.Descriptio
1919import com.papsign.ktor.openapigen.annotations.type.`object`.example.ExampleProvider
2020import com.papsign.ktor.openapigen.annotations.type.`object`.example.WithExample
2121import com.papsign.ktor.openapigen.annotations.type.common.ConstraintViolation
22+ import com.papsign.ktor.openapigen.annotations.type.number.floating.clamp.FClamp
23+ import com.papsign.ktor.openapigen.annotations.type.number.floating.max.FMax
2224import com.papsign.ktor.openapigen.annotations.type.number.integer.clamp.Clamp
2325import com.papsign.ktor.openapigen.annotations.type.number.integer.max.Max
2426import com.papsign.ktor.openapigen.annotations.type.number.integer.min.Min
@@ -271,8 +273,8 @@ object TestServer {
271273 data class NumberValidatorsExample (
272274 @Min(0 ) val intWithMin : Int ,
273275 @Clamp( 1 , 90 ) val intBetween : Int ,
274- @Max (100 ) val floatMax : Float ,
275- @Clamp( 0 , 1 ) val floatBetween : Float
276+ @FMax (100.0 ) val floatMax : Float ,
277+ @FClamp( 0.0 , 1.0 ) val floatBetween : Float
276278 )
277279
278280 @Response(" A String Response" )
You can’t perform that action at this time.
0 commit comments