vmware / vmware-openapi-generator

VMware-openapi-generator tool generates open-api documents from vapi metamodel format.
Other
23 stars 19 forks source link

Add support for the @SerializationName annotation #61

Closed karaatanassov closed 4 years ago

karaatanassov commented 4 years ago

This change adds option to replace field name in schemas with the value of the @SerializationName. 5 tests failed and I fixed them. In one of the tests I included @SerializationName with a value.

I have also tested against a mock service to mimic CRD.

This covers structure fields. I am unsure if we need additional fixes for other contexts e.g. query fields. This will come in subsequent changes.

Signed-off-by: Kiril Karaatanassov kkaraatanassov@vmware.com

vmwclabot commented 4 years ago

@karaatanassov, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.