{
  "openapi": "3.0.0",
  "info": {
    "title": "mprove backend",
    "description": "",
    "version": "12.0.27",
    "contact": {}
  },
  "paths": {
    "/api/ToBackendSuggestDimensionValues": {
      "post": {
        "operationId": "SuggestDimensionValuesController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSuggestDimensionValuesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSuggestDimensionValuesResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ToBackendSuggestDimensionValuesRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSuggestDimensionValuesRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSuggestDimensionValuesRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSuggestDimensionValuesResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSuggestDimensionValuesResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSuggestDimensionValuesResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSuggestDimensionValuesRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSuggestDimensionValues"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSuggestDimensionValuesRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "structId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "fieldId": {
            "type": "string"
          },
          "chartId": {
            "type": "string",
            "nullable": true
          },
          "dashboardId": {
            "type": "string",
            "nullable": true
          },
          "reportId": {
            "type": "string",
            "nullable": true
          },
          "rowId": {
            "type": "string",
            "nullable": true
          },
          "term": {
            "type": "string",
            "nullable": true
          },
          "cellMetricsStartDateMs": {
            "type": "number",
            "nullable": true
          },
          "cellMetricsEndDateMs": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "structId",
          "modelId",
          "fieldId"
        ]
      },
      "ToBackendSuggestDimensionValuesResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSuggestDimensionValues"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSuggestDimensionValuesResponsePayload": {
        "type": "object",
        "properties": {
          "matchedValues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "count": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "value",
                "count"
              ]
            },
            "nullable": true
          },
          "matchedValuesMessage": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        }
      }
    }
  }
}
