Description
I have this json that defines a model called "Map".
I noticed that both in java and csharp this gets ignored when generating the code, I'm building a generator for a personalized language and it also gets ignored.
What I did was changing the name to "Mapa", and the problem is solved.
But if I name it "List" I get the same problem, so it seems to be related to names that exist as types (like tony tam guessed here)
Swagger declaration file content or url
```json
"Map": {
"description": "Typically, the map format would be consumed by Tradeoff Analytics JavaScript widget.",
"required": [
"anchors",
"nodes"
],
"properties": {
"anchors": {
"description": "A representation of the vertices for the objectives and their positions on the map visualization.",
"type": "array",
"items": {
"$ref": "#/definitions/Anchor"
}
},
"nodes": {
"description": "A cell on the map visualization. Each cell in the array includes coordinates that describe the position on the map of the glyphs for one or more listed options, which are identified by their keys. The structure of an array element is `{\"coordinates\": {\"x\": 0, \"y\": 0}, \"solution_refs\": [\"key1\", \"key3\"]}`, where `coordinates` describe the position on the map visualization of options identified by the keys in `solution_refs`.",
"type": "array",
"items": {
"$ref": "#/definitions/MapNode"
}
}
}
},
```
Command line used for generation
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i https://watson-api-explorer.mybluemix.net/listings/tradeoff-analytics-v1.json -l csharp -o outputC
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i https://watson-api-explorer.mybluemix.net/listings/tradeoff-analytics-v1.json -l java -o outputJ
Description
I have this json that defines a model called "Map".
I noticed that both in java and csharp this gets ignored when generating the code, I'm building a generator for a personalized language and it also gets ignored.
What I did was changing the name to "Mapa", and the problem is solved.
But if I name it "List" I get the same problem, so it seems to be related to names that exist as types (like tony tam guessed here)
Swagger declaration file content or url
Command line used for generation
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i https://watson-api-explorer.mybluemix.net/listings/tradeoff-analytics-v1.json -l csharp -o outputC
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i https://watson-api-explorer.mybluemix.net/listings/tradeoff-analytics-v1.json -l java -o outputJ