RepreZen / KaiZen-OpenAPI-Editor

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

Strange behaviour with unquoted dot #432

Open KevinMitchell opened 6 years ago

KevinMitchell commented 6 years ago

In a YAML source A I define

openapi: 3.0.0
info: ...
components:
  schemas:
    Foo:
      type: object
      properties:
        ...
      x-foo:
        bar: .

In the editor there are no markers. In a separate YAML source B I reference a schema in source A. It complains with an invalid reference error. It does this even if I'm accessing a schema other than Foo in A. If I change the first source to quote the dot

      x-foo:
        bar: '.'

the marker goes away and it's happy with all references to schemas in A. Is the first version valid YAML, in which case why is a marker being generated? And if it's not valid YAML then why don't I get a marker shown in A?