@fluojs/validation
Advanced tools
+2
-2
@@ -12,3 +12,3 @@ { | ||
| ], | ||
| "version": "1.0.0-beta.4", | ||
| "version": "1.0.0", | ||
| "private": false, | ||
@@ -46,3 +46,3 @@ "license": "MIT", | ||
| "validator": "^13.15.26", | ||
| "@fluojs/core": "^1.0.0-beta.5" | ||
| "@fluojs/core": "^1.0.0" | ||
| }, | ||
@@ -49,0 +49,0 @@ "devDependencies": { |
+4
-0
@@ -29,2 +29,3 @@ # @fluojs/validation | ||
| - `@ValidateClass(...)`로 Zod나 Valibot 같은 Standard Schema validator를 붙이고 싶을 때 | ||
| - `@fluojs/i18n/validation`으로 명시적으로 localize할 수 있는 안정적인 validation issue code와 path가 필요할 때 | ||
@@ -100,2 +101,4 @@ ## 빠른 시작 | ||
| `@fluojs/validation`은 항상 기존 human-readable `message` 값을 방출합니다. Localized message가 필요한 애플리케이션은 validation 실패 후 `@fluojs/i18n/validation`에 opt-in할 수 있습니다. 이 통합은 validator 실행을 바꾸거나 이 패키지를 HTTP locale resolution에 결합하지 않고 `source`, `field`, `code`를 translation key로 매핑합니다. | ||
| ### Mapped DTO 헬퍼 | ||
@@ -159,2 +162,3 @@ | ||
| - `@fluojs/http`: request data를 bind한 뒤 이 패키지로 검증합니다. | ||
| - `@fluojs/i18n`: opt-in localized validation issue message를 위한 `@fluojs/i18n/validation`을 제공합니다. | ||
| - `@fluojs/serialization`: response side에서 output DTO를 가공합니다. | ||
@@ -161,0 +165,0 @@ - `@fluojs/core`: validation decorator가 사용하는 metadata primitive를 제공합니다. |
+4
-0
@@ -29,2 +29,3 @@ # @fluojs/validation | ||
| - when you want to attach Standard Schema validators such as Zod or Valibot through `@ValidateClass(...)` | ||
| - when you want stable validation issue codes and paths that can be localized explicitly through `@fluojs/i18n/validation` | ||
@@ -104,2 +105,4 @@ ## Quick Start | ||
| `@fluojs/validation` always emits its normal human-readable `message` values. Applications that need localized messages can opt into `@fluojs/i18n/validation` after validation fails. That integration maps `source`, `field`, and `code` to translation keys without changing validator execution or coupling this package to HTTP locale resolution. | ||
| ### Mapped DTO helpers | ||
@@ -163,2 +166,3 @@ | ||
| - `@fluojs/http`: binds request data, then uses this package to validate it | ||
| - `@fluojs/i18n`: exposes `@fluojs/i18n/validation` for opt-in localized validation issue messages | ||
| - `@fluojs/serialization`: shapes output DTOs on the response side | ||
@@ -165,0 +169,0 @@ - `@fluojs/core`: provides the metadata primitives used by validation decorators |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
106564
1.14%1
-50%174
2.35%Updated