You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The presharedkey field defaults to an empty string but the allow_empty property is not set. The allow_null property IS set but null values inherit the default value as designed.
To Reproduce
Make a POST request to /api/v2/vpn/wireguard/peer with presharedkey set to null or an empty string. You will get a 'value cannot be empty' error
Expected behavior
Empty strings should be allowed by the Model
Screenshots or Response
If applicable, add screenshots or response data to help explain your problem.
Describe the bug
The
presharedkey
field defaults to an empty string but theallow_empty
property is not set. Theallow_null
property IS set but null values inherit the default value as designed.To Reproduce
Make a POST request to /api/v2/vpn/wireguard/peer with
presharedkey
set to null or an empty string. You will get a 'value cannot be empty' errorExpected behavior
Empty strings should be allowed by the Model
Screenshots or Response
If applicable, add screenshots or response data to help explain your problem.
pfSense Version & Package Version:
Affected Endpoints:
Additional context
Discussed in #534
The text was updated successfully, but these errors were encountered: