apigear-io / cli

The ApiGear client as go project
https://apigear.io
MIT License
1 stars 2 forks source link

support reserved words in validation and filters #107

Open jryannel opened 10 months ago

jryannel commented 10 months ago

When a reserved word is detected the user is warned during IDL validation.

The filters will replace the var name with name_ to ensure there are no naming conflicts.

In the beginning we start with a global list of reserved words (.e.g int, switch, for, ...)

jryannel commented 10 months ago

Add a test case api with all reserved words and ensure all templates compile fine.