-
Notifications
You must be signed in to change notification settings - Fork 112
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
Ability to add comments to yaml #767
Comments
Something like this might become possible if #131 is implemented. |
Haven't use the library for a long time. Any updates on this? |
We are working towards the ability to add metadata to structured config fields (#131). Thus dataclasses / attr classes will be able to have e.g. a description or comment or help data. |
I don't know if this already a feature or not but it would be useful to add comments to the output yaml string.
I have no idea how this could be implemented in dict -> yaml but probably there could be a method that adds a comment next to a value specified on it. On class -> yaml this could be done by reading the class doc attribute and parse it into comments, or still having the function mentioned above.
I don't really have a direct idea on how this could be implemented if not yet available but it would be an useful feature when generating an yaml file based on a class
The text was updated successfully, but these errors were encountered: