elixir-google-api icon indicating copy to clipboard operation
elixir-google-api copied to clipboard

Fix a Spec

Open kyleVsteger opened this issue 4 years ago • 1 comments

While working with this API, I noticed that this spec (and likely others) are incorrect. It returns a list of GoogleApi.Firestore.V1.Model.RunQueryResponse structs.

The raw response from GoogleApi.Firestore.V1.Api.Projects.firestore_projects_databases_documents_run_query is

{:ok,
 [
   %GoogleApi.Firestore.V1.Model.RunQueryResponse{
     document: %GoogleApi.Firestore.V1.Model.Document{
       createTime: ~U[2020-09-02 23:42:57.807167Z],
       fields: %{
         "UID" => %GoogleApi.Firestore.V1.Model.Value{
           arrayValue: nil,
           booleanValue: nil,
           bytesValue: nil,
           doubleValue: nil,
           geoPointValue: nil,
           integerValue: nil,
           mapValue: nil,
           nullValue: nil,
           referenceValue: nil,
           stringValue: "REDACTED",
           timestampValue: nil
         },
         "savedSearches" => %GoogleApi.Firestore.V1.Model.Value{
           arrayValue: %GoogleApi.Firestore.V1.Model.ArrayValue{values: nil},
           booleanValue: nil,
           bytesValue: nil,
           doubleValue: nil,
           geoPointValue: nil,
           integerValue: nil,
           mapValue: nil,
           nullValue: nil,
           referenceValue: nil,
           stringValue: nil,
           timestampValue: nil
         }
       },
       name: "REDACTED",
       updateTime: ~U[2020-10-19 20:17:43.477743Z]
     },
     readTime: ~U[2021-06-02 19:04:32.970584Z],
     skippedResults: nil,
     transaction: nil
   }
 ]}

kyleVsteger avatar Jun 02 '21 19:06 kyleVsteger

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

google-cla[bot] avatar Jun 02 '21 19:06 google-cla[bot]