Commit cfe6df7
committed
fix: preserve nil CredentialSets in copyDCQL to pass validation
When copyDCQL copies a DCQL with no CredentialSets, it was creating
an empty slice instead of leaving it nil. This caused validation to
fail because the 'omitempty,min=1' tag on CredentialSets requires
either nil (skipped by omitempty) or at least 1 element (min=1).
This fix only creates CredentialSets if the source has elements.1 parent c8c1aae commit cfe6df7
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
| |||
0 commit comments