chore: use snake case for API body request fields #1916
Closed
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.
Describe Your Changes
This pull request includes changes to standardize the naming convention for JSON fields in the codebase and documentation. The changes primarily involve replacing camelCase field names with snake_case equivalents.
Standardization of JSON field names:
docs/docs/basic-usage/index.mdx
: Updated JSON field name fromtaskId
totask_id
in the DELETE request example.docs/docs/capabilities/models/sources/index.mdx
: Updated JSON field names frommodelPath
tomodel_path
andtaskId
totask_id
in the POST and DELETE request examples. [1] [2]docs/static/openapi/cortex.json
: Updated multiple JSON field names from camelCase to snake_case, includingtaskId
totask_id
andmodelPath
tomodel_path
, in the OpenAPI specification. [1] [2] [3] [4] [5] [6] [7]engine/cli/commands/model_import_cmd.cc
andengine/cli/commands/model_pull_cmd.cc
: Updated JSON field names frommodelPath
tomodel_path
andtaskId
totask_id
in the respective command implementations. [1] [2]engine/common/download_task_queue.h
: Updated method parameters and internal field names fromtaskId
totask_id
. [1] [2]engine/controllers/models.cc
: Updated JSON field names and related variables from camelCase to snake_case, includingtaskId
totask_id
andmodelPath
tomodel_path
. [1] [2] [3] [4] [5]engine/e2e-test/test_api_model_import.py
: Updated JSON field names frommodelPath
tomodel_path
in the test cases. [1] [2]Fixes Issues
Self Checklist