Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add optional deleted field to common (proto and schema) #138

Merged
merged 7 commits into from
Sep 27, 2023

Conversation

tomasciccola
Copy link
Contributor

this would close #84

@tomasciccola tomasciccola self-assigned this Aug 24, 2023
@tomasciccola
Copy link
Contributor Author

I'm wondering how to test an invalid value for the deleted field. On the JSONSchema level we can force deleted to be true but I don't know a way to do it on the protobuf level (maybe with an option ??) @gmaclennan

Copy link
Member

@gmaclennan gmaclennan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we make deleted required, it will make all the code easier I think.

Copy link
Member

@gmaclennan gmaclennan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For completeness sake there should be a test for when deleted = true

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.

Add deleted field to common props
2 participants