-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Milestone
Description
We have the following issue:
alliance.json
{
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"name": {
"type": "string"
},
"points": {
"type": "integer"
},
"diplomacy": {
"type": "object",
"properties": {
"treaties": {
"type": "array",
"items": {
"$ref": "alliance_treaty.json"
}
},
"ownOffers": {
"type": "array",
"items": {
"$ref": "alliance_treaty.json"
}
},
"foreignOffers": {
"type": "array",
"items": {
"$ref": "alliance_treaty.json"
}
}
}
}
}
}
alliance_treaty.json
{
"type": "object",
"properties": {
"allianceId": {
"type": "integer"
},
"otherAllianceId": {
"type": "integer"
},
"type": {
"type": "integer"
},
"status": {
"type": "integer"
}
}
}
We expect the output to be like this:
- Alliance.java
- AllianceTreaty.java
Actual result is:
- Alliance.java
- Treaty.java
This only happens when using "$ref" otherwise the class gets generated correctly. Is this a bug or are we missing something?
Thanks for your time!
Julian
Rospaccio and gitgrimbo