raml-java-parser-2 icon indicating copy to clipboard operation
raml-java-parser-2 copied to clipboard

Fix to bring AnnotationTypes inline with the RAML 1.0 spec

Open eserating-chwy opened this issue 9 years ago • 0 comments

Currently the parser is not inline with the current RAML 1.0 spec for AnnotationTypes.

Look at the example found in the parsers README.md

#%RAML 1.0
title: Samle API
version: v1.0
baseUri: https://www.example.com/{version}
annotationTypes:
  - paging:
      allowedTargets: method
      parameters:
        pageSize:
          type: pointer
          target: *.DataElement
        offset:
          type: pointer
          target: *.DataElement

Note that "parameters" is used as the name for the collection of annotation properties. In the RAML 1.0 spec this is actually "properties".

This pull request fixes this to come inline with the actual spec.

eserating-chwy avatar Apr 08 '16 15:04 eserating-chwy