@clairejs/server 3.28.7 → 3.28.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Change Log
2
2
 
3
+ #### 3.28.8
4
+
5
+ - fix CrudHttpController getBody not cache validation
6
+
3
7
  #### 3.28.7
4
8
 
5
9
  - fix update records with hasMany field
@@ -62,7 +62,7 @@ export class HttpRequest {
62
62
  getBody() {
63
63
  if (this.endpointMetadata &&
64
64
  (this.endpointMetadata.method === HttpMethod.POST || this.endpointMetadata.method === HttpMethod.PUT) &&
65
- this.endpointMetadata?.bodyDto) {
65
+ this.endpointMetadata?.bodyDto && !this.body.validated) {
66
66
  this.body.data = validateData(this.body.data, this.endpointMetadata.bodyDto, false);
67
67
  this.body.validated = true;
68
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/server",
3
- "version": "3.28.7",
3
+ "version": "3.28.8",
4
4
  "description": "Claire server NodeJs framework written in Typescript.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",