-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add support for draft field name converter logic in DioptraClient
This commit extends the `NewResourceDraftsSubCollectionClient` and `ModifyResourceDraftsSubCollectionClient` classes to accept a new `convert_field_names_fn` argument, which takes a callable that implements the `ConvertFieldNamesToCamelCaseProtocol` interface. A utility function `make_field_names_to_camel_case_converter` that builds a callable that uses a Python dictionary for the name conversions and checks for field name collisions during conversion is provided. A new conversion callable is added to the entrypoints collection client to handle converting task_graph to taskGraph. The existing integration tests for the entrypoints drafts functionality have been updated to use task_graph instead of taskGraph, and a new unit test has been added to validate that a user cannot pass task_graph and taskGraph as arguments to the entrypoint drafts clients at the same time. Closes #727
- Loading branch information
1 parent
a26566b
commit c8a4c8d
Showing
4 changed files
with
190 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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