The Functions Framework contract provides valuable guidance for all framework developers. We should explicitly alter the contract to allow for declarative function signatures.
Specifically:
Remove the requirement of a FUNCTION_SIGNATURE_TYPE environment variable if the function is specified declaratively.
Define the behavior for an unspecified FUNCTION_TARGET if the function is specified declaratively.
I suggest if a user only specified one function, we start that function. If a user specified multiple functions, we either fail or we prompt the user for which function to start.
The Functions Framework contract provides valuable guidance for all framework developers. We should explicitly alter the contract to allow for declarative function signatures.
Specifically:
FUNCTION_SIGNATURE_TYPE
environment variable if the function is specified declaratively.FUNCTION_TARGET
if the function is specified declaratively.https://github.com/GoogleCloudPlatform/functions-framework#specification-summary
CC: @matthewrobertson @anniefu