I agree with you, but:
I declared a language as Swagger to avoid confusing with YAML Plugin: already developed by other people.
Just look at this class from source code.
The OpenApi Specification said that Swagger is JSON object, conform to the JSON standards.
The Swagger Plugin 1.1 analyzes this Object (not JSON format) , but the equivalent Object written in YAML.
For all files here, they are already converted from JSON format to YAML superset, witch is bad practice, i think.
From the documentation of YAML here :
“In contrast, YAML’s foremost design goals are human readability and support for serializing arbitrary native data structures.”
That why people write their REST API Description with YAML syntax.
From the link that you sent to me, in Swagger files, we find some thing like this :
application/json: |- { "instance": { "status": "ACTIVE", "updated": "2012-03-28T21:34:25Z", "name": "xml_rack_instance", "links": [ { "href": "https://openstack.example.com/v1.0/1234/instances/2450c73f-7805-4afe-a42c-4094ab42666b", "rel": "self" }, { "href": "https://openstack.example.com/instances/2450c73f-7805-4afe-a42c-4094ab42666b", "rel": "bookmark" } ],
From the (OAS) OpenAPI Specification here, you will never seen the same block with Brackets “{}” like JSON syntax.
For this reason that a Swagger Plugin return ParsingError : this syntax is not supported and doesn’t mean anything.
You can test the Plugin using this exemple from Swagger Petstore, change the content as you like to test implemented checks.
At the moment the Swagger Plugin 1.1 doesn’t support all YAML Information Models.
For the future releases, i will try to add some support for YAML supersets.
I hope that people from swagger.io will join this project to develop together some advanced functionalities.