Custom Error Message Override Issue in Schema Validation

Hi, I'm trying to create a schema to validate a non empty trimmed string, I would like to have specific message if error occurs. I don't understand why the error message is not "override" for the three decode test ?
 const nonEmptyString = Schema.compose(
  Schema.Trim.annotations({
    message: () => "error Trim"
  }),
  Schema.NonEmptyString.annotations({
    message: () => "error NonEmptyString"
  })
).annotations({
  message: () => "override",
  override: true
})

console.log(Schema.decodeUnknownEither(nonEmptyString)(""))
console.log(Schema.decodeUnknownEither(nonEmptyString)(" "))
console.log(Schema.decodeUnknownEither(nonEmptyString)(undefined)) 
Was this page helpful?