php-raml2html icon indicating copy to clipboard operation
php-raml2html copied to clipboard

Support for RAML 1.0

Open SynerG opened this issue 9 years ago • 3 comments

The current implementation does not support RAML 1.0. It accepts the definition file, but it does not parse the new elements in the DSL.

For example, using this specification:

#%RAML 1.0
title: Pet shop
version: 1
baseUri: /shop
/pets:
  get:
    responses:
      200:
        body:
          application/json:
  post:
    description: 'una descripcion'
    body:
      application/json:
        type: object
        properties:
          name: string
          kind: string
          price: number
        example: |
          {
            "name": "Snoopy",
            "kind": "Mammal",
            "price": 100
          }
  /{id}:
    put:
      body:
        application/json:
    delete:
      responses:
        204:

PHP-RAML2HTML shows the GET & POST methods, but the object definition for POST /pets is ignored as type: objectwas not supported in RAML 0.8.

Please, consider adding support for RAML 1.0

SynerG avatar Nov 27 '15 09:11 SynerG

1+, It will be great if this tool add support for RAML 1.0 features.

nash-ye avatar Mar 22 '16 13:03 nash-ye

+1 it will be great)

brud avatar Oct 29 '16 20:10 brud

And we are already in 2017... I would like a RAML 1.0 support too :)

ben221199 avatar Oct 20 '17 15:10 ben221199