Using MarkLogic DHF, I am trying to invoke a json validation function from my harmonization flow. All works well in the rest of the flow except the validation function does not find the schema. The *-FINAL DB where the harmonized files end up has my *-SCHEMAS db associated, and my schema file is stored in that *-SCHEMAS db under a simple URI. How can I determine where the DHF harmonize flow is looking for the schema?
UPDATE: Through trial and error, I determined that after loading my json schema into my server's base "Schemas" DB, the harmonize flow was able to find it for the jsonValidate() function. But I don't understand why it does not find it in the final schemas DBs, which is where the schema is loaded by the build.
UPDATE 2.0: Using @grtjn's suggestion below, I determined the current database for the harmonize flow is not the final db but rather the staging db. So when I manually loaded the schema in the staging schemas db (with proper permissions), the flow finds it. So now I just need to figure out how to get the gradle deploy to put the schema in the staging schemas db instead of the final schemas db.