Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Type not parsed when array item is a scalar (issue not solved for type Number) #19

Open
vv-myst opened this issue Oct 2, 2017 · 0 comments

Comments

@vv-myst
Copy link

vv-myst commented Oct 2, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant