The spacelift_space.parent_space_id is marked as optional but a value is actually required:
Instead of marking it as required, I chose to default to adding spaces to the root by using root as default. I found in the tests for the resource type. It works fine and I think that this was the intended behavior.
Type of change
[X] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] Documentation (non-breaking change that adds documentation)
Related issues
None
Checklists
Development
[X] Lint rules pass locally
[X] The code changed/added as part of this pull request has been covered with tests
[X] All tests related to the changed code pass in development
[X] tfplugindocs has been run to make sure the docs are up to date.
Code review
[x] This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
[x] Pull Request is no longer marked as "draft"
[x] Reviewers have been assigned
[x] Changes have been reviewed by at least one other engineer
[x] The target branch is future unless the change is going directly into production
Description of the change
The
spacelift_space.parent_space_id
is marked as optional but a value is actually required:Instead of marking it as required, I chose to default to adding spaces to the root by using
root
as default. I found in the tests for the resource type. It works fine and I think that this was the intended behavior.Type of change
Related issues
None
Checklists
Development
tfplugindocs
has been run to make sure the docs are up to date.Code review
future
unless the change is going directly into production