You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add support for conformance testing 'typed' declarative function signature (#121)
* feat: add support for conformance testing 'typed' declarative function signature
* expose 'typed' conformance test in github action workflows
* Add typed conformance test example to README.md
If there are validation errors, an error will be logged in the output, causing your conformance test to fail.
63
76
@@ -68,7 +81,8 @@ Frameworks to the Functions Framework contract.
68
81
| Configuration flag | Type | Default | Description |
69
82
| --- | --- | --- | --- |
70
83
|`-cmd`| string |`"''"`| A string with the command to run a Functions Framework server at `localhost:8080`. Must be wrapped in quotes. Ignored if`-buildpacks=true`. |
71
-
|`-type`| string |`"http"`| Type of functionto validate (must be `"http"`, `"cloudevent"`, or `"legacyevent"`). |
84
+
|`-type`| string |`"http"`| The functionsignature to use (must be `"http"`, `"cloudevent"`, or `"legacyevent"`). |
85
+
|`-declarative-type`| string |`""`| The declarative signature type of the function(must be 'http', 'cloudevent', 'legacyevent', or 'typed'), default matches -type |
72
86
|`-validate-mapping`| boolean |`true`| Whether to validate mapping from legacy->cloud events and vice versa (as applicable). |
73
87
|`-output-file`| string |`"function_output.json"`| Name of file output by function. |
74
88
|`-buildpacks`| boolean |`true`| Whether to use the current release of buildpacks to run the validation. If `true`, `-cmd` is ignored and `--builder-*` flags must be set. |
0 commit comments