blob: f1c53e3d7fe73ae7fad44da61e886c9367310aca [file] [log] [blame]
Ben Craig262cfb42015-07-08 20:37:15 -05001Typical usage:
2 thrift.exe --audit <oldFile> <newFile>
3Example run:
4 > thrift.exe --audit test.thrift break1.thrift
5 [Thrift Audit Failure:break1.thrift] New Thrift File has missing function base_function3
6 [Thrift Audit Warning:break1.thrift] Constant const3 has different value
7
8Problems that the audit tool can catch:
9Errors
10 Removing an enum value
11 Changing the type of a struct field
12 Changing the required-ness of a struct field
13 Removing a struct field
14 Adding a required struct field
15 Adding a struct field 'in the middle'. This usually indicates an old ID has been recycled
16 Struct removed
17 Oneway-ness change
18 Return type change
19 Missing function
20 Missing service
21 Change in service inheritance
22Warnings
23 Removing a language namespace declaration
24 Changing a namespace
25 Changing an enum value's name
26 Removing an enum class
27 Default value changed
28 Struct field name change
29 Removed constant
30 Type of constant changed
31 Value of constant changed
32