Open AlexHolly opened 5 years ago
Removing these lines helps. https://github.com/APIDevTools/swagger-parser/blob/c77ae7dfa9d0b7fa0f118f32f705effdf9542592/lib/index.js#L64-L66 https://github.com/APIDevTools/swagger-parser/blob/c77ae7dfa9d0b7fa0f118f32f705effdf9542592/lib/index.js#L83-L85
Also need to add some checks for info
schema.info &&
https://github.com/APIDevTools/swagger-parser/blob/c77ae7dfa9d0b7fa0f118f32f705effdf9542592/lib/index.js#L71
https://github.com/APIDevTools/swagger-parser/blob/c77ae7dfa9d0b7fa0f118f32f705effdf9542592/lib/index.js#L90
Is there a way to show which key is wrong, in the following example line 2 "should not have additionalProperty: inf" or any line number would be good.
Tested with: https://apidevtools.org/swagger-parser/online/
API