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

Bypass/relax field-validation on client.entry.publish(...) #2233

Open
IPJT opened this issue Mar 21, 2024 · 0 comments
Open

Bypass/relax field-validation on client.entry.publish(...) #2233

IPJT opened this issue Mar 21, 2024 · 0 comments

Comments

@IPJT
Copy link

IPJT commented Mar 21, 2024

Hi,

I was just wondering if there is any way to relax/bypass field validation when publishing an entry using client.entry.publish(...)?

The App SDK has a skipUiValidation prop that can be set to true in the options object when running entry.publish(options): Promise<void> in order to bypass validation. I'm looking for something similar.

Also,
I was wondering why I need to pass in the entry itself to the function. Why isn't the entryId enough?

await client.entry.publish(
  {
      spaceId: '<space_id>',
      environmentId: '<environment_id>',
      entryId: '<entry_id>',
  },
  { ...entry } //Why does it need this?
);

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant