@effect/openapi-generator 4.0.0-beta.85 → 4.0.0-beta.87

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.
@@ -216,11 +216,11 @@ export const make = (
216
216
  ): ${name} => {
217
217
  ${helpers.join("\n ")}
218
218
  const decodeSuccess =
219
- <Schema extends ${importName}.Top>(schema: Schema) =>
219
+ <Schema extends ${importName}.Constraint>(schema: Schema) =>
220
220
  (response: HttpClientResponse.HttpClientResponse) =>
221
221
  HttpClientResponse.schemaBodyJson(schema)(response)
222
222
  const decodeError =
223
- <const Tag extends string, Schema extends ${importName}.Top>(tag: Tag, schema: Schema) =>
223
+ <const Tag extends string, Schema extends ${importName}.Constraint>(tag: Tag, schema: Schema) =>
224
224
  (response: HttpClientResponse.HttpClientResponse) =>
225
225
  Effect.flatMap(
226
226
  HttpClientResponse.schemaBodyJson(schema)(response),
@@ -720,7 +720,7 @@ const sseRequestSource = _importName => `const sseRequest = <
720
720
  Type,
721
721
  DecodingServices
722
722
  >(
723
- schema: Schema.Decoder<Type, DecodingServices>
723
+ schema: Schema.ConstraintDecoder<Type, DecodingServices>
724
724
  ) =>
725
725
  (
726
726
  request: HttpClientRequest.HttpClientRequest
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@effect/openapi-generator",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.85",
4
+ "version": "4.0.0-beta.87",
5
5
  "license": "MIT",
6
6
  "description": "Generate Effect Schema types, HTTP clients, and HttpApi modules from OpenAPI specifications",
7
7
  "homepage": "https://effect.website",
@@ -45,8 +45,8 @@
45
45
  "provenance": true
46
46
  },
47
47
  "peerDependencies": {
48
- "@effect/platform-node": "^4.0.0-beta.85",
49
- "effect": "^4.0.0-beta.85"
48
+ "@effect/platform-node": "^4.0.0-beta.87",
49
+ "effect": "^4.0.0-beta.87"
50
50
  },
51
51
  "dependencies": {
52
52
  "swagger2openapi": "^7.0.8"
@@ -56,7 +56,7 @@
56
56
  "json-schema-typed": "^8.0.2",
57
57
  "openapi-typescript": "^7.13.0",
58
58
  "yaml": "^2.9.0",
59
- "effect": "^4.0.0-beta.85"
59
+ "effect": "^4.0.0-beta.87"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "tsc -b tsconfig.json && pnpm babel",
@@ -263,11 +263,11 @@ export const make = (
263
263
  ): ${name} => {
264
264
  ${helpers.join("\n ")}
265
265
  const decodeSuccess =
266
- <Schema extends ${importName}.Top>(schema: Schema) =>
266
+ <Schema extends ${importName}.Constraint>(schema: Schema) =>
267
267
  (response: HttpClientResponse.HttpClientResponse) =>
268
268
  HttpClientResponse.schemaBodyJson(schema)(response)
269
269
  const decodeError =
270
- <const Tag extends string, Schema extends ${importName}.Top>(tag: Tag, schema: Schema) =>
270
+ <const Tag extends string, Schema extends ${importName}.Constraint>(tag: Tag, schema: Schema) =>
271
271
  (response: HttpClientResponse.HttpClientResponse) =>
272
272
  Effect.flatMap(
273
273
  HttpClientResponse.schemaBodyJson(schema)(response),
@@ -917,7 +917,7 @@ const sseRequestSource = (_importName: string) =>
917
917
  Type,
918
918
  DecodingServices
919
919
  >(
920
- schema: Schema.Decoder<Type, DecodingServices>
920
+ schema: Schema.ConstraintDecoder<Type, DecodingServices>
921
921
  ) =>
922
922
  (
923
923
  request: HttpClientRequest.HttpClientRequest