apollo-federation 2.13.1

Apollo Federation
Documentation
---
source: apollo-federation/src/connectors/validation/mod.rs
expression: "format!(\"{:#?}\", result.errors)"
input_file: apollo-federation/src/connectors/validation/test_data/url_properties/path.graphql
---
[
    Message {
        code: InvalidUrlProperty,
        message: "In `@source(name: \"v1\")`, the `path` argument is invalid: expected array but received incompatible array\nDetails: `List<One<String, Float, Bool>>` does not accept `[\"good\", 42, true, null, \"\"]`",
        locations: [
            10:16..10:44,
        ],
    },
    Message {
        code: InvalidUrlProperty,
        message: "In `@source(name: \"v2\")`, the `path` argument is invalid: `bad` must start with one of $config, $context, $request, $env",
        locations: [
            13:70..13:73,
        ],
    },
    Message {
        code: InvalidUrlProperty,
        message: "In `@source(name: \"v3\")`, the `path` argument is invalid: expected array but received incompatible string\nDetails: `List<One<String, Float, Bool>>` does not accept `\"bad\"`",
        locations: [
            16:54..16:59,
        ],
    },
    Message {
        code: InvalidUrlProperty,
        message: "In `@source(name: \"v4\")`, the `path` argument is invalid: expected array but received incompatible object\nDetails: `List<One<String, Float, Bool>>` does not accept `{ a: \"bad\" }`",
        locations: [
            20:54..20:66,
        ],
    },
    Message {
        code: InvalidUrlProperty,
        message: "In `@connect` on `Query.resources`, the `path` argument is invalid: expected array but received incompatible array\nDetails: `List<One<String, Float, Bool>>` does not accept `[\"good\", 42, true, null, \"\"]`",
        locations: [
            27:34..27:62,
        ],
    },
    Message {
        code: InvalidUrlProperty,
        message: "In `@connect` on `Query.resources`, the `path` argument is invalid: expected array but received incompatible array\nDetails: `List<One<String, Float, Bool>>` does not accept `[\n  One<String, null>,\n  One<Int, null>,\n  One<Float, null>,\n  One<Bool, null>,\n]`",
        locations: [
            32:34..32:70,
        ],
    },
    Message {
        code: InvalidUrlProperty,
        message: "In `@connect` on `Query.resources`, the `path` argument is invalid: `bad` must start with one of $args, $config, $context, $request, $env",
        locations: [
            35:53..35:56,
        ],
    },
    Message {
        code: InvalidUrlProperty,
        message: "In `@connect` on `Query.resources`, the `path` argument is invalid: expected array but received incompatible string\nDetails: `List<One<String, Float, Bool>>` does not accept `\"bad\"`",
        locations: [
            36:55..36:60,
        ],
    },
    Message {
        code: InvalidUrlProperty,
        message: "In `@connect` on `Query.resources`, the `path` argument is invalid: expected array but received incompatible object\nDetails: `List<One<String, Float, Bool>>` does not accept `{ a: \"bad\" }`",
        locations: [
            39:34..39:46,
        ],
    },
    Message {
        code: InvalidUrlProperty,
        message: "In `@connect` on `Query.resources`, the `path` argument is invalid: expected array but received incompatible union\nDetails: `List<One<String, Float, Bool>>` does not accept `One<String, null>`",
        locations: [
            24:16..24:22,
            24:13..24:22,
            47:59..47:60,
        ],
    },
]