A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/APIDevTools/swagger-cli/issues/24 below:

Should `bundle` run `validate` first? · Issue #24 · APIDevTools/swagger-cli · GitHub

I've been working with OpenAPI 3 for the last couple of months, and swagger-cli is an important part of our toolchain.

Our toolchain (like several I've seen) currently runs validate first, followed by a status check, then a bundle if the validate was OK.

bundle currently works fine against a lot of invalid OpenAPI definitions because it doesn't validate first.

To me it would make sense for bundle to also validate, and not attempt to bundle if the file fails validation. I'd also suggest having a --ignore-validation-failures mode too.

It seems wrong to have a tool which produces broken output when provided with a broken input which it already has a way of validating.

I'd love to hear feedback on if this has been thought about / discussed before.

Thanks!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4