Skip to content

Commit 1f1523d

Browse files
committed
Hint OpenAPI generation on model.
1 parent a4ed3cd commit 1f1523d

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.scalafix.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ triggered.rules = [
1717
]
1818

1919
OrganizeImports {
20-
targetDialect = Auto
2120
coalesceToWildcardImportThreshold = 6
2221
expandRelative = true
2322
groups = [
@@ -30,3 +29,4 @@ OrganizeImports {
3029
removeUnused = false # Disabled until available on Scalafix for Scala 3.3
3130
blankLines = Auto
3231
}
32+
OrganizeImports.targetDialect = Scala3
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
__ ____ __ __ ___ ___ __ __ __ __ ____ ____ __ ____
3-
--/ __ \ / / / // _ | / _ \ / //_// / / // __/ / __/____ ___ _ / /___ _ |_ /
4-
-/ /_/ // /_/ // __ | / , _// ,< / /_/ /_\ \ _\ \ / __// _ `// // _ `/ _/_ <
5-
--\___\_\\____//_/ |_|/_/|_|/_/|_| \____//___/ /___/ \__/ \_,_//_/ \_,_/ /____/
6-
Quarkus Scala 3 Quickstart Project
2+
__ ____ __ __ ___ ___ __ __ __ __ ____ ____ __ ____
3+
-- / __ \ / / / // _ | / _ \ / //_// / / // __/ / __/____ ___ _ / /___ _ |_ /
4+
- / /_/ // /_/ // __ | / , _// ,< / /_/ /_\ \ _\ \ / __// _ `// // _ `/ _/_ <
5+
-- \___\_\\____//_/ |_|/_/|_|/_/|_| \____//___/ /___/ \__/ \_,_//_/ \_,_/ /____/
6+
Quarkus Scala 3 Quickstart Project

src/main/scala/org/acme/kafka/ArticleModels.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package org.acme.kafka
22

33
import io.quarkus.kafka.client.serialization.ObjectMapperDeserializer
4+
import org.eclipse.microprofile.openapi.annotations.media.Schema
45

6+
@Schema(implementation = classOf[ArticleStatus])
57
enum ArticleStatus:
68
case New, Processed
79

0 commit comments

Comments
 (0)