Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. @Schema(description = "Information needed to create a prophecy.")
  2. public class CreateProphecyRequest {
  3.  
  4. @Schema(
  5. description = "Stock name.",
  6. required = true,
  7. minLength = 1,
  8. maxLength = 100,
  9. example = "GOOG"
  10. )
  11. private String stockName;
  12.  
  13. @Schema(
  14. description = "Expected future stock value.",
  15. required = true,
  16. minimum = "0.0",
  17. example = "120.45"
  18. )
  19. private BigDecimal stockExpectedValue;
  20.  
  21. @Schema(
  22. description = "Type of prophecy.",
  23. required = true,
  24. implementation = ProphecyType.class
  25. )
  26. private ProphecyType prophecyType;
  27.  
  28. @Schema(
  29. description = "Moment in time when the prophecy is expected to be fulfilled.",
  30. required = true,
  31. type = SchemaType.STRING,
  32. implementation = String.class,
  33. format = DataFormat.TIMESTAMP,
  34. example = "\"2019-03-21T14:30:44.406Z\""
  35. )
  36. private Instant expectedAt;
  37.  
  38. // … setters und getters …
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement