feat(sdk): add input validation and improve error reporting#5120
Merged
feat(sdk): add input validation and improve error reporting#5120
Conversation
…ing-2026-04-20 # Conflicts: # cypress-tests/package.json # package.json # packages/admin-ui/package.json # packages/api-aco/package.json # packages/api-audit-logs/package.json # packages/api-core/package.json # packages/api-elasticsearch-tasks/package.json # packages/api-file-manager-aco/package.json # packages/api-file-manager-s3/package.json # packages/api-headless-cms-bulk-actions/package.json # packages/api-headless-cms-ddb-es/package.json # packages/api-headless-cms-ddb/package.json # packages/api-headless-cms-es-tasks/package.json # packages/api-headless-cms-import-export/package.json # packages/api-headless-cms-scheduler/package.json # packages/api-headless-cms-tasks/package.json # packages/api-headless-cms-workflows/package.json # packages/api-headless-cms/package.json # packages/api-mailer/package.json # packages/api-opensearch/package.json # packages/api-record-locking/package.json # packages/api-scheduler/package.json # packages/api-sync-system/package.json # packages/api-website-builder-scheduler/package.json # packages/api-website-builder-workflows/package.json # packages/api-website-builder/package.json # packages/api-websockets/package.json # packages/api-workflows/package.json # packages/api/package.json # packages/app-aco/package.json # packages/app-admin/package.json # packages/app-file-manager/package.json # packages/app-headless-cms/package.json # packages/app-website-builder/package.json # packages/app/package.json # packages/aws-sdk/package.json # packages/create-webiny-project/package.json # packages/db-dynamodb/package.json # packages/form/package.json # packages/handler-aws/package.json # packages/handler-graphql/package.json # packages/handler/package.json # packages/i18n/package.json # packages/languages/package.json # packages/plugins/package.json # packages/react-composition/package.json # packages/react-properties/package.json # packages/react-rich-text-lexical-renderer/package.json # packages/sdk/package.json # packages/tasks/package.json # packages/utils/package.json # packages/validation/package.json # packages/website-builder-nextjs/package.json # packages/website-builder-react/package.json # packages/website-builder-sdk/package.json # yarn.lock
…ing-2026-04-20 # Conflicts: # yarn.lock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
The CMS and File Manager SDK methods are now significantly more robust and easier to use:
These improvements cover all CMS methods (`listEntries`, `getEntry`, `createEntry`, `updateEntryRevision`, `publishEntryRevision`, `unpublishEntryRevision`, `deleteEntryRevision`), File Manager methods (`listFiles`, `getFile`, `updateFile`), Tasks, and TenantManager methods.
Screenshot
Changelog
Improved CMS and File Manager SDK Error Reporting and Input Validation
When using the CMS or File Manager SDK, invalid input (wrong parameter types, misspelled field names, object-type fields used without sub-selection, or unknown filter keys) now produces clear, descriptive errors immediately — instead of silently returning empty results or waiting for a server round-trip. The public error type is now `ApiError` rather than `GraphQLError`.
Squash Merge Commit