File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
http-generator-core/src/main/java/io/avaje/http/generator/core Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public static String typeDef(TypeMirror typeMirror) {
38
38
}
39
39
}
40
40
41
- static String trimAnnotations (String type ) {
41
+ public static String trimAnnotations (String type ) {
42
42
int pos = type .indexOf ("@" );
43
43
if (pos == -1 ) {
44
44
return type ;
Original file line number Diff line number Diff line change 1
1
package io .avaje .http .generator .core .openapi ;
2
2
3
+ import io .avaje .http .generator .core .Util ;
3
4
import io .swagger .v3 .oas .annotations .Hidden ;
4
5
import io .swagger .v3 .oas .models .Operation ;
5
6
import io .swagger .v3 .oas .models .media .ArraySchema ;
@@ -203,8 +204,9 @@ private Schema<?> buildMapSchema(TypeMirror type) {
203
204
}
204
205
205
206
private String getObjectSchemaName (TypeMirror type ) {
206
- String canonicalName = type .toString ();
207
- int pos = canonicalName .lastIndexOf ('.' );
207
+
208
+ var canonicalName = Util .trimAnnotations (type .toString ());
209
+ final var pos = canonicalName .lastIndexOf ('.' );
208
210
if (pos > -1 ) {
209
211
canonicalName = canonicalName .substring (pos + 1 );
210
212
}
You can’t perform that action at this time.
0 commit comments