You can simply diff it. Define the OpenAPI spec, have the framework generate a spec, compare.