Skip to content

Commit

Permalink
62 add fields and contours validation
Browse files Browse the repository at this point in the history
  • Loading branch information
FergeSS committed Dec 5, 2024
1 parent 1c17577 commit 9752034
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/agroscience/fields/v2/entities/FieldV2.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@EqualsAndHashCode(callSuper = true)
public class FieldV2 extends AbstractEntity {

@Column(name = "name")
@Column(name = "name", length = 20, nullable = false)
private String name;

@Column(name = "description")
Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -607,13 +607,14 @@ components:
readOnly: true
name:
type: string
description: The name of the field
minimum: 1
maximum: 20
description: The name of the field should be in the range from 1 to 20
description:
type: string
description: Description of the field
required:
- name
- description

FieldDTO:
allOf:
Expand Down

0 comments on commit 9752034

Please sign in to comment.