vasco / google-apis-client-generator

Automatically exported from code.google.com/p/google-apis-client-generator
0 stars 0 forks source link

AuthScope assumes prefix is https://www.googleapis.com/auth/ #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate documentation for an API that doesn't use 
https://www.googleapis.com/auth/ as a base for scope

What is the expected output? What do you see instead?

  public static final String SOMETHING = "(url)";

but the template generates invalid Java here:

  public static final String  = "(url)";

What version of the product are you using? On what operating system?

git tip, Mac

Please provide any additional information below.

This probably shouldn't assume that the scope is prefixed with something 
specific:

    # Strip the common prefix to get a unique identifying name
    prefix_len = len('https://www.googleapis.com/auth/')

Original issue reported on code.google.com by mmast...@gmail.com on 28 Jan 2013 at 10:44