Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

mediaType support #27

Open
alvassin opened this issue Apr 11, 2016 · 0 comments
Open

mediaType support #27

alvassin opened this issue Apr 11, 2016 · 0 comments

Comments

@alvassin
Copy link

Hello.

Please add mediaType support.
It is allowed to specify mediaType only once at top level, and then omit it in responses body.

Currently this valid raml will fail with error:

pyraml.model.ValidationError: {'body': "test' expected to be <class 'pyraml.entities.RamlBody'> or dict"}

My valid raml:

#%RAML 0.8
title: Test API
baseUri: http://localhost:8001
mediaType: application/json

schemas:
  - test: !include schemas/test.json

/resources:
  get:
    description: Get all resources
    responses:
      200:
        body:
            schema: test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant