RepreZen / KaiZen-OpenAPI-Editor

Eclipse Editor for the Swagger-OpenAPI Description Language
Eclipse Public License 1.0
115 stars 12 forks source link

Question: Missing required properties error for non-OAS yaml files #444

Open vnalla opened 6 years ago

vnalla commented 6 years ago

Thanks a lot for fixing #439. However the editor shows following error messages if the yaml file does not have OAS spec required properties as shown in the screen shots below. It will be better if the editor can differentiate OAS and non-OAS spec files.

object has missing required properties "info", "openapi", "paths"
object has properties "Address" which are not allowed"

image

image

thanks,

tedepstein commented 6 years ago

Related to #431 - "Recognizers often ascribe wrong file type, showing spurious error messages"

tedepstein commented 6 years ago

Hi @vnalla. We're aware of this issue and plan to fix it in a future sprint. As a workaround, could you please try the following:

  1. Close the file in the editor.
  2. Open the problems view and, delete the errors on that file.
  3. Re-open the file.

It should be re-evaluated by the OpenAPI 2.0 and 3.0 recognizers, which won't find matching content. Thereafter the file should be treated as a plain YAML file, and you should not see those error messages.