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

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

Open vnalla opened this issue 7 years ago • 2 comments

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,

vnalla avatar May 10 '18 14:05 vnalla

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

tedepstein avatar May 10 '18 15:05 tedepstein

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.

tedepstein avatar May 10 '18 15:05 tedepstein