Skip to content

Cloud validators fail with type: Array when an array is provided #7179

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

Closed
6 tasks done
dblythy opened this issue Feb 11, 2021 · 2 comments · Fixed by #7178
Closed
6 tasks done

Cloud validators fail with type: Array when an array is provided #7179

dblythy opened this issue Feb 11, 2021 · 2 comments · Fixed by #7178
Labels
state:released Released as stable version state:released-beta Released as beta version

Comments

@dblythy
Copy link
Member

dblythy commented Feb 11, 2021

New Issue Checklist

Issue Description

Validators with field.type set to an array fail even when an array is provided.

Steps to reproduce

Create a cloud function with a validator for fields of type Array, then call the function with an array

Actual Outcome

Allow cloud function to run.

Expected Outcome

Error: Validation failed. Invalid type for data. Expected: array

Failing Test Case / Pull Request

  • 🤩 I submitted a PR with a fix and a test case.
  • 🧐 I submitted a PR with a failing test case.

Environment

Server

  • Parse Server version: FILL_THIS_OUT
  • Operating system: FILL_THIS_OUT
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): FILL_THIS_OUT

Database

  • System (MongoDB or Postgres): FILL_THIS_OUT
  • Database version: FILL_THIS_OUT
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): FILL_THIS_OUT

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): FILL_THIS_OUT
  • SDK version: FILL_THIS_OUT

Logs

@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.0.0-beta.1

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Nov 1, 2021
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.0.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version state:released-beta Released as beta version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants