KaiZen-OpenAPI-Editor icon indicating copy to clipboard operation
KaiZen-OpenAPI-Editor copied to clipboard

Changed lines count should not be shown in error messages

Open tedepstein opened this issue 9 years ago • 6 comments

In #125, the error message on line 1 includes the actual error condition, plus number of changed lines, resulting in a "multiple markers" message:

Multiple markers at this line
- object has missing required properties "info", "paths", "swagger"
- 68 changed lines

The changed lines condition isn't an error, and the "multiple markers" construct shouldn't apply here. Can we suppress this?

tedepstein avatar May 28 '16 14:05 tedepstein

I'm getting lines changed as the only error in my yaml.

lineschangederror

jencodingatwork avatar Sep 01 '16 16:09 jencodingatwork

@jencodingatwork , thanks for reporting this. Would you mind attaching your Swagger spec?

tedepstein avatar Sep 01 '16 16:09 tedepstein

Related issue: https://github.com/RepreZen/SwagEdit/issues/180

tfesenko avatar Sep 01 '16 16:09 tfesenko

@jencodingatwork , thank you for reporting your case. Please note that sometimes SwagEdit shows this error when the machine is offline, you can see details in issue #180. Can in be your case?

tfesenko avatar Sep 01 '16 16:09 tfesenko

@tfesenko I am connected to the internet, but is there another way I am supposed to be connected?

@tedepstein I am using a generator to create my swagger.yaml file based off of my code which overwrites the existing yaml effectively changing all of the lines. Here is a hello-world example that I generated, which has the error in it. swagger.zip

jencodingatwork avatar Sep 01 '16 17:09 jencodingatwork

Discussed also in #299

tedepstein avatar Sep 22 '17 12:09 tedepstein