Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing RAML with included raml schemas #23

Open
toorosan opened this issue Apr 11, 2018 · 0 comments
Open

Error parsing RAML with included raml schemas #23

toorosan opened this issue Apr 11, 2018 · 0 comments

Comments

@toorosan
Copy link

toorosan commented Apr 11, 2018

Error got from cli:

# raml-server api.raml
Error parsing: while validating body
schema must be a string
  in "api.raml", line 28, column 13:
                schema: !include responses/BaseOk ...

api.raml file contents:

#%RAML 0.8
title: test for Error parsing
version: v1
protocols: [HTTP, HTTPS]

baseUri: http://{host}:{port}/{version}
baseUriParameters:
  host:
    displayName: Domain name / IP address
    type: string
    default: localhost
  port:
    displayName: Port
    type: string
    default: 80


mediaType: application/json

/:
  get:
    description: "Base request"
    responses:
      200:
        description: "Base request description"
        body:
          application/json:
            schema: !include responses/BaseOk.raml

responses/BaseOk.raml file contents:

description: "Base OK result."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant