Skip to content

OpenAPI schema mismatch with actual database data #14676

@fopina

Description

@fopina

Currently the OpenAPI schema is generated with many validations derived from model definitions.

However, some of these are not actually enforced when adding data via the UI or, even worse, from parsers, that actually skip many of them (all?).

I have been maintaining and actively using a python package based on OpenAPI generator and I'm tracking some of these differences in fopina/defectdojo-api-generated#39

For my library in particular, I've been disabling most of the validations in a pre-processing step of the schema but should this be addressed for any OpenAPI consumer?

Given a validation in the schema, it is expected that data coming from the API should already be valid, not invalid...

As a different note, can I open a PR to docs to add my library to the list or what is the process to suggest that? I'd be happy to have more users providing feedback 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions