Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(router-bridge): add validation function to export #408

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

lrlna
Copy link
Member

@lrlna lrlna commented Sep 13, 2023

This branch is to simply export validation functionality in order for us to do differential testing between js & rust validations. Please do not merge.

lrlna and others added 3 commits September 13, 2023 14:16
This commit is to simply export validation functionality in order for us to do differential testing between js & rust validations.
Comment on lines 35 to 39
data: Option<serde_json::Value>,
/// The errors raised on this specific query if any
#[serde(default)]
#[serde(rename = "Err")]
errors: Option<Vec<ValidationError>>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data: Option<serde_json::Value>,
/// The errors raised on this specific query if any
#[serde(default)]
#[serde(rename = "Err")]
errors: Option<Vec<ValidationError>>,
pub data: Option<serde_json::Value>,
/// The errors raised on this specific query if any
#[serde(default)]
#[serde(rename = "Err")]
pub errors: Option<Vec<ValidationError>>,

I think these need to be pub so apollo-rs fuzzing can read them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants