We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 845654e commit 76535eaCopy full SHA for 76535ea
src/index.ts
@@ -73,10 +73,10 @@ export function validationMetadataArrayToSchemas(
73
74
const ctMetaForField = ctMetadata?.find((meta: ExposeMetadata) => meta.propertyName == propMeta.propertyName)
75
76
- if (ctMetaForField) {
77
- propMeta.propertyName = ctMetaForField.options.name ?? propMeta.propertyName
78
- return propMeta
+ if (ctMetaForField?.options.name) {
+ propMeta.propertyName = ctMetaForField.options.name;
79
}
+
80
return propMeta
81
})
82
0 commit comments