@hey-api/openapi-ts 0.84.1 → 0.84.2
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/dist/chunk-WF7D2BDN.js +54 -0
- package/dist/chunk-WF7D2BDN.js.map +1 -0
- package/dist/index.cjs +63 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/internal.cjs +19 -19
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/{types.d-DOXd97cA.d.cts → types.d-fB2fiwrL.d.cts} +30 -4
- package/dist/{types.d-DOXd97cA.d.ts → types.d-fB2fiwrL.d.ts} +30 -4
- package/package.json +1 -1
- package/dist/chunk-TA6X5D7W.js +0 -54
- package/dist/chunk-TA6X5D7W.js.map +0 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-
|
|
1
|
+
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-fB2fiwrL.cjs';
|
|
2
2
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
3
3
|
import 'semver';
|
|
4
4
|
import '@hey-api/codegen-core';
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-
|
|
1
|
+
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-fB2fiwrL.js';
|
|
2
2
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
3
3
|
import 'semver';
|
|
4
4
|
import '@hey-api/codegen-core';
|
package/dist/internal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {createRequire}from'module';export{L as getSpec,K as initConfigs,D as parseOpenApiSpec}from'./chunk-
|
|
1
|
+
import {createRequire}from'module';export{L as getSpec,K as initConfigs,D as parseOpenApiSpec}from'./chunk-WF7D2BDN.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
|
|
2
2
|
//# sourceMappingURL=internal.js.map
|
|
@@ -5990,7 +5990,7 @@ declare namespace OpenApiSchemaObject {
|
|
|
5990
5990
|
|
|
5991
5991
|
type EnumsMode = 'inline' | 'root';
|
|
5992
5992
|
|
|
5993
|
-
type
|
|
5993
|
+
type UserParser = {
|
|
5994
5994
|
/**
|
|
5995
5995
|
* Filters can be used to select a subset of your input before it's passed
|
|
5996
5996
|
* to plugins.
|
|
@@ -6072,6 +6072,19 @@ type Parser = {
|
|
|
6072
6072
|
*/
|
|
6073
6073
|
name?: StringName;
|
|
6074
6074
|
};
|
|
6075
|
+
/**
|
|
6076
|
+
* By default, any object schema with a missing `required` keyword is
|
|
6077
|
+
* interpreted as "no properties are required." This is the correct
|
|
6078
|
+
* behavior according to the OpenAPI standard. However, some specifications
|
|
6079
|
+
* interpret a missing `required` keyword as "all properties should be
|
|
6080
|
+
* required."
|
|
6081
|
+
*
|
|
6082
|
+
* This option allows you to change the default behavior so that
|
|
6083
|
+
* properties are required by default unless explicitly marked as optional.
|
|
6084
|
+
*
|
|
6085
|
+
* @default false
|
|
6086
|
+
*/
|
|
6087
|
+
propertiesRequiredByDefault?: boolean;
|
|
6075
6088
|
/**
|
|
6076
6089
|
* Your schemas might contain read-only or write-only fields. Using such
|
|
6077
6090
|
* schemas directly could mean asking the user to provide a read-only
|
|
@@ -6159,7 +6172,7 @@ type Parser = {
|
|
|
6159
6172
|
validate_EXPERIMENTAL?: boolean | 'strict' | 'warn';
|
|
6160
6173
|
};
|
|
6161
6174
|
|
|
6162
|
-
type
|
|
6175
|
+
type Parser = {
|
|
6163
6176
|
/**
|
|
6164
6177
|
* Filters can be used to select a subset of your input before it's passed
|
|
6165
6178
|
* to plugins.
|
|
@@ -6236,6 +6249,19 @@ type ResolvedParser = {
|
|
|
6236
6249
|
*/
|
|
6237
6250
|
name: StringName;
|
|
6238
6251
|
};
|
|
6252
|
+
/**
|
|
6253
|
+
* By default, any object schema with a missing `required` keyword is
|
|
6254
|
+
* interpreted as "no properties are required." This is the correct
|
|
6255
|
+
* behavior according to the OpenAPI standard. However, some specifications
|
|
6256
|
+
* interpret a missing `required` keyword as "all properties should be
|
|
6257
|
+
* required."
|
|
6258
|
+
*
|
|
6259
|
+
* This option allows you to change the default behavior so that
|
|
6260
|
+
* properties are required by default unless explicitly marked as optional.
|
|
6261
|
+
*
|
|
6262
|
+
* @default false
|
|
6263
|
+
*/
|
|
6264
|
+
propertiesRequiredByDefault: boolean;
|
|
6239
6265
|
/**
|
|
6240
6266
|
* Your schemas might contain read-only or write-only fields. Using such
|
|
6241
6267
|
* schemas directly could mean asking the user to provide a read-only
|
|
@@ -6618,7 +6644,7 @@ interface UserConfig$p {
|
|
|
6618
6644
|
* Customize how the input is parsed and transformed before it's passed to
|
|
6619
6645
|
* plugins.
|
|
6620
6646
|
*/
|
|
6621
|
-
parser?:
|
|
6647
|
+
parser?: UserParser;
|
|
6622
6648
|
/**
|
|
6623
6649
|
* Plugins generate artifacts from `input`. By default, we generate SDK
|
|
6624
6650
|
* functions and TypeScript interfaces. If you manually define `plugins`,
|
|
@@ -6710,7 +6736,7 @@ type Config$c = Omit<
|
|
|
6710
6736
|
* Customize how the input is parsed and transformed before it's passed to
|
|
6711
6737
|
* plugins.
|
|
6712
6738
|
*/
|
|
6713
|
-
parser:
|
|
6739
|
+
parser: Parser;
|
|
6714
6740
|
pluginOrder: ReadonlyArray<keyof PluginConfigMap>;
|
|
6715
6741
|
plugins: {
|
|
6716
6742
|
[K in PluginNames]?: Plugin.ConfigWithName<PluginConfigMap[K]>;
|
|
@@ -5990,7 +5990,7 @@ declare namespace OpenApiSchemaObject {
|
|
|
5990
5990
|
|
|
5991
5991
|
type EnumsMode = 'inline' | 'root';
|
|
5992
5992
|
|
|
5993
|
-
type
|
|
5993
|
+
type UserParser = {
|
|
5994
5994
|
/**
|
|
5995
5995
|
* Filters can be used to select a subset of your input before it's passed
|
|
5996
5996
|
* to plugins.
|
|
@@ -6072,6 +6072,19 @@ type Parser = {
|
|
|
6072
6072
|
*/
|
|
6073
6073
|
name?: StringName;
|
|
6074
6074
|
};
|
|
6075
|
+
/**
|
|
6076
|
+
* By default, any object schema with a missing `required` keyword is
|
|
6077
|
+
* interpreted as "no properties are required." This is the correct
|
|
6078
|
+
* behavior according to the OpenAPI standard. However, some specifications
|
|
6079
|
+
* interpret a missing `required` keyword as "all properties should be
|
|
6080
|
+
* required."
|
|
6081
|
+
*
|
|
6082
|
+
* This option allows you to change the default behavior so that
|
|
6083
|
+
* properties are required by default unless explicitly marked as optional.
|
|
6084
|
+
*
|
|
6085
|
+
* @default false
|
|
6086
|
+
*/
|
|
6087
|
+
propertiesRequiredByDefault?: boolean;
|
|
6075
6088
|
/**
|
|
6076
6089
|
* Your schemas might contain read-only or write-only fields. Using such
|
|
6077
6090
|
* schemas directly could mean asking the user to provide a read-only
|
|
@@ -6159,7 +6172,7 @@ type Parser = {
|
|
|
6159
6172
|
validate_EXPERIMENTAL?: boolean | 'strict' | 'warn';
|
|
6160
6173
|
};
|
|
6161
6174
|
|
|
6162
|
-
type
|
|
6175
|
+
type Parser = {
|
|
6163
6176
|
/**
|
|
6164
6177
|
* Filters can be used to select a subset of your input before it's passed
|
|
6165
6178
|
* to plugins.
|
|
@@ -6236,6 +6249,19 @@ type ResolvedParser = {
|
|
|
6236
6249
|
*/
|
|
6237
6250
|
name: StringName;
|
|
6238
6251
|
};
|
|
6252
|
+
/**
|
|
6253
|
+
* By default, any object schema with a missing `required` keyword is
|
|
6254
|
+
* interpreted as "no properties are required." This is the correct
|
|
6255
|
+
* behavior according to the OpenAPI standard. However, some specifications
|
|
6256
|
+
* interpret a missing `required` keyword as "all properties should be
|
|
6257
|
+
* required."
|
|
6258
|
+
*
|
|
6259
|
+
* This option allows you to change the default behavior so that
|
|
6260
|
+
* properties are required by default unless explicitly marked as optional.
|
|
6261
|
+
*
|
|
6262
|
+
* @default false
|
|
6263
|
+
*/
|
|
6264
|
+
propertiesRequiredByDefault: boolean;
|
|
6239
6265
|
/**
|
|
6240
6266
|
* Your schemas might contain read-only or write-only fields. Using such
|
|
6241
6267
|
* schemas directly could mean asking the user to provide a read-only
|
|
@@ -6618,7 +6644,7 @@ interface UserConfig$p {
|
|
|
6618
6644
|
* Customize how the input is parsed and transformed before it's passed to
|
|
6619
6645
|
* plugins.
|
|
6620
6646
|
*/
|
|
6621
|
-
parser?:
|
|
6647
|
+
parser?: UserParser;
|
|
6622
6648
|
/**
|
|
6623
6649
|
* Plugins generate artifacts from `input`. By default, we generate SDK
|
|
6624
6650
|
* functions and TypeScript interfaces. If you manually define `plugins`,
|
|
@@ -6710,7 +6736,7 @@ type Config$c = Omit<
|
|
|
6710
6736
|
* Customize how the input is parsed and transformed before it's passed to
|
|
6711
6737
|
* plugins.
|
|
6712
6738
|
*/
|
|
6713
|
-
parser:
|
|
6739
|
+
parser: Parser;
|
|
6714
6740
|
pluginOrder: ReadonlyArray<keyof PluginConfigMap>;
|
|
6715
6741
|
plugins: {
|
|
6716
6742
|
[K in PluginNames]?: Plugin.ConfigWithName<PluginConfigMap[K]>;
|