Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Schema(description = "Information needed to create a prophecy.")
- public class CreateProphecyRequest {
- @Schema(
- description = "Stock name.",
- required = true,
- minLength = 1,
- maxLength = 100,
- example = "GOOG"
- )
- private String stockName;
- @Schema(
- description = "Expected future stock value.",
- required = true,
- minimum = "0.0",
- example = "120.45"
- )
- private BigDecimal stockExpectedValue;
- @Schema(
- description = "Type of prophecy.",
- required = true,
- implementation = ProphecyType.class
- )
- private ProphecyType prophecyType;
- @Schema(
- description = "Moment in time when the prophecy is expected to be fulfilled.",
- required = true,
- type = SchemaType.STRING,
- implementation = String.class,
- format = DataFormat.TIMESTAMP,
- example = "\"2019-03-21T14:30:44.406Z\""
- )
- private Instant expectedAt;
- // … setters und getters …
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement