This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 48838a1  Context API refactoring.
48838a1 is described below

commit 48838a13568a62bb9042f58452acb3c6906af8c2
Author: JamesBognar <[email protected]>
AuthorDate: Tue Oct 12 15:18:22 2021 -0400

    Context API refactoring.
---
 .../apache/juneau/dto/swagger/ui/SwaggerUI.java    | 40 +---------------------
 1 file changed, 1 insertion(+), 39 deletions(-)

diff --git 
a/juneau-core/juneau-dto/src/main/java/org/apache/juneau/dto/swagger/ui/SwaggerUI.java
 
b/juneau-core/juneau-dto/src/main/java/org/apache/juneau/dto/swagger/ui/SwaggerUI.java
index 5a12536..4929d5f 100644
--- 
a/juneau-core/juneau-dto/src/main/java/org/apache/juneau/dto/swagger/ui/SwaggerUI.java
+++ 
b/juneau-core/juneau-dto/src/main/java/org/apache/juneau/dto/swagger/ui/SwaggerUI.java
@@ -32,44 +32,6 @@ import org.apache.juneau.transform.*;
  */
 public class SwaggerUI extends PojoSwap<Swagger,Div> {
 
-       
//-------------------------------------------------------------------------------------------------------------------
-       // Configurable properties
-       
//-------------------------------------------------------------------------------------------------------------------
-
-       private static final String PREFIX = "SwaggerUI.";
-
-       /**
-        * Configuration property:  Resolve <c>$ref</c> references in schema up 
to the specified depth.
-        *
-        * <h5 class='section'>Property:</h5>
-        * <ul class='spaced-list'>
-        *      <li><b>ID:</b>  {@link 
org.apache.juneau.dto.swagger.ui.SwaggerUI#SWAGGERUI_resolveRefsMaxDepth 
SWAGGERUI_resolveRefsMaxDepth}
-        *      <li><b>Name:</b>  <js>"SwaggerUI.resolveRefsMaxDepth.i"</js>
-        *      <li><b>Data type:</b>  <jk>int</jk>
-        *      <li><b>System property:</b>  
<c>SwaggerUI.resolveRefsMaxDepth</c>
-        *      <li><b>Environment variable:</b>  
<c>SWAGGERUI_RESOLVEREFSMAXDEPTH</c>
-        *      <li><b>Default:</b>  <c>1</c>
-        *      <li><b>Session property:</b>  <jk>true</jk>
-        * </ul>
-        *
-        * <h5 class='section'>Description:</h5>
-        * <p>
-        * Defines the maximum recursive depth to resolve <c>$ref</c> variables 
in schema infos.
-        * <br>The default <c>1</c> means only resolve the first reference 
encountered.
-        * <br>A value of <c>0</c> disables reference resolution altogether.
-        *
-        * <h5 class='section'>Example:</h5>
-        * <p class='bcode w800'>
-        *      <jc>// Resolve schema references up to 5 levels deep.</jc>
-        *      <ja>@Rest</ja>(
-        *                      properties={
-        *                              
<ja>@Property</ja>(name=<jsf>SWAGGERUI_resolveRefsMaxDepth</jsf>, 
value=<js>"5"</js>)
-        *                      }
-        *      <jk>public class</jk> MyResource {...}
-        * </p>
-        */
-       public static final String SWAGGERUI_resolveRefsMaxDepth = PREFIX + 
"resolveRefsMaxDepth.i";
-
        static final FileFinder RESOURCES = FileFinder
                .create()
                .cp(SwaggerUI.class, null, true)
@@ -93,7 +55,7 @@ public class SwaggerUI extends PojoSwap<Swagger,Div> {
 
                Session(BeanSession bs, Swagger swagger) {
                        this.swagger = swagger.copy();
-                       this.resolveRefsMaxDepth = 
bs.getSessionProperties().getInt(SWAGGERUI_resolveRefsMaxDepth, 1);
+                       this.resolveRefsMaxDepth = 1;
                }
        }
 

Reply via email to