apigear-io / cli

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

for reserved keywords add `_` suffix #155

Open jryannel opened 2 months ago

jryannel commented 2 months ago

When a reserved keyword is used, we now will change the into during parsing of the model. Now we also need to ensure that the filters don't remove the _ suffix. We still display a warning that the word is a reserved word.

So a name switch will be switch_. This would also impact json serialization (switch_) as property name.

This solution could be used to ensure that on all technologies all names will be coherent and we should have almost never breaking code, based on reserved keywords.