Skip to content

APITestCase: Validate OpenApi definition using a json schema #3828

Description

@fherbin

Description
would it be possible to validate the openApi definition?
I will explain for example it will be easier:
when I want to integrate my swagger definition in my api gateway (gravitee.io), it finds me errors like in the exemple below.

it would be great to be able to get these errors directly in apiplatform, in order to consolidate our openApi definitions.

Example

**attribute paths.'/v1/edit_facture_eaus/{id}' is not of type `object`
attribute paths.'/v1/chorus_pro/factures/upload'(post).[['unknown']].name is missing
attribute paths.'/v1/chorus_pro/factures/upload'(post).responses is missing
attribute paths.'/v1/chorus_pro/factures/{refDette}/status'(get).[refDette].type is missing
attribute paths.'/v1/chorus_pro/factures/{refDette}/status'(get).responses is missing
attribute paths.'/v1/soldes/abonnement/{abonnementId}' Declared path parameter abonnementId needs to be defined as a path parameter in path or operation level
attribute paths.'/v1/soldes/client/{clientId}'. Declared path parameter clientId needs to be defined as a path parameter in path or operation level

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions