raml-java-parser icon indicating copy to clipboard operation
raml-java-parser copied to clipboard

Properly reporting base uri in validation results

Open gardea opened this issue 11 years ago • 0 comments

I have the following layout (I am using the test files, renamed include-sequence.yaml to *.raml):

layout

I've added an empty description in sequence-trait.yaml:

paged:
    queryParameters:
        offset:
            description:
            type: integer
            default: 0
        limit:
            type: integer
            default: 10
secured:
    headers:
        security:
            type: boolean
            required: true

When validating include-sequence, a warning (validation result) shows up, saying description cannot be empty; the line/col is reported as 4/13.

However, through the validation result object, I couldn't trace the base uri of the file for which the line/col applies (in this case it should be sequence-trait.yaml).

Is there a way to resolve the offending uri?

Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-150

gardea avatar Sep 26 '14 02:09 gardea