Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties that start with numbers, e.g. "5qi" generate invalid Java identifiers #60

Open
jphorx opened this issue Apr 23, 2019 · 0 comments
Labels

Comments

@jphorx
Copy link

jphorx commented Apr 23, 2019

Any properties that begin with numbers result in generated Java code that will not compile. If generated code is changed to fix the compiler error, i.e. rename field to _5qi, the JSON converter generated from the @DataObject annotation processor omits the "5qi" property.

There are many incidences like this in published API specifications from 3GPP, particularly the dozens of 5G mobile core services. Modifying the specifications themselves is not a feasible option.

Steps to reproduce:

  1. Go to https://vertx-starter.jetdrone.xyz/#maven
  2. Select OpenAPI server
  3. Upload test.yaml (in test.yaml.zip )
  4. Generate the project (the attached test.zip) - the generated POJO code is not valid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants