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
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