-
Notifications
You must be signed in to change notification settings - Fork 259
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
chore: refactor the generator implementation #2171
chore: refactor the generator implementation #2171
Conversation
…ted configs. fix: moved name generators to top.
- use resolved_src for reading file or remote resource but for linking use src.
…rest-to-config-gen
…lve-paths-inside-the-config
…eneralized config json.
src/core/generator/generator.rs
Outdated
operation_name: Option<String>, | ||
proto_samples: Option<Vec<ProtoInput>>, | ||
json_samples: Option<Vec<JsonInput>>, | ||
config_samples: Option<Vec<ConfigInput>>, |
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.
Config is not a sample. Rename the field.
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.
Create a Vec<Input>
where Input
is an Enum. Keep proto, json, config all as inputs.
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.
done.
…/github.com/tailcallhq/tailcall into chore/refactor-the-generator-implementation
src/core/generator/generator.rs
Outdated
reader: ResourceReader<Cached>, | ||
proto_reader: ProtoReader, | ||
operation_name: Option<String>, | ||
inputs: Option<Vec<Input>>, |
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.
Option isn't required.
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.
removed optional.
- added test case to check name generators are working correctly or not.
Summary:
Issue Reference(s):
Fixes #... (Replace "..." with the issue number)
Build & Testing:
cargo test
successfully../lint.sh --mode=fix
to fix all linting issues raised by./lint.sh --mode=check
.Checklist:
<type>(<optional scope>): <title>