@platformatic/service 1.39.0 → 1.40.0

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/config.d.ts CHANGED
@@ -205,6 +205,9 @@ export interface PlatformaticService {
205
205
  path?: string;
206
206
  schema?: string;
207
207
  url?: string;
208
+ fullResponse?: boolean;
209
+ fullRequest?: boolean;
210
+ validateResponse?: boolean;
208
211
  }[];
209
212
  versions?: {
210
213
  /**
@@ -1,6 +1,6 @@
1
1
  # Platformatic Service API
2
2
 
3
- This is a generated [Platformatic Service](https://docs.platformatic.dev/docs/reference/service/introduction) application.
3
+ This is a generated [Platformatic Service](https://docs.platformatic.dev/docs/service/overview) application.
4
4
 
5
5
  ## Requirements
6
6
 
@@ -4,11 +4,11 @@ const fp = require('fastify-plugin')
4
4
  const client = require('@platformatic/client')
5
5
 
6
6
  async function setupClients (app, opts) {
7
- for (const { path, url, serviceId, name, schema, type } of opts) {
7
+ for (const { path, url, serviceId, name, schema, type, fullRequest, fullResponse, validateResponse } of opts) {
8
8
  if (path) {
9
9
  app.register(require(path), { url, serviceId })
10
10
  } else {
11
- app.register(client, { url, serviceId, name, path: schema, type })
11
+ app.register(client, { url, serviceId, name, path: schema, type, fullRequest, fullResponse, validateResponse })
12
12
  }
13
13
  }
14
14
  }
package/lib/schema.js CHANGED
@@ -707,7 +707,10 @@ const clients = {
707
707
  },
708
708
  url: {
709
709
  type: 'string'
710
- }
710
+ },
711
+ fullResponse: { type: 'boolean' },
712
+ fullRequest: { type: 'boolean' },
713
+ validateResponse: { type: 'boolean' }
711
714
  },
712
715
  additionalProperties: false
713
716
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "1.39.0",
3
+ "version": "1.40.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -78,13 +78,13 @@
78
78
  "semgrator": "^0.3.0",
79
79
  "ua-parser-js": "^1.0.37",
80
80
  "undici": "^6.9.0",
81
- "@platformatic/authenticate": "1.39.0",
82
- "@platformatic/config": "1.39.0",
83
- "@platformatic/client": "1.39.0",
84
- "@platformatic/generators": "1.39.0",
85
- "@platformatic/scalar-theme": "1.39.0",
86
- "@platformatic/utils": "1.39.0",
87
- "@platformatic/telemetry": "1.39.0"
81
+ "@platformatic/authenticate": "1.40.0",
82
+ "@platformatic/client": "1.40.0",
83
+ "@platformatic/config": "1.40.0",
84
+ "@platformatic/generators": "1.40.0",
85
+ "@platformatic/telemetry": "1.40.0",
86
+ "@platformatic/scalar-theme": "1.40.0",
87
+ "@platformatic/utils": "1.40.0"
88
88
  },
89
89
  "standard": {
90
90
  "ignore": [
package/schema.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "$id": "https://platformatic.dev/schemas/v1.39.0/service",
3
- "version": "1.39.0",
2
+ "$id": "https://platformatic.dev/schemas/v1.40.0/service",
3
+ "version": "1.40.0",
4
4
  "title": "Platformatic Service",
5
5
  "type": "object",
6
6
  "properties": {
@@ -928,6 +928,15 @@
928
928
  },
929
929
  "url": {
930
930
  "type": "string"
931
+ },
932
+ "fullResponse": {
933
+ "type": "boolean"
934
+ },
935
+ "fullRequest": {
936
+ "type": "boolean"
937
+ },
938
+ "validateResponse": {
939
+ "type": "boolean"
931
940
  }
932
941
  },
933
942
  "additionalProperties": false