Skip to content

Commit

Permalink
refactor checking type
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelianhan007 committed Nov 6, 2024
1 parent cb7d4b3 commit 6d4d02c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,11 @@ spec:
path: "$.body.productOrderItem[*].['action']"
expectType: EXPECTED
value: add
- name: productOrderItem_product_place_role
path: "$.body.productOrderItem[0].product.place[0].role"
expectType: EXPECTED_EXIST
value: true
- name: productOrderItem_product_place_role_should_be
- name: productOrderItem[0].product.place[0].role
path: "$.body.productOrderItem[0].product.place[0].role"
expectType: EXPECTED
value: "INSTALL_LOCATION"
- name: productOrderItem_product_place_@type
path: "$.body.productOrderItem[0].product.place[0].@type"
expectType: EXPECTED_EXIST
value: true
- name: productOrderItem_product_place_@type_should_be
- name: productOrderItem[0].product.place[0].@type
path: "$.body.productOrderItem[0].product.place[0].@type"
expectType: EXPECTED
value: "GeographicAddressRef"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,11 @@ spec:
path: "$.body.productOrderItem[*].['action']"
expectType: EXPECTED
value: add
- name: productOrderItem_product_place_role
path: "$.body.productOrderItem[0].product.place[0].role"
expectType: EXPECTED_EXIST
value: true
- name: productOrderItem_product_place_role_should_be
- name: productOrderItem[0].product.place[0].role
path: "$.body.productOrderItem[0].product.place[0].role"
expectType: EXPECTED
value: "INSTALL_LOCATION"
- name: productOrderItem_product_place_@type
path: "$.body.productOrderItem[0].product.place[0].@type"
expectType: EXPECTED_EXIST
value: true
- name: productOrderItem_product_place_@type_should_be
- name: productOrderItem[0].product.place[0].@type
path: "$.body.productOrderItem[0].product.place[0].@type"
expectType: EXPECTED
value: "GeographicAddressRef"
Expand Down

0 comments on commit 6d4d02c

Please sign in to comment.