raml-dotnet-parser-2
raml-dotnet-parser-2 copied to clipboard
Type not parsed when array item is a scalar (issue not solved for type Number)
Hi,
i was using the RAML.Net parser for VS 2015 and i found that for my RAML definition
#%RAML 1.0
title: "WebApi"
mediaType:
- "application/json"
types:
TestDataObject:
type: "object"
properties:
TestDataList:
type: "array"
description: "An array of decimals"
minItems: 1
items:
type: "number"
format: "double"
the plugin doesnt generate the correct type. Instead of generating a public IList<decimal> TestDataList {get; set;}
it generates a public decimal TestDataList {get; set}
.
i even tried with the following RAML code and the result was the same.
#%RAML 1.0
title: "WebApi"
mediaType:
- "application/json"
types:
TestDataObject:
type: "object"
properties:
TestDataList:
type: number[]
description: "An array of decimals"
minItems: 1
can you please investigate the issue?
Thanks and Cheers. Vivek