-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 (#198): Add example, remove operationID
If the operationID is set and it collides, then the OpenAPI gets broken. That resulted in #198.
- Loading branch information
Showing
7 changed files
with
70 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
backend/app.hopps.org/src/main/java/app/hopps/org/jpa/Address.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,27 +8,31 @@ | |
import jakarta.persistence.ManyToMany; | ||
import jakarta.validation.constraints.Email; | ||
import jakarta.validation.constraints.NotBlank; | ||
import org.eclipse.microprofile.openapi.annotations.media.Schema; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collection; | ||
|
||
@Entity | ||
@Schema(name = "Member", description = "An example of a Hopps Member") | ||
public class Member extends PanacheEntity { | ||
|
||
// TODO: Add OneToMany to Bommel here and test it | ||
|
||
@NotBlank | ||
@Schema(examples = "Kim") | ||
private String firstName; | ||
|
||
@NotBlank | ||
@Schema(examples = "Rakete") | ||
private String lastName; | ||
|
||
@NotBlank | ||
@Schema(examples = "[email protected]") | ||
private String email; | ||
|
||
@ManyToMany | ||
@JoinTable(name = "member_verein", joinColumns = @JoinColumn(name = "member_id")) | ||
@Schema(examples = "[]") | ||
private Collection<Organization> organizations = new ArrayList<>(); | ||
|
||
@JsonIgnore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters