Skip to content
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

change type structs encoding tag to json #648

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

joshrwolf
Copy link
Contributor

@joshrwolf joshrwolf commented Apr 28, 2023

changes the struct types encoding to json. this does not change apko's config to be json based, but uses json as the common denominator of the two to appease external parsers that live in json land (like the json schema format used by schemastore).

This works assuming apko doesn't use any yaml specific syntax, which I'm guessing it doesn't, but please correct me if I'm wrong!

The encoding is fairly simple, but I did my best to add/remove omitempty where necessary.

This PR is related to wolfi-dev/wolfictl#190

@joshrwolf joshrwolf requested a review from a team as a code owner April 28, 2023 18:13
@joshrwolf joshrwolf requested review from kaniini and removed request for a team April 28, 2023 18:13
@joshrwolf joshrwolf force-pushed the yaml-to-json-encoding branch 2 times, most recently from 4de02ee to db72872 Compare May 6, 2023 11:15
Signed-off-by: Josh Wolf <josh@wolfs.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant