From cb385e0acb3294c16c0b38cb99264d6b30551f12 Mon Sep 17 00:00:00 2001 From: "xiaolei.zl@alibaba-inc.com" Date: Fri, 3 Jan 2025 08:23:47 +0800 Subject: [PATCH] add allow_cast in openapi spec Committed-by: xiaolei.zl@alibaba-inc.com from Dev container --- .github/workflows/interactive.yml | 3 --- flex/openapi/openapi_coordinator.yaml | 2 ++ flex/openapi/openapi_interactive.yaml | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/interactive.yml b/.github/workflows/interactive.yml index 716c79ac2627..d160d4636b60 100644 --- a/.github/workflows/interactive.yml +++ b/.github/workflows/interactive.yml @@ -212,12 +212,9 @@ jobs: GLOG_v=10 ./bin/bulk_loader -g ${SCHEMA_FILE} -l ${BULK_LOAD_FILE} -d ${TMP_INTERACTIVE_WORKSPACE}/data/modern_graph/indices/ cd ${GITHUB_WORKSPACE}/flex/tests/hqps sed -i 's/interactive_workspace/temp_workspace/g' ./interactive_config_test.yaml - # set thread_num_per_worker to 4 - sed -i 's/thread_num_per_worker: 1/thread_num_per_worker: 4/g' ./interactive_config_test.yaml bash hqps_sdk_test.sh ${TMP_INTERACTIVE_WORKSPACE} ./interactive_config_test.yaml java bash hqps_sdk_test.sh ${TMP_INTERACTIVE_WORKSPACE} ./interactive_config_test.yaml python sed -i 's/temp_workspace/interactive_workspace/g' ./interactive_config_test.yaml - sed -i 's/thread_num_per_worker: 4/thread_num_per_worker: 1/g' ./interactive_config_test.yaml - name: Robustness test env: diff --git a/flex/openapi/openapi_coordinator.yaml b/flex/openapi/openapi_coordinator.yaml index a3029de3c5cc..88d5bb9affd1 100644 --- a/flex/openapi/openapi_coordinator.yaml +++ b/flex/openapi/openapi_coordinator.yaml @@ -331,6 +331,8 @@ components: type: string type: $ref: '#/components/schemas/GSDataType' + allow_cast: + type: boolean BasePropertyMeta: required: diff --git a/flex/openapi/openapi_interactive.yaml b/flex/openapi/openapi_interactive.yaml index 961a904869db..bdbf4474907b 100644 --- a/flex/openapi/openapi_interactive.yaml +++ b/flex/openapi/openapi_interactive.yaml @@ -1436,6 +1436,9 @@ components: example: param1 type: $ref: '#/components/schemas/GSDataType' + allow_cast: + type: boolean + example: true VertexRequest: x-body-name: vertex_request type: object