Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ingest functions don't handle all discovery document resource elements and their path values #292

@brancengregory

Description

@brancengregory

I've identified two intertwined issues in ingest-functions.R and gargle::request_build:

  1. get_raw_methods does not traverse the resources element of the discovery list returned by read_discovery_document

  2. gargle::request_build does not expect path to have elements like {+parent}, which some apis (in this case Secret Manager) do.

    • This causes params[path_param_names] to fail because path_param_names still has the + symbol, unlike the param name

    • Failure then infects glue_data(path_params, path) which cannot find the value parent.

    • Debugging and correcting path_params on the fly will still result in glue_data, this time because it interprets the + as an operator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions