Closed h3rb-ts closed 3 years ago
@h3rb-ts You are trying to import this into editor.swagger.io or similar?
I believe that it simply doesn't like that this version has a few template parameters interspersed to make it easier to deploy to multiple instances. You could replace each occurrence of {{ URL_ROOT }}
with the URL of an actual GRiD instance, and that error would go away.
Honestly, you'll probably run across a few other validation issues as well, as this has strayed a bit over the years. I'm working on cleaning these up and upgrading to OpenAPI 3.0 as well, so I'm not sure we'll be pushing any further updates to this 2.0 spec.
Note that on GRiD, you could go to the API page and work with an interactive Swagger session. Maybe this meets your needs?
Reporting for your benefit. I suggest you update your README
Best, -h
Pasting "this link" into Swagger UI demo: https://raw.githubusercontent.com/CRREL/GRiD-API/master/swagger.v3.yaml
Results in:
Errors
Parser error on line 31 can not read a block mapping entry; a multiline key may not be an implicit key