schema.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. schema:
  2. - type: field
  3. name: test_field_array
  4. describe: 测试field数组(必传)
  5. required: true
  6. as_array: true
  7. field_type: string
  8. - type: field
  9. name: test_field
  10. describe: 测试field(必传)
  11. required: true
  12. field_type: string
  13. - type: object
  14. name: test_obj_array
  15. describe: 测试对象(必传)
  16. required: true
  17. as_array: true
  18. fields:
  19. - type: field
  20. name: field
  21. describe: 测试对象字段类型字段(非必传)
  22. required: false
  23. field_type: string
  24. - type: object
  25. name: test_obj
  26. describe: 测试对象(必传)
  27. required: true
  28. fields:
  29. - type: field
  30. name: field_array
  31. describe: 测试对象字段类型数组字段(必传)
  32. required: true
  33. as_array: true
  34. field_type: string
  35. - type: field
  36. name: field
  37. describe: 测试对象字段类型字段(非必传)
  38. required: false
  39. field_type: string
  40. - type: object
  41. name: obj_array
  42. describe: 测试对象包含对象数组(必传)
  43. required: true
  44. as_array: true
  45. fields:
  46. - type: field
  47. name: obj_array_field1
  48. describe: 对象数组字段1(必传)
  49. required: true
  50. field_type: string
  51. - type: field
  52. name: obj_array_field2
  53. describe: 对象数组字段2(非必传)
  54. required: false
  55. field_type: string