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

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


The following commit(s) were added to refs/heads/master by this push:
     new f908ae55 [JOHNZON-387] ensure ref has enclosing name - wrong param 
order
f908ae55 is described below

commit f908ae55b818f7c231a36e7bf3931773016f7900
Author: Romain Manni-Bucau <rmannibu...@gmail.com>
AuthorDate: Mon Aug 8 16:16:13 2022 +0200

    [JOHNZON-387] ensure ref has enclosing name - wrong param order
---
 .../java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
 
b/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
index 7f058ad9..28dbd705 100644
--- 
a/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
+++ 
b/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
@@ -443,8 +443,8 @@ public class PojoGenerator {
         final JsonValue ref = schema.get("$ref");
         if (ref != null && ref.getValueType() == JsonValue.ValueType.STRING) {
             final String name = onRef(new Ref(
-                    configuration.getClassName(),
-                    JsonString.class.cast(ref).getString(), imports, 
attributes, nested));
+                    JsonString.class.cast(ref).getString(), 
configuration.getClassName(),
+                    imports, attributes, nested));
             if (name != null) {
                 return name;
             }

Reply via email to