Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
la-rebelion/kubernetes-pojos
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Auto-Generated Plain Old Java Objects (POJO) from Kubernetes API Swagger specs (official) withjsonschema2pojo.
cat k8s-api-swagger.json| yq -P> k8s-api-swagger.yamlio.k8s((\.)([a-zA-Z|1]+))+> io_k8s_$3# grep all typesgrep -E"io.k8s((\.)([a-z|1-2|\-]+))+((\.)([a-zA-Z]+):)" k8s-api-swagger-definitions-only.yaml| wc -l508# definitions and usagesgrep -E"io.k8s((\.)([a-z|1-2|\-]+))+((\.)([a-zA-Z]+))" k8s-api-swagger-definitions-only.yaml| wc -l1377# canonical namesgrep -E"io.k8s((\.)([a-z|1-2|\-]+))+((\.)([a-zA-Z]+):)" k8s-api-swagger-definitions-only.yaml| grep -E"io.k8s((\.)([a-z|1-2|\-]+))+"# just the packagesgrep -E"io.k8s((\.)([a-z|1-2|\-]+))+((\.)([a-zA-Z]+):)" ../k8s-api-swagger-definitions-only.yaml| grep -Eo"io.k8s((\.)([a-z|1-2|\-]+))+"| sort --unique> packages.txtmkdir -p`cat ../packages.txt`# VS Code - just the class nameio.k8s((?<dot>\.)(\w+))+ -->$3
For JSON Schema to POJO,two files are needed; the definitions (from Swagger: k8s-api-swagger-definitions-only.json) and the referenced schema (what I need/want) to "force" the generation of code (k8s-api-schema.json).
jsonschema2pojo --source k8s-api-schema.json --target java-gen -a JACKSON2 -R --package la.rebelion.k8s.api --include-dynamic-accessors --generate-constructors --constructors-include-copy-constructor
Kubernetes POJOs byLa Rebelion Labs is licensed under aCreative Commons Attribution-ShareAlike 4.0 International License.
Based on a work athttps://github.com/la-rebelion/kubernetes-pojos.
About
Auto Generated Plain Old Java Objects (POJO) from Kubernetes API Swagger specs (oficial)
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
