Skip to content

Commit

Permalink
make items nullable to strictly preserve behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
David Motsonashvili committed Jun 3, 2024
1 parent 3247c18 commit 6bb64ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class Schema<T>(
)

/** Registers a schema for an array */
fun arr(name: String, description: String, items: Schema<out Any> = Schema.str("", "")) =
fun arr(name: String, description: String, items: Schema<out Any>? = null) =
Schema<List<String>>(
name = name,
description = description,
Expand Down

0 comments on commit 6bb64ab

Please sign in to comment.