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

Align series/2.x branch codec generation annotations with zio-schema #137

Open
googley42 opened this issue Jan 7, 2023 · 0 comments
Open

Comments

@googley42
Copy link
Contributor

googley42 commented Jan 7, 2023

zio-dynamodb has been a pioneer in using annotations to customise zio-schema derived codes. However recently zio-schema has introduced standardised annotation names (only in it's ZIO2.X branch) that overlap - so the this issue is to replace our custom ones with standard versions, and also consider implementing new standard annotations that have been added to zio-schema that have no equivalent in zio-dynamodb.

Here is a summary of the new zio-schema annotations and their equivalents in zio-dynamodb:

zio-schema zio-dynamodb Notes
@simpleEnum was @enumOfCaseObjects Done
@discriminatorName was @Discriminator Done
@Fieldname was @id Done
@casename was @id Done
@fieldNameAliases TODO
@optionalField ?
@rejectExtraFields ?
@transientfield ?
@fieldDefaultValue TODO
@googley42 googley42 changed the title Align codec generation annotations with zio-schema Align ZIO2.X branch codec generation annotations with zio-schema Jan 7, 2023
@googley42 googley42 changed the title Align ZIO2.X branch codec generation annotations with zio-schema Align series/2.x branch codec generation annotations with zio-schema Jan 8, 2023
@googley42 googley42 self-assigned this Jan 29, 2023
@googley42 googley42 removed their assignment Feb 6, 2023
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

No branches or pull requests

1 participant