mirror of
https://github.com/kubevela/kubevela.git
synced 2026-03-04 10:41:46 +00:00
Fetched cue parameters from workloaddefinition/traitdefinition, generated OpenAPI v3 schema, fixed problems of tainted `description` filed, added filed "title" required by form-render component, added it in API server router To fix #680
34 lines
848 B
JSON
34 lines
848 B
JSON
{
|
|
"openapi": "3.0.0",
|
|
"info": {
|
|
"title": "Generated by cue.",
|
|
"version": "no version"
|
|
},
|
|
"paths": {},
|
|
"components": {
|
|
"schemas": {
|
|
"parameter": {
|
|
"type": "object",
|
|
"required": [
|
|
"image"
|
|
],
|
|
"properties": {
|
|
"cmd": {
|
|
"description": "+usage=Commands to run in the container",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"image": {
|
|
"description": "+usage=Which image would you like to use for your service\n+short=i",
|
|
"type": "string"
|
|
},
|
|
"cpu": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |