# OmicIDX
#
# The OmicIDX API documentation is available in three forms: - [RapiDoc](/docs) - [OpenAPI/Swagger Interactive](/swaggerdoc) - [ReDoc (more readable in some ways)](/redoc)
#
# The version of the OpenAPI document: 0.99.1
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title HTTPValidationError
#'
#' @description HTTPValidationError Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field detail Detail list( \link{ValidationError} ) [optional]
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
HTTPValidationError <- R6::R6Class(
'HTTPValidationError',
public = list(
`detail` = NULL,
initialize = function(
`detail`=NULL, ...
) {
local.optional.var <- list(...)
if (!is.null(`detail`)) {
stopifnot(is.vector(`detail`), length(`detail`) != 0)
sapply(`detail`, function(x) stopifnot(R6::is.R6(x)))
self$`detail` <- `detail`
}
},
toJSON = function() {
HTTPValidationErrorObject <- list()
if (!is.null(self$`detail`)) {
HTTPValidationErrorObject[['detail']] <-
lapply(self$`detail`, function(x) x$toJSON())
}
HTTPValidationErrorObject
},
fromJSON = function(HTTPValidationErrorJson) {
HTTPValidationErrorObject <- jsonlite::fromJSON(HTTPValidationErrorJson)
if (!is.null(HTTPValidationErrorObject$`detail`)) {
self$`detail` <- ApiClient$new()$deserializeObj(HTTPValidationErrorObject$`detail`, "array[ValidationError]", loadNamespace("omicidxClientR"))
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`detail`)) {
sprintf(
'"detail":
[%s]
',
paste(sapply(self$`detail`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",")
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(HTTPValidationErrorJson) {
HTTPValidationErrorObject <- jsonlite::fromJSON(HTTPValidationErrorJson)
self$`detail` <- ApiClient$new()$deserializeObj(HTTPValidationErrorObject$`detail`, "array[ValidationError]", loadNamespace("omicidxClientR"))
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.