swagger-api/swagger-js

OpenAPI 3.1.0 support: collect errors for ExampleElement visitor hook

char0n opened this issue · 0 comments

Current behavior is that if there is an error in OpenAPI 3.1.0 resolution it fails fast. The expected behavior is that the resolution mechanism does what it can, compensate for errors, collect errors in ResolutionResult.errors and continue doing what it can. The collected errors must have compatible shape of errors collected from OpenAPI 2.0 and OpenAPI 3.0.x resolution.

The goal of this issue to implement error collection instead of throwing ones in ExampleElement visitor hook.

NOTE: use wrapError and toPath to collect resolution errors