You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[PHP] Non-leading numbers removed from generated classnames #4211
Trying to generate classes for the Magento 2 schema JSON (which has other issues that need addressing within the schema itself), the versioning that Magento has applied to their API gets removed. I wonder if this should be supported in swagger-codegen?
For example: catalogAttributeSetRepositoryV1 gets converted to an API class of : CatalogAttributeSetRepositoryVApi. The classname CatalogAttributeSetRepositoryV1Api would be legal in PHP (just not if the first character of the class was a number).
Activity
wing328 commentedon Nov 19, 2016
@careysizer agreed with you that non-leading numbers should not be removed.
I'll try to fix it over the weekend. Will keep you posted.
wing328 commentedon Nov 20, 2016
@careysizer I did a test with the latest master but couldn't repeat the issue. Here is partial result:
Did you try building the local JAR based on the latest master?
careys7 commentedon Nov 21, 2016
Thanks @wing328 - I tested with latest master (I was at
cafcf51) and looks like that's working for me too.wing328 commentedon Nov 21, 2016
Glad to hear that it's working for you.