Skip to content

Commit

Permalink
Fix: Support Map Data Type for Generated Schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdussamet KACI committed Mar 2, 2023
1 parent 1cb75d8 commit 7581c94
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maven { url = uri("https://jitpack.io") }
```

```
implementation("com.github.DogusTeknoloji:springkafkadoc:1.0.3")
implementation("com.github.DogusTeknoloji:springkafkadoc:1.0.4")
```

- Add asyncapi configuration file
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
}

group = "com.dteknoloji"
version = "1.0.3"
version = "1.0.4"
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17

Expand All @@ -30,7 +30,7 @@ publishing {
publications {
create<MavenPublication>("maven") {
groupId = "com.dteknoloji"
version = "1.0.3"
version = "1.0.4"
artifactId = "springkafkadoc"
from(components["java"])
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ class SchemasService(
return "List"
}

if (type == Map::class.java) {
definitions["Map"] = ObjectSchema()
return "Map"
}

if (schemas.size == 1) {
return schemas.keys.first()
}
Expand Down

0 comments on commit 7581c94

Please sign in to comment.