raml-org / raml-java-parser-2

Other
19 stars 5 forks source link

Fix to bring AnnotationTypes inline with the RAML 1.0 spec #20

Open eserating-chwy opened 8 years ago

eserating-chwy commented 8 years ago

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.