Skip to content

Use NullableList / NullableProperties throughout codebase - #4497

Open
rambleraptor wants to merge 1 commit into
apache:mainfrom
rambleraptor:rest-nullable-collections
Open

rambleraptor wants to merge 1 commit into
apache:mainfrom
rambleraptor:rest-nullable-collections

Conversation

@rambleraptor

Copy link
Copy Markdown
Collaborator

Rationale for this change

#4353 introduced a new NullableList / NullableProperties type, which helps clean up our Pydantic validators. I've removed a bunch of validators that we've previously used so that we can use these types instead.

Are these changes tested?

Tests should pass

Are there any user-facing changes?

Move NullableList and NullableProperties to typedef so they can be shared,
and use them for delete-files, file-scan-tasks, plan-tasks,
delete-file-references and storage-credentials in scan planning responses,
and for NamespaceResponse.properties. Java reads a null for these fields as
absent.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant