Implement advanced, extensible logic for property validation using Custom Types within your workspace configuration files.
Available Plans
enterprise
2 minute read
Date: Jul 17, 2025
Building on our recent Custom Types release, you can now define Custom Types directly in your workspace configuration files and deploy them using Rudder CLI. This enhancement brings Custom Types into your existing infrastructure-as-code workflows, enabling you to version control and programmatically manage complex data validation rules.
With workspace config and CLI support, you can now:
Define Custom Types as code: Create a custom-types.yaml file alongside your existing Tracking Plan configurations, enabling version control and collaborative development of data governance rules.
Reference Custom Types in properties: Use Custom Types as property types in your properties.yaml files, eliminating the need to redefine complex validation logic across multiple properties.
Deploy via CLI: Use the rudderstack tp apply command to push Custom Types and their associated properties to your workspace, integrating seamlessly with your existing deployment workflows.
Defining custom types in workspace configuration files
version:"rudder/v0.1"kind:"custom-types"metadata:name:"ecommerce_types"spec:types:# Product Type - Consolidates all product-related properties- id:Product_Objectname:"Product_Object"description:"Custom type for product information including ID, SKU, name, category, pricing"type:"object"properties:- $ref:"#/properties/ecommerce_properties/product_id"required:true- $ref:"#/properties/ecommerce_properties/product_sku"required:true- $ref:"#/properties/ecommerce_properties/product_name"required:true- $ref:"#/properties/ecommerce_properties/product_category"required:true- $ref:"#/properties/ecommerce_properties/product_price"required:true- $ref:"#/properties/ecommerce_properties/product_msrp"required:false
Reference custom types within a property configuration
version:"rudder/v0.1"kind:"properties"metadata:name:"ecommerce_properties"spec:properties:# Product Custom Type Property- id:"product"name:"product"type:"#/custom-types/ecommerce_types/Product_Object"description:"Product information object containing all product details"
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.