Why does the parser resolve this as StringType[]? Is this a bug?


#1
#%RAML 1.0
title: My Test API
version: v1

uses:
  baseTypes: !include "baseTypes.raml"

types:
  myType:
    type: object
    properties:
      propertyA: baseTypes.myBaseType[]

=================================
and this is baseTypes.raml:

#%RAML 1.0 Library

types:
  myBaseType:
    type: integer

=================================

It seems that the parser thinks that myType.propertyA is a StringType[]. If I remove the [], the parser correctly parses propertyA as baseType.myBaseType.

Sounds like there’s a parser bug related to referencing arrays of types that are included in a library.

Does this make sense?

Atom 1.6.2
api-workbench 0.8.23


#2

Hi rojocapo.

This is an a known issue. It should to be gone with a newer version of type system incorporated (this should happen soon).

Regards,
Pavel


#3

Ok, thanks for the confirmation.

Regards