Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix(openapi): make the data and status required in success responses (#10390)

Vikrant Guptac04f664e2fa4
diff --git a/docs/api/openapi.yml b/docs/api/openapi.yml
index 201a9d6c76..bc2a255cd7 100644
--- a/docs/api/openapi.yml
+++ b/docs/api/openapi.yml
@@ -2150,6 +2150,9 @@ paths:
type: array
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"500":
@@ -2233,6 +2236,9 @@ paths:
$ref: '#/components/schemas/AuthtypesGettableToken'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: See Other
"400":
@@ -2271,6 +2277,9 @@ paths:
$ref: '#/components/schemas/AuthtypesGettableToken'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: See Other
"400":
@@ -2334,6 +2343,9 @@ paths:
$ref: '#/components/schemas/AuthtypesGettableToken'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: See Other
"400":
@@ -2428,6 +2440,9 @@ paths:
$ref: '#/components/schemas/DashboardtypesGettablePublicDasbhboard'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -2482,6 +2497,9 @@ paths:
$ref: '#/components/schemas/TypesIdentifiable'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: Created
"401":
@@ -2575,6 +2593,9 @@ paths:
type: array
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -2622,6 +2643,9 @@ paths:
$ref: '#/components/schemas/AuthtypesGettableAuthDomain'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -2818,6 +2842,9 @@ paths:
$ref: '#/components/schemas/TelemetrytypesGettableFieldKeys'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -2908,6 +2935,9 @@ paths:
$ref: '#/components/schemas/TelemetrytypesGettableFieldValues'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -2957,6 +2987,9 @@ paths:
$ref: '#/components/schemas/TypesResetPasswordToken'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -3012,6 +3045,9 @@ paths:
$ref: '#/components/schemas/TypesGettableGlobalConfig'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -3057,6 +3093,9 @@ paths:
type: array
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -3104,6 +3143,9 @@ paths:
$ref: '#/components/schemas/TypesInvite'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: Created
"400":
@@ -3217,6 +3259,9 @@ paths:
$ref: '#/components/schemas/TypesInvite'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -3260,6 +3305,9 @@ paths:
$ref: '#/components/schemas/TypesUser'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: Created
"400":
@@ -3354,6 +3402,9 @@ paths:
type: array
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -3452,6 +3503,9 @@ paths:
type: array
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -3501,6 +3555,9 @@ paths:
$ref: '#/components/schemas/PreferencetypesPreference'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -3614,6 +3671,9 @@ paths:
type: array
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -3661,6 +3721,9 @@ paths:
$ref: '#/components/schemas/TypesGettableAPIKey'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: Created
"400":
@@ -3828,6 +3891,9 @@ paths:
$ref: '#/components/schemas/DashboardtypesGettablePublicDashboardData'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -3881,6 +3947,9 @@ paths:
$ref: '#/components/schemas/Querybuildertypesv5QueryRangeResponse'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -3958,6 +4027,9 @@ paths:
type: array
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -4005,6 +4077,9 @@ paths:
$ref: '#/components/schemas/TypesIdentifiable'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: Created
"400":
@@ -4139,6 +4214,9 @@ paths:
$ref: '#/components/schemas/RoletypesRole'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -4262,6 +4340,9 @@ paths:
type: array
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -4401,6 +4482,9 @@ paths:
$ref: '#/components/schemas/RoletypesGettableResources'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -4446,6 +4530,9 @@ paths:
type: array
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -4540,6 +4627,9 @@ paths:
$ref: '#/components/schemas/TypesUser'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -4599,6 +4689,9 @@ paths:
$ref: '#/components/schemas/TypesUser'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -4654,6 +4747,9 @@ paths:
$ref: '#/components/schemas/TypesUser'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -4696,6 +4792,9 @@ paths:
type: array
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -4745,6 +4844,9 @@ paths:
$ref: '#/components/schemas/PreferencetypesPreference'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -4887,6 +4989,9 @@ paths:
type: array
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -4939,6 +5044,9 @@ paths:
$ref: '#/components/schemas/GatewaytypesGettableIngestionKeys'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -4986,6 +5094,9 @@ paths:
$ref: '#/components/schemas/GatewaytypesGettableCreatedIngestionKey'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -5124,6 +5235,9 @@ paths:
$ref: '#/components/schemas/GatewaytypesGettableCreatedIngestionKeyLimit'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: Created
"401":
@@ -5265,6 +5379,9 @@ paths:
$ref: '#/components/schemas/GatewaytypesGettableIngestionKeys'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -5328,6 +5445,9 @@ paths:
$ref: '#/components/schemas/MetricsexplorertypesListMetricsResponse'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -5383,6 +5503,9 @@ paths:
$ref: '#/components/schemas/MetricsexplorertypesMetricAlertsResponse'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -5449,6 +5572,9 @@ paths:
$ref: '#/components/schemas/MetricsexplorertypesMetricAttributesResponse'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -5504,6 +5630,9 @@ paths:
$ref: '#/components/schemas/MetricsexplorertypesMetricDashboardsResponse'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -5560,6 +5689,9 @@ paths:
$ref: '#/components/schemas/MetricsexplorertypesMetricHighlightsResponse'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -5616,6 +5748,9 @@ paths:
$ref: '#/components/schemas/MetricsexplorertypesMetricMetadata'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -5732,6 +5867,9 @@ paths:
$ref: '#/components/schemas/MetricsexplorertypesStatsResponse'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -5787,6 +5925,9 @@ paths:
$ref: '#/components/schemas/MetricsexplorertypesTreemapResponse'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -5836,6 +5977,9 @@ paths:
$ref: '#/components/schemas/TypesOrganization'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"401":
@@ -5966,6 +6110,9 @@ paths:
$ref: '#/components/schemas/AuthtypesSessionContext'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -6003,6 +6150,9 @@ paths:
$ref: '#/components/schemas/AuthtypesGettableToken'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -6046,6 +6196,9 @@ paths:
$ref: '#/components/schemas/AuthtypesGettableToken'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -6078,6 +6231,9 @@ paths:
$ref: '#/components/schemas/ZeustypesGettableHost'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -6592,6 +6748,9 @@ paths:
$ref: '#/components/schemas/Querybuildertypesv5QueryRangeResponse'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
@@ -6646,6 +6805,9 @@ paths:
$ref: '#/components/schemas/Querybuildertypesv5QueryRangeRequest'
status:
type: string
+ required:
+ - status
+ - data
type: object
description: OK
"400":
diff --git a/frontend/src/api/generated/services/sigNoz.schemas.ts b/frontend/src/api/generated/services/sigNoz.schemas.ts
index 3c5523f71f..59d1f78a7e 100644
--- a/frontend/src/api/generated/services/sigNoz.schemas.ts
+++ b/frontend/src/api/generated/services/sigNoz.schemas.ts
@@ -2599,30 +2599,30 @@ export type AuthzCheck200 = {
/**
* @type array
*/
- data?: AuthtypesGettableTransactionDTO[];
+ data: AuthtypesGettableTransactionDTO[];
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type ChangePasswordPathParameters = {
id: string;
};
export type CreateSessionByGoogleCallback303 = {
- data?: AuthtypesGettableTokenDTO;
+ data: AuthtypesGettableTokenDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type CreateSessionByOIDCCallback303 = {
- data?: AuthtypesGettableTokenDTO;
+ data: AuthtypesGettableTokenDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type CreateSessionBySAMLCallbackParams = {
@@ -2650,11 +2650,11 @@ export type CreateSessionBySAMLCallbackBody = {
};
export type CreateSessionBySAMLCallback303 = {
- data?: AuthtypesGettableTokenDTO;
+ data: AuthtypesGettableTokenDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type DeletePublicDashboardPathParameters = {
@@ -2664,22 +2664,22 @@ export type GetPublicDashboardPathParameters = {
id: string;
};
export type GetPublicDashboard200 = {
- data?: DashboardtypesGettablePublicDasbhboardDTO;
+ data: DashboardtypesGettablePublicDasbhboardDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type CreatePublicDashboardPathParameters = {
id: string;
};
export type CreatePublicDashboard201 = {
- data?: TypesIdentifiableDTO;
+ data: TypesIdentifiableDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type UpdatePublicDashboardPathParameters = {
@@ -2689,19 +2689,19 @@ export type ListAuthDomains200 = {
/**
* @type array
*/
- data?: AuthtypesGettableAuthDomainDTO[];
+ data: AuthtypesGettableAuthDomainDTO[];
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type CreateAuthDomain200 = {
- data?: AuthtypesGettableAuthDomainDTO;
+ data: AuthtypesGettableAuthDomainDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type DeleteAuthDomainPathParameters = {
@@ -2757,11 +2757,11 @@ export type GetFieldsKeysParams = {
};
export type GetFieldsKeys200 = {
- data?: TelemetrytypesGettableFieldKeysDTO;
+ data: TelemetrytypesGettableFieldKeysDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetFieldsValuesParams = {
@@ -2821,49 +2821,49 @@ export type GetFieldsValuesParams = {
};
export type GetFieldsValues200 = {
- data?: TelemetrytypesGettableFieldValuesDTO;
+ data: TelemetrytypesGettableFieldValuesDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetResetPasswordTokenPathParameters = {
id: string;
};
export type GetResetPasswordToken200 = {
- data?: TypesResetPasswordTokenDTO;
+ data: TypesResetPasswordTokenDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetGlobalConfig200 = {
- data?: TypesGettableGlobalConfigDTO;
+ data: TypesGettableGlobalConfigDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type ListInvite200 = {
/**
* @type array
*/
- data?: TypesInviteDTO[];
+ data: TypesInviteDTO[];
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type CreateInvite201 = {
- data?: TypesInviteDTO;
+ data: TypesInviteDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type DeleteInvitePathParameters = {
@@ -2873,19 +2873,19 @@ export type GetInvitePathParameters = {
token: string;
};
export type GetInvite200 = {
- data?: TypesInviteDTO;
+ data: TypesInviteDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type AcceptInvite201 = {
- data?: TypesUserDTO;
+ data: TypesUserDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type ListPromotedAndIndexedPaths200 = {
@@ -2893,33 +2893,33 @@ export type ListPromotedAndIndexedPaths200 = {
* @type array
* @nullable true
*/
- data?: PromotetypesPromotePathDTO[] | null;
+ data: PromotetypesPromotePathDTO[] | null;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type ListOrgPreferences200 = {
/**
* @type array
*/
- data?: PreferencetypesPreferenceDTO[];
+ data: PreferencetypesPreferenceDTO[];
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetOrgPreferencePathParameters = {
name: string;
};
export type GetOrgPreference200 = {
- data?: PreferencetypesPreferenceDTO;
+ data: PreferencetypesPreferenceDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type UpdateOrgPreferencePathParameters = {
@@ -2929,19 +2929,19 @@ export type ListAPIKeys200 = {
/**
* @type array
*/
- data?: TypesGettableAPIKeyDTO[];
+ data: TypesGettableAPIKeyDTO[];
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type CreateAPIKey201 = {
- data?: TypesGettableAPIKeyDTO;
+ data: TypesGettableAPIKeyDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type RevokeAPIKeyPathParameters = {
@@ -2954,11 +2954,11 @@ export type GetPublicDashboardDataPathParameters = {
id: string;
};
export type GetPublicDashboardData200 = {
- data?: DashboardtypesGettablePublicDashboardDataDTO;
+ data: DashboardtypesGettablePublicDashboardDataDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetPublicDashboardWidgetQueryRangePathParameters = {
@@ -2966,30 +2966,30 @@ export type GetPublicDashboardWidgetQueryRangePathParameters = {
idx: string;
};
export type GetPublicDashboardWidgetQueryRange200 = {
- data?: Querybuildertypesv5QueryRangeResponseDTO;
+ data: Querybuildertypesv5QueryRangeResponseDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type ListRoles200 = {
/**
* @type array
*/
- data?: RoletypesRoleDTO[];
+ data: RoletypesRoleDTO[];
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type CreateRole201 = {
- data?: TypesIdentifiableDTO;
+ data: TypesIdentifiableDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type DeleteRolePathParameters = {
@@ -2999,11 +2999,11 @@ export type GetRolePathParameters = {
id: string;
};
export type GetRole200 = {
- data?: RoletypesRoleDTO;
+ data: RoletypesRoleDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type PatchRolePathParameters = {
@@ -3017,11 +3017,11 @@ export type GetObjects200 = {
/**
* @type array
*/
- data?: AuthtypesObjectDTO[];
+ data: AuthtypesObjectDTO[];
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type PatchObjectsPathParameters = {
@@ -3029,22 +3029,22 @@ export type PatchObjectsPathParameters = {
relation: string;
};
export type GetResources200 = {
- data?: RoletypesGettableResourcesDTO;
+ data: RoletypesGettableResourcesDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type ListUsers200 = {
/**
* @type array
*/
- data?: TypesUserDTO[];
+ data: TypesUserDTO[];
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type DeleteUserPathParameters = {
@@ -3054,52 +3054,52 @@ export type GetUserPathParameters = {
id: string;
};
export type GetUser200 = {
- data?: TypesUserDTO;
+ data: TypesUserDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type UpdateUserPathParameters = {
id: string;
};
export type UpdateUser200 = {
- data?: TypesUserDTO;
+ data: TypesUserDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetMyUser200 = {
- data?: TypesUserDTO;
+ data: TypesUserDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type ListUserPreferences200 = {
/**
* @type array
*/
- data?: PreferencetypesPreferenceDTO[];
+ data: PreferencetypesPreferenceDTO[];
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetUserPreferencePathParameters = {
name: string;
};
export type GetUserPreference200 = {
- data?: PreferencetypesPreferenceDTO;
+ data: PreferencetypesPreferenceDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type UpdateUserPreferencePathParameters = {
@@ -3109,11 +3109,11 @@ export type GetFeatures200 = {
/**
* @type array
*/
- data?: FeaturetypesGettableFeatureDTO[];
+ data: FeaturetypesGettableFeatureDTO[];
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetIngestionKeysParams = {
@@ -3130,19 +3130,19 @@ export type GetIngestionKeysParams = {
};
export type GetIngestionKeys200 = {
- data?: GatewaytypesGettableIngestionKeysDTO;
+ data: GatewaytypesGettableIngestionKeysDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type CreateIngestionKey200 = {
- data?: GatewaytypesGettableCreatedIngestionKeyDTO;
+ data: GatewaytypesGettableCreatedIngestionKeyDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type DeleteIngestionKeyPathParameters = {
@@ -3155,11 +3155,11 @@ export type CreateIngestionKeyLimitPathParameters = {
keyId: string;
};
export type CreateIngestionKeyLimit201 = {
- data?: GatewaytypesGettableCreatedIngestionKeyLimitDTO;
+ data: GatewaytypesGettableCreatedIngestionKeyLimitDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type DeleteIngestionKeyLimitPathParameters = {
@@ -3187,11 +3187,11 @@ export type SearchIngestionKeysParams = {
};
export type SearchIngestionKeys200 = {
- data?: GatewaytypesGettableIngestionKeysDTO;
+ data: GatewaytypesGettableIngestionKeysDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type ListMetricsParams = {
@@ -3220,22 +3220,22 @@ export type ListMetricsParams = {
};
export type ListMetrics200 = {
- data?: MetricsexplorertypesListMetricsResponseDTO;
+ data: MetricsexplorertypesListMetricsResponseDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetMetricAlertsPathParameters = {
metricName: string;
};
export type GetMetricAlerts200 = {
- data?: MetricsexplorertypesMetricAlertsResponseDTO;
+ data: MetricsexplorertypesMetricAlertsResponseDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetMetricAttributesPathParameters = {
@@ -3257,117 +3257,117 @@ export type GetMetricAttributesParams = {
};
export type GetMetricAttributes200 = {
- data?: MetricsexplorertypesMetricAttributesResponseDTO;
+ data: MetricsexplorertypesMetricAttributesResponseDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetMetricDashboardsPathParameters = {
metricName: string;
};
export type GetMetricDashboards200 = {
- data?: MetricsexplorertypesMetricDashboardsResponseDTO;
+ data: MetricsexplorertypesMetricDashboardsResponseDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetMetricHighlightsPathParameters = {
metricName: string;
};
export type GetMetricHighlights200 = {
- data?: MetricsexplorertypesMetricHighlightsResponseDTO;
+ data: MetricsexplorertypesMetricHighlightsResponseDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetMetricMetadataPathParameters = {
metricName: string;
};
export type GetMetricMetadata200 = {
- data?: MetricsexplorertypesMetricMetadataDTO;
+ data: MetricsexplorertypesMetricMetadataDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type UpdateMetricMetadataPathParameters = {
metricName: string;
};
export type GetMetricsStats200 = {
- data?: MetricsexplorertypesStatsResponseDTO;
+ data: MetricsexplorertypesStatsResponseDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetMetricsTreemap200 = {
- data?: MetricsexplorertypesTreemapResponseDTO;
+ data: MetricsexplorertypesTreemapResponseDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetMyOrganization200 = {
- data?: TypesOrganizationDTO;
+ data: TypesOrganizationDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetSessionContext200 = {
- data?: AuthtypesSessionContextDTO;
+ data: AuthtypesSessionContextDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type CreateSessionByEmailPassword200 = {
- data?: AuthtypesGettableTokenDTO;
+ data: AuthtypesGettableTokenDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type RotateSession200 = {
- data?: AuthtypesGettableTokenDTO;
+ data: AuthtypesGettableTokenDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type GetHosts200 = {
- data?: ZeustypesGettableHostDTO;
+ data: ZeustypesGettableHostDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type QueryRangeV5200 = {
- data?: Querybuildertypesv5QueryRangeResponseDTO;
+ data: Querybuildertypesv5QueryRangeResponseDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
export type ReplaceVariables200 = {
- data?: Querybuildertypesv5QueryRangeRequestDTO;
+ data: Querybuildertypesv5QueryRangeRequestDTO;
/**
* @type string
*/
- status?: string;
+ status: string;
};
diff --git a/pkg/http/render/render.go b/pkg/http/render/render.go
index 738f0d3a31..505563bb74 100644
--- a/pkg/http/render/render.go
+++ b/pkg/http/render/render.go
@@ -16,8 +16,8 @@ const (
var json = jsoniter.ConfigCompatibleWithStandardLibrary
type SuccessResponse struct {
- Status string `json:"status"`
- Data interface{} `json:"data,omitempty"`
+ Status string `json:"status" required:"true"`
+ Data interface{} `json:"data,omitempty" required:"true"`
}
type ErrorResponse struct {