@tim-smart/openapi-gen 0.3.8 → 0.3.9

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.
Files changed (2) hide show
  1. package/main.js +2 -0
  2. package/package.json +1 -1
package/main.js CHANGED
@@ -30191,6 +30191,8 @@ var make63 = gen2(function* () {
30191
30191
  if (sources.length === 0) return none2();
30192
30192
  else if (sources.length === 1) return some2(sources[0]);
30193
30193
  return some2(`${S}.Union(${sources.join(", ")})`);
30194
+ } else if ("const" in schema) {
30195
+ return some2(`${S}.Literal(${JSON.stringify(schema.const)})`);
30194
30196
  }
30195
30197
  return none2();
30196
30198
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tim-smart/openapi-gen",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Generate Effect http clients from OpenAPI specs",
5
5
  "bin": "main.js",
6
6
  "repository": {