From 558c364dbcd287f803466bd947845e732f31f01d Mon Sep 17 00:00:00 2001 From: Yann Hamon Date: Sat, 2 Jan 2021 14:29:06 +0100 Subject: [PATCH] update Readme --- Readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Readme.md b/Readme.md index aadf9ee..5d46663 100644 --- a/Readme.md +++ b/Readme.md @@ -185,6 +185,12 @@ JSON schema written to trainingjob_v1.json The `FILENAME_FORMAT` environment variable can be used to change the output file name (Available variables: `kind`, `group`, `version`) (Default: `{kind}_{version}`). +``` +$ export FILENAME_FORMAT='{kind}-{group}-{version}' +$ ./scripts/openapi2jsonschema.py https://raw.githubusercontent.com/aws/amazon-sagemaker-operator-for-k8s/master/config/crd/bases/sagemaker.aws.amazon.com_trainingjobs.yaml +JSON schema written to trainingjob-sagemaker-v1.json +``` + ### Speed comparison with Kubeval Running on a pretty large kubeconfigs setup, on a laptop with 4 cores: