You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class User {
public String id;
public CodeDTO<UserRole> userRole;
public User(String id, CodeDTO<UserRole> userRole) {
this.id = id;
this.userRole = userRole;
}
}
Should generic Java types be represented with dynamic references (https://json-schema.org/blog/posts/dynamicref-and-generics#using-dynamic-references-to-support-generic-types) after recent adoption of openapi 3.1 as the default implementation for springdoc?
My endpoint returns User object:
Here is how generated schema looks like for it:
I would expect to have
CodeDTO
schema to be represented using dynamic reference instead of havingCodeDTOUserRole
The text was updated successfully, but these errors were encountered: