Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send flattened dot notation body to preUpdate, then merge the returned body #330

Open
github-actions bot opened this issue Jan 30, 2024 · 0 comments

Comments

@github-actions
Copy link
Contributor

with the original body, maintaining the dot notation. This way we don't have to write

two preUpdate branches downstream, one looking at the dot notation style and

one looking at normal object style.

// TODO: Send flattened dot notation body to preUpdate, then merge the returned body

      if (options.preUpdate) {
        try {
          // TODO: Send flattened dot notation body to preUpdate, then merge the returned body
          // with the original body, maintaining the dot notation. This way we don't have to write
          // two preUpdate branches downstream, one looking at the dot notation style and
          // one looking at normal object style.
          body = await options.preUpdate(body, req);
        } catch (e: any) {
          if (isAPIError(e)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant