You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
758 B

  1. check = {
  2. "type": "object",
  3. "properties": {
  4. "name": {"type": "string", "maxLength": 100},
  5. "desc": {"type": "string"},
  6. "tags": {"type": "string", "maxLength": 500},
  7. "timeout": {"type": "number", "minimum": 60, "maximum": 2592000},
  8. "grace": {"type": "number", "minimum": 60, "maximum": 2592000},
  9. "schedule": {"type": "string", "format": "cron", "maxLength": 100},
  10. "tz": {"type": "string", "format": "timezone", "maxLength": 36},
  11. "channels": {"type": "string"},
  12. "manual_resume": {"type": "boolean"},
  13. "methods": {"enum": ["", "POST"]},
  14. "unique": {
  15. "type": "array",
  16. "items": {"enum": ["name", "tags", "timeout", "grace"]},
  17. },
  18. },
  19. }