OpenApi.fromApi sets the endpoint security to an empty array ([]), which, according to the OpenAPI spec (https://spec.openapis.org/oas/v3.1.0.html#x4-8-10-1-fixed-fields), overrides the top-level security declaration:This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used.