@peopl-health/nexus 5.76.9 → 5.76.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -880,7 +880,7 @@ function issuePaths(issues) {
|
|
|
880
880
|
return [...new Set(issues.map((issue) => String(issue.path || '').replace(/\[[^\]]*\]/g, '[]')).filter(Boolean))];
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
// Zod issue paths in
|
|
883
|
+
// Zod issue paths in dotted form with indices collapsed; keys are the DTO's camelCase, not the model's snake_case.
|
|
884
884
|
function dtoIssues(err) {
|
|
885
885
|
const issues = Array.isArray(err?.issues) ? err.issues : [];
|
|
886
886
|
const paths = issues.map((issue) => ({ path: arr(issue.path).map((key) => (typeof key === 'number' ? '[]' : `.${String(key)}`)).join('').replace(/^\./, '') }));
|