package com.conveyal.r5.api;

/**
 * Dummy request for GraphQL
 *
 * Since GraphQL request is in JSON Jackson needs this to parse it correctly.
 */
public class GraphQlRequest {
    public String query;
    //FIXME: This should be Map<String, Object> and be serialized automatically with Jackson but it
    //doesn't seems to work.
    public String variables;
}

@@ -23,16 +23,79 @@
 5.api;%0A%0A
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;%0A%0A
 /**%0A * D
@@ -204,16 +204,60 @@
 ly.%0A */%0A
+@JsonIgnoreProperties(ignoreUnknown = true)%0A
 public c

Allow unknown properties in GraphQL requests