-
-
Notifications
You must be signed in to change notification settings - Fork 201
Closed
Description
Example:
Take an endpoint like
@GET("/required-string-param")
@Schema(description = "test\"ttttt")
public String requiredStringParam(@QueryParam @NonNull String value) {
return value;
}
Jooby apt generation creates a file that includes the line
java.util.Map.entry("Schema.description", "test"ttttt"),
This produces and invalid java file since we have a dangling ".
It seems like
jooby/modules/jooby-apt/src/main/java/io/jooby/internal/apt/RouteAttributesGenerator.java
Line 93 in ea03e75
| return "\"" + value + "\""; |
"\\\"". There's a bunch more cases that would need to be handled too (see https://docs.oracle.com/javase/specs/jls/se22/html/jls-3.html#jls-3.10.7)Reactions are currently unavailable