- Reference
- Version ยท 6.0.3
- Change Automation Reference
trusted-value-classes
Last updated: November 24, 2026
trusted-value-classes lists extra enum, number and date classes that Liquibase accepts when it reads a value written with the !{...} type notation in a snapshot file or changelog.
Uses
Snapshot files and changelogs can mark a value with its Java type, written as value!{type}, for example 5!{java.lang.Integer}. Liquibase reads these values only as one of a built-in set of types:
Numbers: The JDK number types, such as
java.lang.Integerandjava.math.BigDecimal.Dates:
java.util.Date,java.sql.Date,java.sql.Timeandjava.sql.Timestamp.Text and true or false values:
java.lang.Stringandjava.lang.Boolean.Database functions: Liquibase database functions, such as
CURRENT_TIMESTAMP.Liquibase enums: The enums Liquibase defines.
Any other type stops the command with error LB-CHG-0051 before anything runs against the database. A snapshot file can also name only Liquibase database object types, such as tables and columns.
Use trusted-value-classes when a snapshot taken with a third-party extension fails to load with LB-CHG-0051. Add the class the error names, written as a fully qualified class name. Separate multiple classes with commas, and write a nested class with $, as in com.example.Outer$Inner. Name each class in full. A wildcard or a package name is ignored.
The setting adds to the built-in set and never replaces it. It accepts only enum classes and subclasses of java.lang.Number and java.util.Date. Listing any other class does not allow it, and the command fails with LB-CHG-0053. No setting turns the check off.
Default: Empty, so only the built-in types are accepted.
Example: trusted-value-classes
liquibase --trusted-value-classes=java.time.DayOfWeek update
Syntax
You can set this parameter in the following ways:
Option | Syntax |
Liquibase properties file (defaults file) |
|
Global flow file argument |
|
Global CLI parameter |
|
JVM system property (JAVA_OPTS environment variable) |
|
Liquibase environment variable |
|