Summary
We have a client application that inserts very large JSON files with many content types and relations in Strapi. We would like to be able to validate in our client application these JSON files, with the same rules that we have defined in Strapi, before trying the insertion.
Is there a way we can mimic the Strapi validation on insertion on our custom typescript client app?
Why is it needed?
Inserting a very large file can be a pain on trial and error fixing errors on Strapi insertion so we would like verify insertion rules outside Strapi before trying Strapi insertion.
Suggested solution(s)
Somehow externalize validation rules to a file we can use, the same you create a generated file with content types, another file could either contain validation rules, validation logic or a validation configuration. We could take this file an embed in our custom logic.
Related issue(s)/PR(s)
We know you run a validation with Zod in export / import. I do not know if there is a file or files we can take from this process and use in our logic.
Summary
We have a client application that inserts very large JSON files with many content types and relations in Strapi. We would like to be able to validate in our client application these JSON files, with the same rules that we have defined in Strapi, before trying the insertion.
Is there a way we can mimic the Strapi validation on insertion on our custom typescript client app?
Why is it needed?
Inserting a very large file can be a pain on trial and error fixing errors on Strapi insertion so we would like verify insertion rules outside Strapi before trying Strapi insertion.
Suggested solution(s)
Somehow externalize validation rules to a file we can use, the same you create a generated file with content types, another file could either contain validation rules, validation logic or a validation configuration. We could take this file an embed in our custom logic.
Related issue(s)/PR(s)
We know you run a validation with Zod in export / import. I do not know if there is a file or files we can take from this process and use in our logic.