The parser is unable to parse schemes in several services like urlshortener or
discovery itself. Exception:
Unhandled Exception: System.ApplicationException: Failed to parse schema
[AnalyticsSummary] which was defined as
[{"id":"AnalyticsSummary","type":"object","properties":{"allTime":{"$ref":"Analy
ticsSnapshot","description":"Click analytics over all
time."},"day":{"$ref":"AnalyticsSnapshot","description":"Click analytics over
the last day."},"month":{"$ref":"AnalyticsSnapshot","description":"Click
analytics over the last
month."},"twoHours":{"$ref":"AnalyticsSnapshot","description":"Click analytics
over the last two
hours."},"week":{"$ref":"AnalyticsSnapshot","description":"Click analytics over
the last week."}}}] ---> System.Exception: Expected StartObject while parsing
schema object, got EndObject.
at Newtonsoft.Json.Schema.JsonSchemaBuilder.BuildSchema () [0x00000]
at Newtonsoft.Json.Schema.JsonSchemaBuilder.ProcessProperties () [0x00000]
at Newtonsoft.Json.Schema.JsonSchemaBuilder.ProcessSchemaProperty (System.String propertyName) [0x00000]
at Newtonsoft.Json.Schema.JsonSchemaBuilder.BuildSchema () [0x00000]
at Newtonsoft.Json.Schema.JsonSchemaBuilder.Parse (Newtonsoft.Json.JsonReader reader) [0x00000]
at Newtonsoft.Json.Schema.JsonSchema.Read (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Schema.JsonSchemaResolver resolver) [0x00000]
at Newtonsoft.Json.Schema.JsonSchema.Parse (System.String json, Newtonsoft.Json.Schema.JsonSchemaResolver resolver) [0x00000]
at Google.Apis.Discovery.Schema.SchemaImpl..ctor (System.String name, System.String jsonSchemaDefinition, Google.Apis.Discovery.Schema.FutureJsonSchemaResolver resolver) [0x00048] in /home/mlinder/Desktop/Source/issue_36_samples_v1/Src/GoogleApis/Apis/Discovery/Schema/SchemaImpl.cs:47
--- End of inner exception stack trace ---
at Google.Apis.Discovery.Schema.SchemaImpl..ctor (System.String name, System.String jsonSchemaDefinition, Google.Apis.Discovery.Schema.FutureJsonSchemaResolver resolver) [0x0005b] in /home/mlinder/Desktop/Source/issue_36_samples_v1/Src/GoogleApis/Apis/Discovery/Schema/SchemaImpl.cs:50
at Google.Apis.Discovery.BaseService.ParseSchemas (Google.Apis.Json.JsonDictionary js) [0x00068] in /home/mlinder/Desktop/Source/issue_36_samples_v1/Src/GoogleApis/Apis/Discovery/Service.cs:128
at Google.Apis.Discovery.BaseService.get_Schemas () [0x00043] in /home/mlinder/Desktop/Source/issue_36_samples_v1/Src/GoogleApis/Apis/Discovery/Service.cs:148
Original issue reported on code.google.com by mlin...@google.com on 19 May 2011 at 11:54
Original issue reported on code.google.com by
mlin...@google.com
on 19 May 2011 at 11:54