Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

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

Merged
merged 1 commit into from
Dec 8, 2024

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.10.0 age adoption passing confidence

Release Notes

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

v0.10.0: : Dynamic context

This release adds one of the longer-requested features: cross-field validations and validation based on context.

This is achieved with the new dynamic function, see the README for usage.

  • Add dynamic and cross-field validations
  • Allow customizing hint in required
  • Give deprecation warning if ifPresent or required are used on non-nullable properties

v0.9.2

v0.9.1

  • Allow ValidationPath in validate() and ValidationPath.of

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 force-pushed the renovate/konform branch from ff7b9bb to a9b17c6 Compare November 1, 2024 11:09
@renovate renovate bot force-pushed the renovate/konform branch from a9b17c6 to 9875861 Compare November 13, 2024 23:19
@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
@renovate renovate bot force-pushed the renovate/konform branch from 9875861 to 272995e Compare November 14, 2024 21:08
@renovate renovate bot changed the title Update dependency io.konform:konform to v0.9.0 Update dependency io.konform:konform to v0.9.1 Nov 14, 2024
@renovate renovate bot changed the title Update dependency io.konform:konform to v0.9.1 Update dependency io.konform:konform to v0.9.2 Nov 15, 2024
@renovate renovate bot force-pushed the renovate/konform branch from 272995e to a3fd5b8 Compare November 15, 2024 15:13
@renovate renovate bot changed the title Update dependency io.konform:konform to v0.9.2 Update dependency io.konform:konform to v0.10.0 Nov 18, 2024
@renovate renovate bot force-pushed the renovate/konform branch from a3fd5b8 to fc91c40 Compare November 18, 2024 09:54
@sksamuel sksamuel merged commit 4187295 into master Dec 8, 2024
1 check passed
@renovate renovate bot deleted the renovate/konform branch December 8, 2024 11:28
@sksamuel
Copy link
Member

sksamuel commented Dec 8, 2024

released 1.3.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants