Skip to content

Commit

Permalink
Fix formatting of the patch example showing normalize (#103)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Rutkowski <[email protected]>
  • Loading branch information
mrutkows authored Jun 6, 2024
1 parent 27dbedb commit fce91f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1273,13 +1273,13 @@ The patched, output BOM has the two new properties at the specified indices:

##### Patch example 4a: `--normalize` properties after patching

This variant of the previous example also normalizes the output BOM arrays; in this case, normalizing the existing and added properties.
This variant of the previous example also normalizes the output BOM arrays; in this case, normalizing the existing and added properties of the `metadata.properties` array.

```bash
./sbom-utility patch --input-file test/patch/cdx-1-5-simplest-base.json --patch-file test/patch/cdx-patch-example-add-metadata-properties.json --normalize -q
```

The patched and **normalized** properties appear as follows:
The patched and **normalized** `metadata.properties` appear as follows:

```shell
{
Expand Down Expand Up @@ -1310,8 +1310,6 @@ The patched and **normalized** properties appear as follows:
}
```

```json

##### Patch example 5: "replace" BOM `version` and `timestamp`

This example shows how the patch's "replace" operation can be used to update the BOM document's `version` and `timestamp` values.
Expand Down

0 comments on commit fce91f0

Please sign in to comment.