Open nikolay opened 5 years ago
Doesn't seem to work with remote ether:
The snippet:
local -r schema="https://raw.githubusercontent.com/kubernetes/kubernetes/v${kubernetes_version}/api/openapi-spec/swagger.json"
pushd "${schema_dir}"
rm -rf "${schema_dir}"
mkdir -p "${schema_dir}"
openapi2jsonschema \
--kubernetes \
--stand-alone \
"${schema}"
popd
returns tons of:
Processing storageclasslist
An error occured processing storageclasslist: URLError: <urlopen error [Errno 21] Is a directory: '/Users/.../schema/schemas/'>
with a lot of empty (0-byte) schema files.
to use local file you must use file protocol: file:///AbsolutePath
Using the
file:
protocol doesn't seem to work. It errors out like this: