You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invalid enum value in directus-sync onlyCollections configuration (policies)
Description
When running directus-sync push command, the tool fails with an enum validation error for the onlyCollections configuration. The tool doesn't accept 'policies' as a valid collection name, despite it being a standard Directus collection type.
Steps to Reproduce
Configure baseConfig.js with the following collections:
The 'policies' collection should be accepted as a valid collection type for synchronization, as it is a standard Directus system collection.
Environment
"directus-extension-sync": "3.0.2"
Node.js version: v20.12.2 (NVM)
Operating System: Macbook pro M2
Additional Context
The error occurs in the Zod schema validation within the directus-sync tool. The enum of allowed collections appears to be missing the 'policies' collection type, despite it being a valid Directus system collection.
The text was updated successfully, but these errors were encountered:
Cant sync policies collection with directus-sync
Invalid enum value in directus-sync onlyCollections configuration (policies)
Description
When running
directus-sync push
command, the tool fails with an enum validation error for theonlyCollections
configuration. The tool doesn't accept 'policies' as a valid collection name, despite it being a standard Directus collection type.Steps to Reproduce
baseConfig.js
with the following collections:directus-sync push
command.directus-sync push
commandCurrent Behavior
The command fails with the following error:
ERROR: Config file: [onlyCollections,7] Invalid enum value. Expected 'dashboards' | 'flows' | 'folders' | 'operations' | 'panels' | 'permissions' | 'presets' | 'roles' | 'settings' | 'translations', received 'policies'
Expected Behavior
The 'policies' collection should be accepted as a valid collection type for synchronization, as it is a standard Directus system collection.
Environment
Additional Context
The error occurs in the Zod schema validation within the directus-sync tool. The enum of allowed collections appears to be missing the 'policies' collection type, despite it being a valid Directus system collection.
The text was updated successfully, but these errors were encountered: