Skip to content

Commit

Permalink
made field optional
Browse files Browse the repository at this point in the history
  • Loading branch information
trbKnl committed Sep 18, 2024
1 parent dc756be commit 57009d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/systems/storage/surfresearchdrive/endpoint_model.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ defmodule Systems.Storage.SurfResearchDrive.EndpointModel do
alias Systems.Storage.SurfResearchDrive

@fields ~w(user password url folder passphrase)a
@required_fields @fields

@required_fields ~w(user password url folder)a
@derive {Jason.Encoder, only: @fields}
@derive {Inspect, except: [:user, :password, :passphrase]}
schema "storage_endpoints_surfresearchdrive" do
field(:user, :string)
field(:password, :string)
field(:url, :string)
field(:folder, :string)
field(:passphrase, :string)
field(:passphrase, :string, default: nil)

timestamps()
end
Expand Down

0 comments on commit 57009d1

Please sign in to comment.