schema.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "label": {
  3. "en-US": "Cloud Service",
  4. "zh-Hans": "云服务"
  5. },
  6. "form_schema": [
  7. {
  8. "type": "select",
  9. "label": {
  10. "en-US": "Cloud Provider",
  11. "zh-Hans": "云厂商"
  12. },
  13. "variable": "cloud_provider",
  14. "required": true,
  15. "options": [
  16. {
  17. "label": {
  18. "en-US": "AWS",
  19. "zh-Hans": "亚马逊"
  20. },
  21. "value": "AWS"
  22. },
  23. {
  24. "label": {
  25. "en-US": "Google Cloud",
  26. "zh-Hans": "谷歌云"
  27. },
  28. "value": "GoogleCloud"
  29. },
  30. {
  31. "label": {
  32. "en-US": "Azure Cloud",
  33. "zh-Hans": "微软云"
  34. },
  35. "value": "Azure"
  36. }
  37. ],
  38. "default": "GoogleCloud",
  39. "placeholder": ""
  40. },
  41. {
  42. "type": "text-input",
  43. "label": {
  44. "en-US": "API Endpoint",
  45. "zh-Hans": "API Endpoint"
  46. },
  47. "variable": "api_endpoint",
  48. "required": true,
  49. "max_length": 100,
  50. "default": "",
  51. "placeholder": "https://api.example.com"
  52. },
  53. {
  54. "type": "paragraph",
  55. "label": {
  56. "en-US": "API Key",
  57. "zh-Hans": "API Key"
  58. },
  59. "variable": "api_keys",
  60. "required": true,
  61. "default": "",
  62. "placeholder": "Paste your API key here"
  63. }
  64. ]
  65. }