Please use the following code for the swagger. this has been fixed and it works for me.
swagger: '2.0'
info:
title: Microsoft 365 Lighthouse
version: beta
description: >
Use this connector to connect to Microsoft 365 Lighthouse and perform
actions such as retrieve all tenants in your Microsoft 365 account.
host: graph.microsoft.com
basePath: /beta
schemes:
- https
paths:
/tenantRelationships/managedTenants/tenants:
get:
summary: List Tenants
description: Retrieves a collection of tenants from Microsoft 365 Lighthouse.
operationId: GetTenants
produces:
- application/json
responses:
'200':
description: OK
schema:
type: object
properties:
value:
type: array
items:
$ref: '#/definitions/Tenant'
security:
- oauth2-auth: []
definitions:
Tenant:
type: object
properties:
id:
type: string
tenantId:
type: string
contract:
$ref: '#/definitions/Contract'
tenantStatusInformation:
$ref: '#/definitions/TenantStatusInformation'
createdDateTime:
type: string
format: date-time
lastUpdatedDatetime:
type: string
format: date-time
Contract:
type: object
properties:
displayName:
type: string
defaultDomainName:
type: string
contractType:
type: integer
TenantStatusInformation:
type: object
properties:
onboardingStatus:
type: string
onboardingDateTime:
type: string
format: date-time
onboardedByUserId:
type: string
offboardedDateTime:
type: string
format: date-time
offboardedBy:
type: string
delegatedPrivilegeStatus:
type: string
workloadStatuses:
type: array
items:
$ref: '#/definitions/WorkloadStatus'
WorkloadStatus:
type: object
properties:
displayName:
type: string
onboardingStatus:
type: string
onboardedDateTime:
type: string
format: date-time
offboardedDateTime:
type: string
format: date-time
securityDefinitions:
oauth2-auth:
type: oauth2
flow: accessCode
tokenUrl: https://login.windows.net/common/oauth2/authorize
scopes: {}
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
x-ms-openai-manifest:
humanName: List Tenants
modelDescription: Retrieves a collection of tenants from Microsoft 365 Lighthouse.
security:
- oauth2-auth: []