Skip to content

Instantly share code, notes, and snippets.

@brianpursley
Last active January 19, 2023 01:39
Show Gist options
  • Save brianpursley/fedc16f66a57c4621b85a2b0e04f7b68 to your computer and use it in GitHub Desktop.
Save brianpursley/fedc16f66a57c4621b85a2b0e04f7b68 to your computer and use it in GitHub Desktop.
OpenAPI for testing
{
"definitions": {
"org.apache.camel.v1.Integration": {
"description": "Integration is the Schema for the integrations API",
"properties": {
"spec": {
"description": "the desired Integration specification",
"properties": {
"template": {
"description": "Pod template customization",
"properties": {
"spec": {
"description": "the specification",
"properties": {
"containers": {
"description": "Containers",
"type": "array",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
}
},
"required": ["containers"],
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "camel.apache.org",
"kind": "Integration",
"version": "v1"
}
]
}
}
# openapi
{
"definitions": {
"org.apache.camel.v1.Integration": {
"description": "Integration is the Schema for the integrations API",
"properties": {
"spec": {
"description": "the desired Integration specification",
"properties": {
"template": {
"description": "Pod template customization",
"properties": {
"spec": {
"description": "the specification",
"properties": {
"containers": {
"description": "Containers",
"type": "array",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
}
},
"required": ["containers"],
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "camel.apache.org",
"kind": "Integration",
"version": "v1"
}
]
}
}
}
{
"definitions": {
"org.apache.camel.v1.Integration": {
"description": "Integration is the Schema for the integrations API",
"properties": {
"spec": {
"description": "the desired Integration specification",
"properties": {
"template": {
"description": "Pod template customization",
"properties": {
"spec": {
"description": "the specification",
"properties": {
"containers": {
"description": "Containers",
"type": "array",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
}
},
"required": ["containers"],
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "camel.apache.org",
"kind": "Integration",
"version": "v1"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment