jsdoc.ask-1.json 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "additionalProperties": false,
  3. "description": "A validated registration form.",
  4. "properties": {
  5. "age": {
  6. "description": "Age in years.",
  7. "exclusiveMaximum": 130,
  8. "minimum": 13,
  9. "type": "number"
  10. },
  11. "email": {
  12. "description": "Contact email.",
  13. "format": "email",
  14. "type": "string"
  15. },
  16. "interests": {
  17. "description": "Interests.",
  18. "items": {
  19. "type": "string"
  20. },
  21. "maxItems": 5,
  22. "minItems": 1,
  23. "type": "array"
  24. },
  25. "subscribe": {
  26. "default": false,
  27. "description": "Whether to subscribe to the newsletter.",
  28. "type": "boolean"
  29. },
  30. "username": {
  31. "description": "Chosen username.",
  32. "maxLength": 20,
  33. "minLength": 3,
  34. "pattern": "^[a-z0-9_]+$",
  35. "type": "string"
  36. }
  37. },
  38. "required": [
  39. "username",
  40. "age",
  41. "email",
  42. "interests",
  43. "subscribe"
  44. ],
  45. "type": "object"
  46. }