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

refactor(frontend): ic-token.validation -> schema #3359

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

peterpeterparker
Copy link
Member

Motivation

As discussed offline in the context of #3357. We actually adopt a new convention in which Zod schema related are provided in sub-folder schema.

This prevents the introduction of circular dependencies when the validation uses both types and Zod schema.

Changes

  • Rename ic-token.validation to ic-token.schema

Copy link
Collaborator

@AntonioVentilii AntonioVentilii left a comment

Choose a reason for hiding this comment

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

tks!

@peterpeterparker peterpeterparker merged commit 1a454ce into main Nov 5, 2024
10 checks passed
@peterpeterparker peterpeterparker deleted the refactor/ic-token-schema branch November 5, 2024 15:28
peterpeterparker added a commit that referenced this pull request Nov 5, 2024
# Motivation

Similar to #3359. We are introducing a new convention for schema.

# Changes

- Split `token.validation` into `token.schema` and validation. The
schema, well, go to schema and in validation we keep the "utils".
@peterpeterparker
Copy link
Member Author

Relates to #2883

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.

2 participants