Feature #4246
closedAs a developer, I'd like to have a normalizer that support JSON input
Description
In order to support the katello content view filters, we have found that it is useful to have an option input normalizer that can take as an input either a json string or a path to a file that contains json input. This has been temporarily added in to the hammer-cli-katello; however, proposing to add it hammer-cli for the benefit of other users.
For example:
- json string:
--parameters '{ "units":[ { "name":"zoop", "version":"9.0", "inclusion":"false" } ] }'
- json file:
--parameters '/path/to/my/file.json'where the file might contain something like the following: {
"units":[ {
"name":"zip",
"version":"10.0",
"inclusion":"true"
}, {
"name":"zap",
"version":"1.0",
"inclusion":"true"
}, {
"name":"zoop",
"version":"9.0",
"inclusion":"false"
}
]
}
fixes #4246 - add JSONInput formalizer
Adding a formalizer that can take as input either
a json string or path to a json file.