-
Notifications
You must be signed in to change notification settings - Fork 12
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
yaml support #4
Comments
That doesn't appear to be the case. I don't see any yaml parsers referenced in the project's
Looks like Helm first parses the yaml file to a
I'm not sure. This tool is a simple wrapper around the I'd be open to a reviewing a PR that adds yaml support, but it should be explicitly differentiated on the command line, e.g. Depending on the complexity though, I may still decline it as there plenty of tools for doing yaml-to-json conversion out of band. |
Heya.. was popping back in to comment. I have it working. It is a super lightweight change and no change to the user interactions. I have it look for .yaml or .yml in either the schema or the target file. If found, convert and then load bytes, if not, do your current logic. I do have one question, why are you sometimes converting to putting I'll create a PR out of what I have now just so you can take a quick look and opine on it, but it very much 'hacked in' and will need some cleanup/refactoring. |
I pulled your code to merge into mine before doing a PR, it looks like you added an import that isn't accessible: https fetch failed: Get https://neilpa.me/go-x?go-get=1: Forbidden Can you take a look/fix? I also see that you have gox in the makefile. If this is the library you are trying to pull in, then I might have a different way of doing a comprehensive makefile w/o needing that. |
Great! Looking forward to the PR.
Yea, after thinking about it some more that seems like a better approach than adding new command line flags for yaml vs json.
This is because the
Yea, my original implementation was super naive, e.g. |
Hmm, I thought I made everything thing public when I did those changes yesterday. I'll see if I can figure out what I missed.
I added gox as a quick way to make the pre-built binaries I was attaching to releases. I'm fine removing that dependency and doing it purely in the Makefile with |
👏 |
It doesn't appear that it works with yaml schema or target file.
I know that the underlying xeipuuv/gojsonschema will support that as they are using it in Helm for validating the values.yaml.
Can this support be added?
The text was updated successfully, but these errors were encountered: