diff options
Diffstat (limited to 'buildscripts/idl/tests/compatibility_test_pass/new/compatibility_test_pass_new.idl')
-rw-r--r-- | buildscripts/idl/tests/compatibility_test_pass/new/compatibility_test_pass_new.idl | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/buildscripts/idl/tests/compatibility_test_pass/new/compatibility_test_pass_new.idl b/buildscripts/idl/tests/compatibility_test_pass/new/compatibility_test_pass_new.idl index 536d407ab71..7b55a99b5b5 100644 --- a/buildscripts/idl/tests/compatibility_test_pass/new/compatibility_test_pass_new.idl +++ b/buildscripts/idl/tests/compatibility_test_pass/new/compatibility_test_pass_new.idl @@ -276,6 +276,16 @@ structs: type: variant: [int, string, intStringBoolToIntString] + 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>> + VariantRecursiveReply: description: "This reply contains a field that has a new variant type that is compatible with the old variant type" @@ -525,6 +535,15 @@ structs: type: variant: [int, string, InsertParameterStruct, UpdateParameterStruct] + 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, UpdateParameterStruct>> + VariantStructRecursiveStruct: description: "This struct contains a field where the old variant struct and the new variant struct are compatible" @@ -1491,6 +1510,16 @@ commands: api_version: "1" reply_type: NewVariantSubsetReplyThree + newReplyFieldArrayVariantSubset: + description: "new command when its reply field type is a array<variant> type that is + a subset of the old reply field array<variant> types" + command_name: newReplyFieldArrayVariantSubset + namespace: ignored + cpp_name: newReplyFieldArrayVariantSubset + strict: true + api_version: "1" + reply_type: NewArrayVariantSubsetReply + replyFieldVariantRecursive: description: "new command passes when its reply field type is a variant type that is compatible with the old reply field variant type" @@ -1774,6 +1803,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 |