@@ -210,7 +210,7 @@ public Map<String, Object> postProcessAllModels(Map<String, Object> objs) {
210210 for (String name : allModels .keySet ()) {
211211 CodegenModel cm = allModels .get (name );
212212 CodegenModel parent = allModels .get (cm .getParent ());
213- // if a discriminator exists on the parent, don't add this child to the inheritance heirarchy
213+ // if a discriminator exists on the parent, don't add this child to the inheritance hierarchy
214214 // TODO Determine what to do if the parent discriminator name == the grandparent discriminator name
215215 while (parent != null ) {
216216 if (parent .getChildren () == null ) {
@@ -1201,7 +1201,7 @@ public String getSchemaType(Schema schema) {
12011201 */
12021202 private static String getPrimitiveType (Schema schema ) {
12031203 if (schema == null ) {
1204- throw new RuntimeException ("schema cannnot be null in getPrimitiveType" );
1204+ throw new RuntimeException ("schema cannot be null in getPrimitiveType" );
12051205 } else if (ModelUtils .isStringSchema (schema ) && "number" .equals (schema .getFormat ())) {
12061206 // special handle of type: string, format: number
12071207 return "BigDecimal" ;
@@ -1300,7 +1300,7 @@ public String getTypeDeclaration(Schema schema) {
13001300
13011301 /**
13021302 * Determine the type alias for the given type if it exists. This feature
1303- * was original developed for Java because the language does not have a aliasing
1303+ * was originally developed for Java because the language does not have an aliasing
13041304 * mechanism of its own but later extends to handle other languages
13051305 *
13061306 * @param name The type name.
@@ -2055,7 +2055,7 @@ public CodegenOperation fromOperation(String path,
20552055 }
20562056
20572057 if (operation == null )
2058- throw new RuntimeException ("operation cannnot be null in fromOperation" );
2058+ throw new RuntimeException ("operation cannot be null in fromOperation" );
20592059
20602060 // store the original operationId for plug-in
20612061 op .operationIdOriginal = operation .getOperationId ();
@@ -3853,7 +3853,7 @@ public static Set<String> getConsumesInfo(OpenAPI openAPI, Operation operation)
38533853 RequestBody requestBody = ModelUtils .getReferencedRequestBody (openAPI , operation .getRequestBody ());
38543854
38553855 if (requestBody == null || requestBody .getContent () == null || requestBody .getContent ().isEmpty ()) {
3856- return Collections .emptySet (); // return emtpy set
3856+ return Collections .emptySet (); // return empty set
38573857 }
38583858 return requestBody .getContent ().keySet ();
38593859 }
@@ -4249,7 +4249,7 @@ public CodegenParameter fromRequestBody(RequestBody body, Map<String, Schema> sc
42494249 if (schema .getAdditionalProperties () != null ) {// http body is map
42504250 LOGGER .error ("Map should be supported. Please report to openapi-generator github repo about the issue." );
42514251 } else if (codegenProperty != null ) {
4252- LOGGER .warn ("The folowing schema has undefined (null) baseType. " +
4252+ LOGGER .warn ("The following schema has undefined (null) baseType. " +
42534253 "It could be due to form parameter defined in OpenAPI v2 spec with incorrect consumes. " +
42544254 "A correct 'consumes' for form parameters should be " +
42554255 "'application/x-www-form-urlencoded' or 'multipart/form-data'" );
0 commit comments