Repository navigation
Dynamic signature-mismatch error and template-based tests/test.json (from develop #171, #172) - #173
Merged
Merged
Conversation
* Dynamic error message instead of static for function signature mistmatch * Fixing lint error
… it (#172) * Copying tests/test.json from templates instead of generating a new one * Lint error fix
diksha-sf
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cherry-picks two already-merged
developchanges ontomain:deploycontract-mismatch error is built from the registered features instead of always namingSearchIndexChunkingV1Request/Response.REQUEST_TYPE_TO_FEATUREis keyed by(request_type, response_type), and the newdescribe_supported_signatures()narrows the hint to the matching feature asReq/Resp for use_in_feature: <Feature>.tests/test.jsonfrom the function template.datacustomcode init --code-type functioncopiespayload/tests/test.jsonfrom the template instead of generating one._generate_function_test_file()stays as a fallback when the template has none.Test plan
pytest tests/test_cli.py tests/test_deploy.py tests/test_describe_supported_signatures.py tests/test_function_utils.py tests/test_template.py(104 passed)mypy src/datacustomcode/cli.py src/datacustomcode/deploy.pydatacustomcode init <dir> --code-type functioncopies atests/test.jsonidentical to the template's🤖 Generated with Claude Code