Skip to content

Add validation rule to warn on differing @specifiedBy URLs #216

Description

@glen-84
# Schema A
scalar Date @specifiedBy(url: "https://example.com/date-spec-1")

# Schema B
scalar Date @specifiedBy(url: "https://example.com/date-spec-2")

Name: SpecifiedBy URL Mismatch
Code: SPECIFIED_BY_URL_MISMATCH
Severity: Warning

Description:

This validation rule checks for mismatches in the specified-by URLs of scalar types across different schemas. If a scalar type is defined in multiple schemas with different specified-by URLs, a warning is logged to indicate the inconsistency. This helps ensure that clients consuming the merged schema have a consistent understanding of the scalar type's behavior and specifications, even if the underlying implementations differ across schemas.

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