Skip to content
This repository has been archived by the owner on Dec 14, 2017. It is now read-only.

If the API name is the same as the schema object name, then Streamy generates two classes with the same name #9

Closed
gsadams opened this issue Jul 1, 2013 · 1 comment

Comments

@gsadams
Copy link
Contributor

gsadams commented Jul 1, 2013

I've just used Streamy to generate the code to talk to the Google Calendar API.

https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest

The API is called Calendar, and the schema object is also called Calendar. So, I end up with generated code including:

class Calendar extends base.EntityWrapper {
....
}

class Calendar extends base.Root {
...
}

As you can imagine, this causes unhappiness when the Streamy API layer is used.

@alxhub
Copy link
Contributor

alxhub commented Jul 3, 2013

Fixed.

Addendum data now allows overriding the top-level class name, via the 'topLevelClassName' key of the addendum document.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants