-
Notifications
You must be signed in to change notification settings - Fork 33
Description
An important use case for having fully resolved OpenAPI specifications is to generate code from them. When the document has validation errors and unresolved references then it is useless for this purpose.
Unfortunately, OpenAPI specs are incomplete for most APIs: hmrc/income-tax-mtd-changelog#318
Even though these public API specs should be fixed in their respective repositories, this service should probably either warn the user about validation errors or not to return incomplete specifications at all.
Parsing and bundling is handled in the fetchOasResolved function, where the construct that holds validation errors and warnings seems to be only logged at info level (see parserResult.getMessages()).
Should handleFailure be called instead of handleSuccess when parserResult.getMessages() != null ?