redoom opened a new pull request, #15806:
URL: https://github.com/apache/dubbo/pull/15806

   ## Summary
   
   Fix two critical issues in Dubbo REST OpenAPI schema resolution for generic 
nested types:
   
   1. **Generic nested type resolution incomplete** - Schemas for intermediate 
generic types (e.g., `PageResponse` in 
`ApiResponse<PageResponse<AccessLogRes>>`) were completely missing
   
   2. **Annotated fields disappearing or losing annotation metadata** - Fields 
with `@Schema` annotations were filtered out, and `description`/`example` 
properties were not displayed
   
   ### Before Fix
   
   ```json
   {
     "AccessLogRes": {
       "properties": {
         "userId": { "type": "string" },
         "createTime": { "format": "date-time", "type": "string" }
       }
     }
   }
   ```
   
   Missing `id` and `action` fields
   No description or example in any field
   
   ---
   
   ### After Fix
   
   ```json
   {
     "AccessLogRes": {
       "properties": {
         "id": {
           "type": "string",
           "description": "操作ID",
           "example": "123456"
         },
         "userId": { "type": "string" },
         "action": {
           "type": "string",
           "description": "操作类型",
           "example": "LOGIN"
         },
         "createTime": { "format": "date-time", "type": "string" }
       }
     }
   }
   ```
   
   All 4 fields present
   Annotation metadata (description, example) properly displayed
   
   ---
   
   ## Related Issues
   
   https://github.com/apache/dubbo/issues/15718
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to