internal/testdata/README.md
raw| 1 | Generating schemas |
| 2 | ================== |
| 3 | |
| 4 | This folder contains a few schemas, which are generally generated by |
| 5 | using `k8s.io/kube-openapi/cmd/openapi2smd`. |
| 6 | |
| 7 | For example, to generate the `k8s-schema.yaml` file, the following |
| 8 | command can be used: |
| 9 | |
| 10 | ``` |
| 11 | $ go run k8s.io/kube-openapi/cmd/openapi2smd@latest < \ |
| 12 | <(curl --silent https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json) \ |
| 13 | >k8s-schema.yaml |
| 14 | ``` |