petrochenko-pavel-a / raml-js-parser2-issues

0 stars 0 forks source link

Clarify that `schema` and `type` are mutually exclusive #22

Closed VasiliyLysokobylko closed 8 years ago

VasiliyLysokobylko commented 8 years ago

RAML 1.0 RC2 should clearly state that schema and type are mutually exclusive. Therefore, the following should be invalid in any future version of RAML.

/resource:
  get:
    responses: 
      200:
        body: 
          application/json:
            schema: 
            type:

You are still allowed to have global definitions for schemas or types, although it is recommended to use types only.

VasiliyLysokobylko commented 8 years ago

https://github.com/raml-org/raml-spec/issues/308

sichvoge commented 8 years ago

Not yet done and related to #69