Possible to coerce a Number to a String on `strapi.entityService.create` when field in Strapi is a String


I’m having an issue in a content import plugin (GitHub - EdisonPeM/strapi-plugin-import-export-content: Csv and Json import / export content plugin to Strapi) where the csv import plugin is converting Strings that are purely numeric to actual Numbers and then the Strapi import function (using strapi.entityService.create) is failing because Strapi is expecting a String for a field instead of a Number. Is it possible to relax this requirement somehow with an option to allow the Strapi import to coerce the Number back into a String where required? I’ve looked around strapi/lib/services/entityService.js:133(strapi/entity-service.js at 077741b03725cc981bc984399d553df8a12d89d0 · strapi/strapi · GitHub) but am still unsure so thought I’d ask.


System Information
  • Strapi Version: 3.6.8
  • Operating System: Win10
  • Database: Postgres 13
  • Node Version: v14.17.3
  • NPM Version: 8.0.0

Is there a way I can better explain my question? Thanks for any help.

So on import I’m seeing this error from Strapi:

  e: {
    unit_number: [
      'unit_number must be a `string` type, but the final value was: `27`.'
    exterior_sqft: [
      'exterior_sqft must be a `string` type, but the final value was: `94`.'

Is it possible to let Strapi import this number data as a string anyway?