EugeneYushin commented on PR #2680:
URL: https://github.com/apache/kyuubi/pull/2680#issuecomment-6854879604

   Some Swagger annotations are still Scala classes, and they are rendered 
incorrectly without `SwaggerScalaModelConverter`, e.g.
   <img width="1367" height="154" alt="image" 
src="https://github.com/user-attachments/assets/2e22f1ec-5572-42e5-8d6b-1e0aef467232";
 />
   
   ```scala
   case class OperationHandle(identifier: UUID) {
   
     private var _hasResultSet: Boolean = _
   
     def setHasResultSet(hasResultSet: Boolean): Unit = _hasResultSet = 
hasResultSet
   
     def toTOperationHandle: TOperationHandle = {
       val tOperationHandle = new TOperationHandle
       tOperationHandle.setOperationId(Handle.toTHandleIdentifier(identifier))
       tOperationHandle.setHasResultSet(_hasResultSet)
       tOperationHandle
     }
   
     override def toString: String = s"OperationHandle [$identifier]"
   
   }
   ```
   
   vs DTO (which is [not 
wired](https://github.com/apache/kyuubi/blob/4c33a42c788e16c46051647fcbd2d8d1f26dac90/kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/SessionsResource.scala#L182)):
   
   ```java
   public class OperationHandle {
   
     private UUID identifier;
   
     public OperationHandle() {}
   
     public OperationHandle(UUID identifier) {
       this.identifier = identifier;
     }
   
     public UUID getIdentifier() {
       return identifier;
     }
   ...
   ```


-- 
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