-
Notifications
You must be signed in to change notification settings - Fork 1
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: parse schema from SDL #3
Conversation
fb7ff6c
to
d3ae0fc
Compare
d3ae0fc
to
6f50164
Compare
…whether this is a bug as a possible interface is also a possible type
@@ -154,7 +154,7 @@ pub enum IntrospectionInputTypeRef<'a> { | |||
#[cfg_attr(feature = "json", derive(Deserialize, Serialize))] | |||
#[cfg_attr(feature = "json", serde(rename_all = "camelCase"))] | |||
pub struct IntrospectionNamedTypeRef<'a> { | |||
#[cfg_attr(feature = "json", serde(skip))] | |||
#[cfg_attr(feature = "json", serde(borrow))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you end up figuring out what's up here with the skips?
schema_interface.add_possible_type(ctx, obj); | ||
} | ||
|
||
// TODO: possible interfaces aren't conveyed in the introspection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be post-processing to determine those? I' not sure what other SDL parsers do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible interfaces actually doesn't exist in the reference implementation, not sure why we added that
Co-authored-by: Dominic Petrick <[email protected]>
Co-authored-by: Dominic Petrick <[email protected]>
This is an initial implementation of the Schema Definition Language, currently this supports a schema like the following
It misses two SDL functionalities
This includes an initial set of validations that still need testing