File tree Expand file tree Collapse file tree 3 files changed +6
-14
lines changed
jvmMain/kotlin/it/krzeminski/githubactionstyping/parsing
jvmTest/kotlin/it/krzeminski/githubactionstyping Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,8 @@ kotlin {
131131 sourceSets {
132132 jvmMain {
133133 dependencies {
134- implementation(" com.charleskorn.kaml:kaml:0.98 .0" )
135- implementation(" it.krzeminski:snakeyaml-engine-kmp:3.2 .1" )
134+ implementation(" com.charleskorn.kaml:kaml:0.102 .0" )
135+ implementation(" it.krzeminski:snakeyaml-engine-kmp:4.0 .1" )
136136 }
137137 }
138138
@@ -145,7 +145,7 @@ kotlin {
145145 implementation(" io.kotest:kotest-assertions-core" )
146146 implementation(" io.kotest:kotest-common" )
147147
148- implementation(" it.krzeminski:snakeyaml-engine-kmp:3.2 .1" )
148+ implementation(" it.krzeminski:snakeyaml-engine-kmp:4.0 .1" )
149149 implementation(" io.github.optimumcode:json-schema-validator:0.5.2" )
150150 }
151151 }
Original file line number Diff line number Diff line change @@ -20,10 +20,8 @@ data class ApiItem(
2020
2121fun parseTypesManifest (manifestString : String ): Result <TypesManifest > =
2222 runCatching {
23- val loadedTypesManifest = Load (
24- // work-around for https://github.com/krzema12/snakeyaml-engine-kmp/pull/390
25- LoadSettings .builder().setSchema(CoreSchema ()).build()
26- ).loadOne(manifestString)
23+ val loadedTypesManifest = Load (LoadSettings (schema = CoreSchema ()))
24+ .loadOne(manifestString)
2725
2826 when (loadedTypesManifest) {
2927 null -> TypesManifest ()
Original file line number Diff line number Diff line change @@ -49,13 +49,7 @@ private fun beValid(): Matcher<File> {
4949 MatcherResult (
5050 runCatching {
5151 schema.validate(dataFile.inputStream().use {
52- Load (
53- // work-around for https://github.com/krzema12/snakeyaml-engine-kmp/pull/390
54- // Per https://yaml.org/spec/1.2.2/#recommended-schemas, the Core Schema is
55- // the recommended default schema that YAML processor should use unless
56- // instructed otherwise.
57- LoadSettings .builder().setSchema(CoreSchema ()).build()
58- ).loadOne(it)
52+ Load (LoadSettings (schema = CoreSchema ())).loadOne(it)
5953 }.toJsonElement()) {
6054 errorMessage = buildString {
6155 if (errorMessage != null ) {
You can’t perform that action at this time.
0 commit comments