Skip to content

Commit c4102d3

Browse files
Fix BigInt
1 parent 8392eba commit c4102d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/src/main/scala/za/co/absa/springdocopenapiscala/OpenAPIModelRegistration.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ class OpenAPIModelRegistration(
272272
case t if t =:= typeOf[BigDecimal] =>
273273
new NumberSchema()
274274
case t if t =:= typeOf[BigInt] =>
275-
new IntegerSchema()
275+
val s = new IntegerSchema()
276+
s.setFormat(null)
277+
s
276278
}
277279

278280
private def registerAsReference(name: String, schema: Schema[_]): Schema[_] = {

0 commit comments

Comments
 (0)