Closed carlbrugger closed 2 months ago
The update introduces a new plugin for Blueprint that enhances data processing by enabling the registration of external constraints. This plugin integrates with the commit:created
event, providing dynamic validation and error handling capabilities. Users can easily set up validators, callbacks, and handle data changes effectively using this plugin.
File Path | Summary |
---|---|
plugins-docs/transform/external-constraint.mdx |
Introduces @flatfile/plugin-constraints for registering external constraints in Blueprint. Provides setup for validators/callbacks, package imports, and installation guidance. Includes examples for event listeners and handling data change responses. |
plugins-docs/transform/external-constraint.mdx (5)
`43-50`: Installation instructions are clear and correctly formatted. --- `56-70`: The field setup example is correctly implemented and demonstrates the use of external constraints effectively. --- `76-88`: Import statements and usage instructions are correctly provided for both JavaScript and TypeScript environments. --- `104-138`: The listener setup and error handling are correctly implemented, demonstrating effective use of the externalConstraint function. --- `144-150`: The GitHub repository link is correctly provided and well-presented in a card format.
Summary by CodeRabbit