{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"/"}],"paths":{"/api/tenants/current":{"get":{"tags":["Tenants"],"summary":"Get current tenant info with active modules","operationId":"getCurrent","responses":{"400":{"description":"Tenant-Id header is missing","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Tenant not found or disabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"200":{"description":"Tenant info with active modules","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CurrentTenantResponse"}}}}}}}},"components":{"schemas":{"ProblemDetail":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","format":"int32"},"detail":{"type":"string"},"instance":{"type":"string","format":"uri"},"properties":{"type":"object","additionalProperties":{}}}},"CurrentTenantResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"name":{"type":"string"},"modules":{"type":"array","items":{"$ref":"#/components/schemas/ModuleResponse"}}}},"ModuleResponse":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"object","additionalProperties":{"type":"string"}}}}}}}