Skip to content

Rename datatype to dataType in CodegenProperty#69

Merged
jmini merged 5 commits intoOpenAPITools:masterfrom
jmini:issue20_datatype
May 18, 2018
Merged

Rename datatype to dataType in CodegenProperty#69
jmini merged 5 commits intoOpenAPITools:masterfrom
jmini:issue20_datatype

Conversation

@jmini
Copy link
Member

@jmini jmini commented May 16, 2018

The template variable {{datatype}} was renamed to {{dataType}} for consistency reason.
Corresponding java code: CodegenProperty.datatype is renamed to CodegenProperty.datatype.

This is a really first step for #20.

@jmini jmini added this to the 3.0.0 milestone May 16, 2018
@jmini jmini force-pushed the issue20_datatype branch from 49a3d6a to fff71a1 Compare May 16, 2018 12:29
@jimschubert
Copy link
Member

@jmini I think the getter/setter would need to be changed as well. Iirc, mustache will use getDatatype when given the variable {{datatype}}. If you do change the accessor methods, we'd probably need to change lots of templates (which also breaks existing custom templates).

@jmini
Copy link
Member Author

jmini commented May 16, 2018

Thank you for the input.

I have changed the templates of this project.

I will change the getter/setter and add a deprecated getter for the old notation. We can keep it for one major release (until 5.0 or latter).
And I will test this backward compatibility use case.

@jmini
Copy link
Member Author

jmini commented May 17, 2018

I just tested {{dataType}} and {{datatype}}: both works.

Conflicts:
	modules/openapi-generator/src/main/resources/elm/modelTypeAlias.mustache
@jmini
Copy link
Member Author

jmini commented May 17, 2018

@jimschubert what do you think.

Copy link
Member

@wing328 wing328 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally by updating a few petstore samples. The result is good (no code change)

@jmini jmini merged commit a1ff502 into OpenAPITools:master May 18, 2018
@jmini jmini deleted the issue20_datatype branch May 18, 2018 16:06
jimschubert added a commit to jimschubert/openapi-generator that referenced this pull request May 23, 2018
* master: (36 commits)
  jaxrs-cxf-cdi: fix outer enum (OpenAPITools#131)
  Move bash argv opt to end of ags line in scripts (OpenAPITools#124)
  Reduce CI logging (OpenAPITools#119)
  Download elm dependencies without prompting user. (OpenAPITools#118)
  [aspnetcore] Make the use of Swashbuckle optional (OpenAPITools#110)
  DefaultGenerator: fix NullPointerException (OpenAPITools#109)
  [Java] use html entities in javadoc of generated code (OpenAPITools#106)
  Update PULL_REQUEST_TEMPLATE.md
  [java] Enum in array of array (OpenAPITools#66)
  Rename datatype to dataType in CodegenProperty (OpenAPITools#69)
  update elm test to compile all elm files (OpenAPITools#95)
  Fix Petstore example for Elm (OpenAPITools#96)
  Update Docker documentation (OpenAPITools#97)
  CaseFormatLambda has been added, params for Rest-assured client has been refactored (OpenAPITools#91)
  Update integration.md
  [Clojure] Add util method to set the api-context globally (OpenAPITools#93)
  [JaxRS-Java] issue with implFolder on windows, and required fields generation for containers (OpenAPITools#88)
  Set parameters allowableValues dynamically (OpenAPITools#65)
  Meta: set version for "build-helper-maven-plugin" (OpenAPITools#89)
  Fix javadoc issues in "openapi-generator" module (OpenAPITools#84)
  ...
nilskuhn pushed a commit to nilskuhn/openapi-generator that referenced this pull request Apr 6, 2023
…norepo

chore(deps): update dependency jest to v26.5.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants