Files
kubevela/pkg/serverlib/testdata/definition/normalOpenAPISchemaFixed.json
zzxwill 53164a4d2f Implement API for generating OpenAPI schema for definition
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
2021-01-05 21:57:38 +08:00

39 lines
1.6 KiB
JSON

{
"openapi": "3.0.0",
"info": {
"title": "Generated by cue.",
"version": "no version"
},
"paths": {},
"components": {
"schemas": {
"parameter": {
"type": "object",
"required": [
"image"
],
"properties": {
"cmd": {
"description": "Commands to run in the container",
"title": "cmd",
"type": "array",
"items": {
"type": "string"
}
},
"image": {
"description": "Which image would you like to use for your service",
"title": "image",
"type": "string"
},
"cpu": {
"title": "cpu",
"type": "string"
}
}
}
}
}
}