raml-java-parser-2
raml-java-parser-2 copied to clipboard
Fix to bring AnnotationTypes inline with the RAML 1.0 spec
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.