-
Notifications
You must be signed in to change notification settings - Fork 7
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
nix_rs: Don't hardcode flake schema types #235
Conversation
I will also have to re-think this design based on how it will be used in #222, to parse |
schema
module; Enable generic schemas lookup from FlakeOutputs
- Use `#![warn(missing_docs)]` to enforce that all public entites are documented - Make an exception for `schema.rs` & `output.rs` since those can be documented as part of #235
- Use `#![warn(missing_docs)]` to enforce that all public entites are documented - Make an exception for `schema.rs` & `output.rs` since those can be documented as part of #235
- Use `#![warn(missing_docs)]` to enforce that all public entites are documented - Make an exception for `schema.rs` & `output.rs` since those can be documented as part of #235
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.
Just reviewed. @shivaraj-bh Can you merge from main
to bring in #283 (removing #![allow(missing_docs)]
in the process) and document the new types/ functions accordingly?
(Bear in mind that documentation should be more about general functional semantics than verbatim repetition of types).
Co-authored-by: Sridhar Ratnakumar <3998+srid@users.noreply.github.com>
#[serde(other)] | ||
Unknown, |
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.
Perhaps this should be Other(String)
? Assuming flake-schemas passes the arbitrary type string, that is. Not sure.
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.
Can address this in different PR. I'm merging this.
The "Option" is not really used by the function. And default handling is typically done by the caller. This function only cares to take FlakeOutput, not the meta struture.
Also rename the function, since 'children' is a superset of what this actually returns.
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.
Good stuff 👍🏿
resolves #262
TODO: