Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eserating-chwy
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant