forked from ghodss/yaml
-
Notifications
You must be signed in to change notification settings - Fork 88
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: kubernetes-sigs/yaml
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.5.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: kubernetes-sigs/yaml
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.6.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 9 commits
- 6 files changed
- 2 contributors
Commits on Jul 14, 2025
-
KYAML is a strict subset of YAML, which is sort of halfway between YAML and JSON. It has the following properties: * Does not depend on whitespace (easier to text-patch and template). * Always quotes value strings (no ambiguity aroud things like "no"). * Allows quoted keys, but does not require them, and only quotes them if they are not obviously safe (e.g. "no" would always be quoted). * Always uses {} for structs and maps (no more obscure errors about mapping values). * Always uses [] for lists (no more trying to figure out if a dash changes the meaning). * When printing, it includes a header which makes it clear this is YAML and not ill-formed JSON. * Allows trailing commas * Allows comments, * Tries to economize on vertical space by "cuddling" some kinds of brackets together. * Retains comments. Examples: A struct: ```yaml metadata: { creationTimestamp: "2024-12-11T00:10:11Z", labels: { app: "hostnames", }, name: "hostnames", namespace: "default", resourceVersion: "15231643", uid: "f64dbcba-9c58-40b0-bbe7-70495efb5202", } ``` A list of primitves: ```yaml ipFamilies: [ "IPv4", "IPv6", ] ``` A list of structs: ```yaml ports: [{ port: 80, protocol: "TCP", targetPort: 80, }, { port: 443, protocol: "TCP", targetPort: 443, }] ``` A multi-document stream: ```yaml --- { foo: "bar", } --- { qux: "zrb", } ```Configuration menu - View commit details
-
Copy full SHA for a932007 - Browse repository at this point
Copy the full SHA a932007View commit details -
* Can read 1 file (cmdline) * Can read multiple files (cmdline) * Can read stdin * Can write traditional YAML or KYAML * Can diff input vs output (-d) * Can write results to the input files (-w)
Configuration menu - View commit details
-
Copy full SHA for 7749171 - Browse repository at this point
Copy the full SHA 7749171View commit details -
kyaml: Implement escaping closer to YAML spec
It's unclear if we actually need this. The round-trip test works without it. The spec describes escapes for things like space and forward-slash, which seem wrong to escape, so I may be misreading it.
Configuration menu - View commit details
-
Copy full SHA for abc1add - Browse repository at this point
Copy the full SHA abc1addView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59c2c43 - Browse repository at this point
Copy the full SHA 59c2c43View commit details -
Change which methods get a newline and fix tests
Merge the "regular" and "compact" tests together.
Configuration menu - View commit details
-
Copy full SHA for 13509ad - Browse repository at this point
Copy the full SHA 13509adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a4f539 - Browse repository at this point
Copy the full SHA 4a4f539View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e3340b - Browse repository at this point
Copy the full SHA 2e3340bView commit details
Commits on Jul 24, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 23c836c - Browse repository at this point
Copy the full SHA 23c836cView commit details -
Merge pull request #132 from thockin/master
Add "kyaml" support and yamlfmt
Configuration menu - View commit details
-
Copy full SHA for 048d724 - Browse repository at this point
Copy the full SHA 048d724View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.5.0...v1.6.0