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 #62

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

antonOO commented 4 years ago

LGTM! Thanks for adding this functionality!