wormajs 0.3.0 → 0.3.1

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.
@@ -55,6 +55,7 @@ const VALID_PRIMITIVES = new Set([
55
55
  'unknown',
56
56
  'any',
57
57
  'never',
58
+ 'integer',
58
59
  ]);
59
60
  function validatePrimitive(val) {
60
61
  if (!VALID_PRIMITIVES.has(val)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wormajs",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A modern OpenAPI code generator - Generate type-safe API clients from OpenAPI specs",
5
5
  "author": "worma",
6
6
  "license": "MIT",
@@ -575,7 +575,7 @@ export declare function importType(imports: Record<string, string[]>, options?:
575
575
  files?: string[];
576
576
  }): ApiPlugin;
577
577
  export type ModifierScope = "params" | "pathParams" | "data" | "response";
578
- export type SchemaPrimitive = "number" | "string" | "boolean" | "undefined" | "null" | "unknown" | "any" | "never";
578
+ export type SchemaPrimitive = "number" | "string" | "boolean" | "undefined" | "null" | "unknown" | "any" | "never" | "integer";
579
579
  /**
580
580
  * Array type: a native JS array whose elements are Schemas.
581
581
  * e.g. ['string'] means string[]; ['string', 'number'] means the tuple [string, number]