Closed schloerke closed 3 years ago
@schloerke This is so due to no validations applied for OpenAPI v3. https://github.com/APIDevTools/swagger-parser/blob/fa54e0a030c0ca4d1abd090b77ce7d0dbb3205e1/lib/validators/spec.js#L17
Thank you @jaishirole . This is too bad. Closing the issue
When validating an API on https://editor.swagger.io/, the editor presents a valid error.
When running the same code through
swagger-parser
, there is no error.Reprex:
(No error given, api is presented as valid.)
(I hope I am not missing something obvious...)
Related: https://github.com/rstudio/plumber/issues/796 cc @karawoo