summaryrefslogtreecommitdiff
path: root/buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl')
-rw-r--r--buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl38
1 files changed, 38 insertions, 0 deletions
diff --git a/buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl b/buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl
index 6a699b9a38c..a87a2b79fc8 100644
--- a/buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl
+++ b/buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl
@@ -281,6 +281,16 @@ structs:
variant: [int, string, intStringBoolToIntString,
StructFieldTypeRecursiveReplyTwo]
+ NewArrayVariantSubsetReply:
+ description: "This reply contains a field whose new array<variant> types are a subset
+ of the old array<variant> types"
+ is_command_reply: true
+ fields:
+ variantSubsetReplyFieldThree:
+ stability: stable
+ type:
+ array<variant<int, string, intStringBoolToIntString, StructFieldTypeRecursiveReplyTwo>>
+
VariantRecursiveReply:
description: "This reply contains a field that has a new variant type that is compatible
with the old variant type"
@@ -353,6 +363,14 @@ structs:
type: int
stability: stable
+ UpdateParameterStruct:
+ description: "The new command parameter's type and the
+ old command parameter's type are both structs"
+ fields:
+ update:
+ type: int
+ stability: stable
+
CommandParamStructRecursiveOne:
description: "This command parameter struct type contains a unstable field while the
new struct field is stable and optional"
@@ -514,6 +532,15 @@ structs:
type:
variant: [int, string, InsertParameterStruct]
+ ArrayVariantStructSupersetTwoStruct:
+ description: "This struct contains a field where the new array<variant> types contains two structs
+ while the old one contains one"
+ fields:
+ variantStructSupersetField:
+ stability: stable
+ type:
+ array<variant<int, string, InsertParameterStruct>>
+
VariantStructRecursiveStruct:
description: "This struct contains a field where the old variant struct and the new
variant struct are compatible"
@@ -1723,6 +1750,17 @@ commands:
api_version: "1"
reply_type: OkReply
+ newCommandTypeArrayVariantStructSuperset:
+ description: "new command passes because its type is a array<variant> type that is
+ a superset of the old command type array<variant> types"
+ command_name: newCommandTypeArrayVariantStructSuperset
+ namespace: type
+ type: ArrayVariantStructSupersetTwoStruct
+ cpp_name: newCommandTypeArrayVariantStructSuperset
+ strict: true
+ api_version: "1"
+ reply_type: OkReply
+
newCommandTypeVariantStructRecursive:
description: "new command passes because its type has a variant
struct type that is compatible with the old command type variant