Skip to content

Commit 1009b83

Browse files
committed
made it easier to create the schema url from the mapping identifier (#439)
1 parent 8eb1beb commit 1009b83

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/kotlin/io/openapiprocessor/spring/processor/JsonSchemaSpring.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ import java.net.URI
1111
const val SPRING_MAPPING_SCHEMA_VERSION = "v1"
1212

1313
val JSON_SCHEMA_SPRING = JsonSchema(
14-
URI("https://openapiprocessor.io/schemas/mapping/spring-mapping-${SPRING_MAPPING_SCHEMA_VERSION}.json"),
14+
URI("https://openapiprocessor.io/schemas/mapping/spring-${SPRING_MAPPING_SCHEMA_VERSION}.json"),
1515
"/mapping/${SPRING_MAPPING_SCHEMA_VERSION}/spring-mapping.yaml.json")

src/main/resources/mapping/v1/spring-mapping.yaml.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$id": "https://openapiprocessor.io/schemas/mapping/mapping-spring-v1.json",
2+
"$id": "https://openapiprocessor.io/schemas/mapping/spring-v1.json",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"title": "JSON Schema for openapi-processor-spring mapping.yaml v1",
55
"description": "openapi-processor-spring configuration and type mappings",

0 commit comments

Comments
 (0)