Skip to content

Commit d84d1bd

Browse files
committed
Update kmp-json-schema-validator version: support for custom meta schemes
1 parent f7df311 commit d84d1bd

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
kotlin = "1.9.22"
3-
json-schema-validator = "0.0.7"
3+
json-schema-validator = "0.0.8"
44

55
[plugins]
66
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }

src/main/kotlin/TestFilters.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ object TestFilterDraft7 : TestFilter {
3030
}
3131

3232
object TestFilterDraft201909 : TestFilter {
33-
private val IGNORED_CASES_WITH_CUSTOM_META_SCHEMA: Set<String> = hashSetOf(
34-
"schema that uses custom metaschema with with no validation vocabulary",
35-
"ignore unrecognized optional vocabulary",
36-
)
3733

3834
private val IGNORE_CASES_WITH_MIN_CONTAINS_ZERO = setOf(
3935
"minContains = 0 with no maxContains",
@@ -42,8 +38,6 @@ object TestFilterDraft201909 : TestFilter {
4238
override fun shouldSkipCase(caseDescription: String): String? {
4339
return when {
4440
caseDescription.endsWith(" format") -> "the format keyword is not yet supported"
45-
caseDescription in IGNORED_CASES_WITH_CUSTOM_META_SCHEMA ->
46-
"vocabulary from custom meta-schemas is not supported yet"
4741
caseDescription in IGNORE_CASES_WITH_MIN_CONTAINS_ZERO ->
4842
"'minContains' does not affect contains work - at least one element must match 'contains' schema"
4943
else -> null
@@ -62,16 +56,10 @@ object TestFilterDraft201909 : TestFilter {
6256
}
6357

6458
object TestFilterDraft202012 : TestFilter {
65-
private val IGNORED_CASES_WITH_CUSTOM_META_SCHEMA: Set<String> = hashSetOf(
66-
"schema that uses custom metaschema with with no validation vocabulary",
67-
"ignore unrecognized optional vocabulary",
68-
)
6959

7060
override fun shouldSkipCase(caseDescription: String): String? {
7161
return when {
7262
caseDescription.endsWith(" format") -> "the format keyword is not yet supported"
73-
caseDescription in IGNORED_CASES_WITH_CUSTOM_META_SCHEMA ->
74-
"vocabulary from custom meta-schemas is not supported yet"
7563
else -> null
7664
}
7765
}

0 commit comments

Comments
 (0)