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

Update dependency io.konform:konform to v0.9.0 #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 1, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
io.konform:konform 0.6.2 -> 0.9.0 age adoption passing confidence

Release Notes

konform-kt/konform (io.konform:konform)

v0.9.0: ValidationPath and userContext

Features:

  • Add ValidationResult.errors containing ValidationError with a ValidationPath to safely inspect and use validation error and paths
  • Add constrain() in ValidationBuilder as a replacement for addConstraint, directly allowing path and userContext to be set
  • Add path() in ValidationBuilder to adjust the reported validation path of a validation error
  • Add userContext() in ValidationBuilder to add any data to the reported validation error
  • Add various utilities to Validation and ValidationResult, or lists of them

Deprecations and breaking changes:

  • Move constraints from io.konform.validation.jsonschema to io.konform.validation.constraints, deprecations can be solved by replacing the import
  • Remove ValidationBuilder.has. Can be replaced by directly adding the validation in the builder
  • Deprecate addConstraint(), use constrain() instead. templateValues are not supported therein, directly add them to the hint.

v0.8.0: 0.8.0: Subclasses

  • Makes Validation contravariant, allowing a Validation<Animal> to be used as a Validation<Cat> (#​151 by @​dhoepelman)
  • Adds ifInstanceOf<T> and requireInstanceOf<T> validations, running a validation only if the value is of a specific subclass (ifInstanceOf) or returning invalid when it's of a different subclass requireInstanceOf (#​152 by @​dhoepelman )

v0.7.0: 0.7.0: Custom validations

  • Enhances custom validations by adding validate and overloading required and ifPresent to transform data before doing the validation, see the "custom validations" section of the README (#​65 by @​NikkyAI and @​dhoepelman)
  • Adds support for adding validations on zero-argument functions, which is especially useful for Java getters (#​65 by @​NikkyAI)

Configuration

📅 Schedule: Branch creation - "before 3am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@Bendzae
Copy link

Bendzae commented Oct 14, 2024

Any way this could be merged soon?

@renovate renovate bot changed the title Update dependency io.konform:konform to v0.7.0 Update dependency io.konform:konform to v0.8.0 Nov 1, 2024
@renovate renovate bot changed the title Update dependency io.konform:konform to v0.8.0 Update dependency io.konform:konform to v0.9.0 Nov 13, 2024
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