Skip to content

Commit

Permalink
fix: call serializer.asDirty
Browse files Browse the repository at this point in the history
  • Loading branch information
nigrosimone committed Jan 18, 2025
1 parent 2fec476 commit 7a2a31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ function buildSingleTypeSerializer (context, location, input) {
} else if (schema.format === 'unsafe') {
return `json += serializer.asUnsafeString(${input})`
} else if (schema.format === 'dirty') {
return `json += JSON.stringify(${input})`
return `json += serializer.asDirty(${input})`
} else {
return `
if (typeof ${input} !== 'string') {
Expand Down

0 comments on commit 7a2a31a

Please sign in to comment.