Skip to content

Array item type is not named well when array property name ends in 'ies' #75

@joelittlejohn

Description

@joelittlejohn

Original author: [email protected] (October 08, 2012 10:26:33)

What steps will reproduce the problem?
i have a json schema in which schema named bats.jsd is defined to be an array of type bat and i gave a reference to it as follows:
{
"id": "properties",
"description": "A collection of repositories",
"type": "object",
"properties": {
"properties": {
"type": "array",
"items": {
"$ref": "property.jsd"
}
}
}
}

What is the expected output?
my expected output is formation of property.java and properties.java
and properties attribute should be defined as an array of type property.

What do you see instead?
i see proeperty.java, properties.java and propertie.java and the properties in properties.java is defined an array of type property

What version of the product are you using? On what Java version? (On what
version of Maven/Ant if applicable?)
i am using ant task and jsonschema2pojo0.3.2 api for generating pojos.

Original issue: http://code.google.com/p/jsonschema2pojo/issues/detail?id=75

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions