-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openapi2jsonschema.py strips group to first subdomain #130
Comments
Apologies if I am slow to reply to requests with regards to this script - I do not understand it well enough and would need to have a number of unit tests to be sure changes do not break existing workflows. I actively rely on this script which is why I am conservative with changes. Thanks for your patience 🙇 |
Same happens to me. When I run the crd-extractor.sh script the CRD
|
nevermind... I just noticed that I somehow had
configured... |
This is an alternative way to fix #130. Instead of changing the `group` variable content, this commit adds a new variable `fullgroup` that does not split the group components. With this, users can specify the filename format like: FILENAME_FORMAT='{fullgroup}-{version}-{kind}'
This is an alternative way to fix yannh#130. Instead of changing the `group` variable content, this commit adds a new variable `fullgroup` that does not split the group components. With this, users can specify the filename format like: FILENAME_FORMAT='{fullgroup}-{version}-{kind}'
I'm trying to use
FILENAME_FORMAT='{group}-{version}-{kind}'
. I would have expected this to work with-schema-location './crd-schemas/{{ .Group }}-{{ .ResourceAPIVersion }}-{{ .ResourceKind }}.json'
. However for some reason openapi2jsonschema.py splits the group on.
and only uses the first component:kubeconform/scripts/openapi2jsonschema.py
Line 154 in 3cb76bc
This means that it ends up creating
monitoring-v1-prometheus.json
, but kubeconform looks formonitoring.coreos.com-v1-prometheus.json
The text was updated successfully, but these errors were encountered: