Yann Hamon
6ae8c45bc1
openapi2jsonschema.py now correctly fails if no FILE is passed ( #244 )
...
* openapi2jsonschema.py now correctly fails if no FILE is passed
* Update acceptance tests
2023-11-18 18:08:18 +01:00
Yamamoto, Hirotaka
452f1fe1db
Fix #130 in a backward-compatible way ( #219 )
...
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}'
2023-07-09 12:51:30 +02:00
w7089
aaecabe0b7
support disabling ssl validation in openapi2jsonschema.py ( #167 )
...
* support disabling ssl validation in openapi2jsonschema.py
* added acceptance tests for disable ssl feature
* speed up bats docker build
2023-02-26 12:33:54 +01:00
Jiri Tyr
84afe70659
Documenting Helm support via 3rd party repo ( #158 )
2022-12-27 17:21:12 +01:00
Eyar Zilberman
b5f34caa70
add constructor to handle equal sign (=) ( #104 )
...
Equal sign (=) was not parsed properly by pyyaml.
Added constructor to parse equal sign as string.
Related issue: https://github.com/yannh/kubeconform/issues/103
2022-04-06 09:12:48 +02:00
Maxime Brunet
30528c5671
scripts: Add tests for options
2021-12-12 11:44:09 -08:00
Maxime Brunet
67a73a9315
scripts: Optionally disallow additionalProperties at the root
2021-12-11 11:40:06 -08:00
Yann Hamon
ea3c592d63
HTTP acceptance test for openapi2jsonschema
2021-09-26 23:27:03 +02:00
Patrick Ruckstuhl
a30381c6aa
Add missing import urllib.request
2021-09-26 23:00:44 +02:00
Yann Hamon
19be42b9a6
simple openapi2jsonschema tests
2021-09-26 17:02:34 +02:00
Yann Hamon
dcc77ac3a3
Merge pull request #72 from tarioch/feature/handle_items_in_openapi2jsonschema
...
Also support items elements in yaml
2021-09-26 14:07:52 +02:00
Yann Hamon
f8dcb19789
Merge pull request #64 from PaytmLabs/hotfix/scripts/versions-before-version
...
I added some _very_ basic regression test, which checks that the output I am currently getting for a single resource from the prometheus operator does not change. It's not perfect, but changes that do not break that test are unlikely to break for me.
2021-09-26 14:00:06 +02:00
Yann Hamon
dfd7a5a102
Add simple regression tests for openapi2jsonschema
2021-09-26 13:46:05 +02:00
Patrick Ruckstuhl
9228dba915
Also support items elements in yaml, e.g. for kubectl get crds -o yaml
2021-09-25 01:09:08 +02:00
Maxime Brunet
c489a69a4c
scripts: Check versions before version
...
CRD versions can have multiple schemas, but they can also share the
same.
https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning/#specify-multiple-versions
2021-07-12 17:23:42 -07:00
David Holsgrove
d94454920b
Skip empty yaml docs - for yaml files with a structure like
...
```
# comment
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
```
2021-05-24 16:05:19 +10:00
Maxime Brunet
5ad6b481be
scripts: Pretty print JSON schemas
2021-01-04 11:28:45 -08:00
Yann Hamon
e9206c347e
Merge pull request #23 from PaytmLabs/hotfix/scripts/multi-version-schema
...
scripts: Fix creation of schema from multi-version CRD
2021-01-02 12:13:38 +01:00
Maxime Brunet
87183acf5f
scripts: Fix creation of schema from multi-version CRD
2020-12-29 12:10:11 -08:00
Maxime Brunet
dd5db71b1a
scripts: Support for alternative filename format
2020-12-29 09:49:20 -08:00
Yann Hamon
f6e6f7584c
support for multi-document yaml in openapi2jsonschema
2020-12-28 11:08:05 +01:00
Yann Hamon
4ae74305d1
Updated names for schema-location vars, added documentation, updated openapi2jsonschema
2020-11-15 16:19:49 +01:00
Yann Hamon
81e57782f4
migrate openapi2jsonschema to scripts/
2020-11-01 22:02:03 +01:00