Skip to content

Commit b7d1505

Browse files
committed
Add note about reference impl of idn validation
1 parent 3ee69e6 commit b7d1505

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/commonMain/kotlin/io/github/optimumcode/json/schema/internal/formats/IdnHostnameFormatValidator.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ internal object IdnHostnameFormatValidator : AbstractStringFormatValidator() {
8686
}
8787
}
8888

89+
/**
90+
* NOTE: many thanks to authors of [com.networknt:json-schema-validator](https://github.com/networknt/json-schema-validator) library.
91+
* I used his [com.networknt.schema.utils.RFC5892] class as a reference when implementing these checks
92+
*/
8993
@Suppress("detekt:ReturnCount")
9094
private fun isValidLabel(
9195
label: String,

0 commit comments

Comments
 (0)