Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Weird error message for missing property in array #5

Closed
VasiliyLysokobylko opened this issue Mar 22, 2016 · 1 comment
Closed

Weird error message for missing property in array #5

VasiliyLysokobylko opened this issue Mar 22, 2016 · 1 comment
Labels

Comments

@VasiliyLysokobylko
Copy link
Contributor

RAML:

#%RAML 1.0
title: WebOfMe
mediaType: application/json
types:
  MM:
    type: object
    properties:
      a: number
      items: VV[]
  VV:
    type: object
    properties:
      c: number
      b?:
      c1?:
annotationTypes:
  qq:
    properties:
      z: MM
/test:
  get:
    responses:
      200:
        body:
          schema: MM
          example:
            a: 3
            items:
              -
                c: 3
              -
                b: 4
                c1: 3

Result error message:

Error:value of declareProperty items: object should have declared property: c

The whole prefix should be either removed or made more meaningful.

Test to fix: parser/examples/ex6.raml

@VasiliyLysokobylko
Copy link
Contributor Author

mulesoft-labs/api-workbench#2496

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant