Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Should bundle run validate first? #24

@philcluff

Description

@philcluff

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions