You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@johnzon.apache.org by rm...@apache.org on 2022/08/08 14:16:24 UTC
[johnzon] branch master updated: [JOHNZON-387] ensure ref has enclosing name - wrong param order
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 <rm...@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;
}