You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw IllegalArgumentException(String.format("Expected the field `{{{baseName}}}` to be an array in the JSON string but got `%s`", jsonObj["{{{baseName}}}"].toString()))
251
254
}
252
-
255
+
253
256
// validate the required field `{{{baseName}}}` (array)
254
257
for (i in 0 until jsonObj.getAsJsonArray("{{{baseName}}}").size()) {
Copy file name to clipboardExpand all lines: samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnnotation.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -71,13 +71,13 @@ data class ApiAnnotation (
71
71
companionobject {
72
72
var openapiFields =HashSet<String>()
73
73
var openapiRequiredFields =HashSet<String>()
74
-
74
+
75
75
init {
76
76
// a set of all properties/fields (JSON key names)
77
77
openapiFields.add("id")
78
78
79
79
}
80
-
80
+
81
81
/**
82
82
* Validates the JSON Element and throws an exception if issues found
Copy file name to clipboardExpand all lines: samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiApiResponse.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -79,15 +79,15 @@ data class ApiApiResponse (
79
79
companionobject {
80
80
var openapiFields =HashSet<String>()
81
81
var openapiRequiredFields =HashSet<String>()
82
-
82
+
83
83
init {
84
84
// a set of all properties/fields (JSON key names)
85
85
openapiFields.add("code")
86
86
openapiFields.add("type")
87
87
openapiFields.add("message")
88
88
89
89
}
90
-
90
+
91
91
/**
92
92
* Validates the JSON Element and throws an exception if issues found
Copy file name to clipboardExpand all lines: samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiCategory.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -75,14 +75,14 @@ data class ApiCategory (
75
75
companionobject {
76
76
var openapiFields =HashSet<String>()
77
77
var openapiRequiredFields =HashSet<String>()
78
-
78
+
79
79
init {
80
80
// a set of all properties/fields (JSON key names)
81
81
openapiFields.add("id")
82
82
openapiFields.add("name")
83
83
84
84
}
85
-
85
+
86
86
/**
87
87
* Validates the JSON Element and throws an exception if issues found
0 commit comments