mikestowe / php-raml2html

A simple PHP library for publishing .RAML files as HTML API Documentation
62 stars 22 forks source link

Support for RAML 1.0 #9

Open SynerG opened 8 years ago

SynerG commented 8 years ago

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

nash-ye commented 8 years ago

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

brud commented 7 years ago

+1 it will be great)

ben221199 commented 6 years ago

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