Skip to content

Schema: Duplicated object

Identifier: duplicated_object

Scanner(s) Support

GraphQL Scanner REST Scanner WebApp Scanner

Description

Duplicated objects occur when the same concept is defined more than once in your API schema, potentially causing different parts of your system to behave inconsistently. This can happen due to copy-pasting or poor organization, and it makes the API hard to maintain because changes in one instance might not be applied elsewhere. The risk lies in creating confusion about which definition is the true one, leading to bugs, integration issues, and even performance drops if the API ends up doing unnecessary work. Developers often fall into this trap when trying to speed up development without a proper plan for managing common data structures.

Configuration

Example

Example configuration:

---
security_tests:
  duplicated_object:
    assets_allowed:
    - REST
    - GRAPHQL
    - WEBAPP
    skip: false

Reference

assets_allowed

Type : List[AssetType]*

List of assets that this check will cover.

skip

Type : boolean

Skip the test if true.