Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

components.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. module.exports = {
  2. components: {
  3. schemas: {
  4. id: {
  5. type: "string",
  6. description: "An id of a user"
  7. },
  8. User: {
  9. type: "object",
  10. properties: {
  11. name: {
  12. type: "string"
  13. },
  14. email: {
  15. type: "string"
  16. },
  17. password: {
  18. type: "string"
  19. },
  20. tokens: {
  21. type: "array",
  22. items: {
  23. type: "string"
  24. }
  25. }
  26. }
  27. },
  28. Token: {
  29. type: "object",
  30. properties: {
  31. token: {
  32. type: "string"
  33. },
  34. userId: {
  35. type: "string"
  36. }
  37. }
  38. }
  39. }
  40. }
  41. }