Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
This repository was 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

@vv-myst

Description

@vv-myst

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions