mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-05 16:46:11 +00:00
clone Schema using AnnotationUtils.clone with WA (to clone schemas wi… (#18867)
* clone Schema using AnnotationUtils.clone with WA (to clone schemas with example field set) * changes after scripts run
This commit is contained in:
@@ -30,13 +30,13 @@ DataQuery <- R6::R6Class(
|
||||
#' Initialize a new DataQuery class.
|
||||
#'
|
||||
#' @param id Query
|
||||
#' @param outcomes outcomes. Default to ["SUCCESS","FAILURE"].
|
||||
#' @param outcomes outcomes. Default to [SUCCESS, FAILURE].
|
||||
#' @param suffix test suffix
|
||||
#' @param text Some text containing white spaces
|
||||
#' @param date A date
|
||||
#' @param ... Other optional arguments.
|
||||
#' @export
|
||||
initialize = function(`id` = NULL, `outcomes` = ["SUCCESS","FAILURE"], `suffix` = NULL, `text` = NULL, `date` = NULL, ...) {
|
||||
initialize = function(`id` = NULL, `outcomes` = [SUCCESS, FAILURE], `suffix` = NULL, `text` = NULL, `date` = NULL, ...) {
|
||||
if (!is.null(`id`)) {
|
||||
if (!(is.numeric(`id`) && length(`id`) == 1)) {
|
||||
stop(paste("Error! Invalid data for `id`. Must be an integer:", `id`))
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **integer** | Query | [optional]
|
||||
**outcomes** | **array[character]** | | [optional] [default to ["SUCCESS","FAILURE"]] [Enum: ]
|
||||
**outcomes** | **array[character]** | | [optional] [default to [SUCCESS, FAILURE]] [Enum: ]
|
||||
**suffix** | **character** | test suffix | [optional]
|
||||
**text** | **character** | Some text containing white spaces | [optional]
|
||||
**date** | **character** | A date | [optional]
|
||||
|
||||
Reference in New Issue
Block a user