NOTES:
- all: For data handling consistency with attributes, unconfigured list and set blocks will now be represented as a null list or set instead of a known list or set with zero elements. This prevents confusing situations with validation and plan modification, where it was previously required to check block values for the number of elements. Logic that was previously missing null value checks for blocks may require updates. (#604)
- tfsdk: The
Config
,Plan
, andState
typePathMatches()
method logic previously returnedInvalid Path Expression for Schema Data
errors based on implementation details of the underlying data, which prevented returning zero matches in cases where the expression is valid for the schema, but there was no actual data at the path. Providers can now determine whether zero matches is consequential for their use case. (#602)
ENHANCEMENTS:
- path: Added
Expressions
typeMatches
method for checking if any expression in the collection matches a given path (#604) - tfsdk: Automatically prevented Terraform
nested blocks must be empty to indicate no blocks
errors for responses containingPlan
andState
types (#621)
BUG FIXES:
- datasource/schema: Prevented
ListNestedBlock
andSetNestedBlock
typeDeprecationMessage
field from causingBlock Deprecated
warnings with unconfigured blocks (#604) - datasource: Prevented
ConfigValidators
from unexpectedly modifying or removing prior validator diagnostics (#619) - provider/schema: Prevented
ListNestedBlock
andSetNestedBlock
typeDeprecationMessage
field from causingBlock Deprecated
warnings with unconfigured blocks (#604) - provider: Prevented
ConfigValidators
from unexpectedly modifying or removing prior validator diagnostics (#619) - resource/schema: Prevented
ListNestedBlock
andSetNestedBlock
typeDeprecationMessage
field from causingBlock Deprecated
warnings with unconfigured blocks (#604) - resource: Prevented
ConfigValidators
from unexpectedly modifying or removing prior validator diagnostics (#619) - tfsdk: Fixed false positive
Invalid Path Expression for Schema Data
error to be schema-determined instead of data-determined (#602) - types/basetypes: Fixed
ObjectType
typeApplyTerraform5AttributePathStep
method to return an error instead ofnil
for invalid attribute name steps (#602)