Skip to content

Commit

Permalink
Updated external reference data model (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf authored Mar 21, 2024
1 parent dbf4ff6 commit 6ff9246
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions models/cacao/cacao.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ type AuthenticationInformation struct {

type ExternalReferences struct {
Name string `bson:"name" json:"name" validate:"required"`
Description string `bson:"description" json:"description" validate:"required"`
Source string `bson:"source" json:"source" validate:"required"`
URL string `bson:"url" json:"url" validate:"required,url"`
Description string `bson:"description" json:"description,omitempty"`
Source string `bson:"source" json:"source,omitempty"`
URL string `bson:"url" json:"url,omitempty"`
ExternalId string `bson:"external_id" json:"external_id,omitempty"`
ReferenceId string `bson:"reference_id" json:"reference_id,omitempty"`
}

type ExtensionDefinition struct {
Expand Down

0 comments on commit 6ff9246

Please sign in to comment.