File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
json-schema-validator/src/test/kotlin/io/openapiprocessor/jsonschema/schema
openapi-parser/src/test/kotlin/io/openapiparser Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class DynamicScopeSpec : StringSpec({
2222 fun createSchema (id: String? = null, recursiveAnchor: Boolean? = null): JsonSchema {
2323 val uri = if (id != null) createUri(id) else emptyUri()
2424
25- val map = mutableMapOf<String , Any >()
25+ val map = mutableMapOf<String , Any ? >()
2626 if (id != null) {
2727 map[" \$ id" ] = id
2828 }
@@ -48,7 +48,7 @@ class DynamicScopeSpec : StringSpec({
4848 fun createSchema2 (id: String? = null, dynamicAnchor: String? = null): JsonSchema {
4949 val uri = if (id != null) createUri(id) else emptyUri()
5050
51- val map = mutableMapOf<String , Any >()
51+ val map = mutableMapOf<String , Any ? >()
5252 if (id != null) {
5353 map[" \$ id" ] = id
5454 }
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class OverlayApplierSpec : StringSpec({
2727 fun createOpenApi(): OpenApiResult {
2828 return ApiBuilder ()
2929 .withApi("file:///openapi.yaml",
30- $$ """
30+ """
3131 openapi: "3.1.0"
3232 info:
3333 version: 1.0.0
@@ -51,7 +51,7 @@ class OverlayApplierSpec : StringSpec({
5151 content:
5252 application/json:
5353 schema:
54- $ref: '#/components/schemas/Foo '
54+ ${'$'} ref: '#/components/schemas/Foo '
5555
5656 components:
5757 schemas:
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import io.kotest.matchers.shouldBe
1313fun <O > testExtensions (
1414 name : String ,
1515 build : (content: String ) -> O ,
16- extract : (o: O ) -> Map <String , Any >
16+ extract : (o: O ) -> Map <String , Any ? >
1717) = stringSpec {
1818
1919 " gets $name extension values" {
You can’t perform that action at this time.
0 commit comments