function-orchestrator code can be found at https://gerrit.wikimedia.org/g/mediawiki/services/function-orchestrator
Look in src/utils.js, isGeneric.
This should use the GENERIC validator from function-schemata.
This may occasion changes to the schema itself (function-schemata:data/NORMAL/GENERIC.yaml).