@kubb/plugin-redoc 0.0.0-canary-20251222142412 → 0.0.0-canary-20251222160843
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/index.d.cts +19 -20
- package/dist/index.d.ts +19 -20
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
2
2
|
import { Fabric } from "@kubb/react-fabric";
|
|
3
|
-
import * as OasTypes from "oas/types";
|
|
4
|
-
import { OASDocument, SchemaObject, User } from "oas/types";
|
|
5
|
-
import { Operation } from "oas/operation";
|
|
6
|
-
import { OpenAPIV3 } from "openapi-types";
|
|
7
3
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
8
4
|
import BaseOas from "oas";
|
|
5
|
+
import { Operation } from "oas/operation";
|
|
6
|
+
import { DiscriminatorObject, OASDocument, SchemaObject } from "oas/types";
|
|
9
7
|
|
|
10
8
|
//#region ../core/src/Kubb.d.ts
|
|
11
9
|
type DebugEvent = {
|
|
@@ -644,34 +642,35 @@ declare class PluginManager {
|
|
|
644
642
|
//#endregion
|
|
645
643
|
//#region ../oas/src/types.d.ts
|
|
646
644
|
type contentType = 'application/json' | (string & {});
|
|
645
|
+
type SchemaObject$1 = SchemaObject & {
|
|
646
|
+
'x-nullable'?: boolean;
|
|
647
|
+
$ref?: string;
|
|
648
|
+
};
|
|
649
|
+
type Document = OASDocument;
|
|
650
|
+
type Operation$1 = Operation;
|
|
651
|
+
type DiscriminatorObject$1 = DiscriminatorObject;
|
|
647
652
|
//#endregion
|
|
648
653
|
//#region ../oas/src/Oas.d.ts
|
|
649
654
|
type Options$1 = {
|
|
650
655
|
contentType?: contentType;
|
|
651
656
|
discriminator?: 'strict' | 'inherit';
|
|
652
657
|
};
|
|
653
|
-
declare class Oas
|
|
658
|
+
declare class Oas extends BaseOas {
|
|
654
659
|
#private;
|
|
655
|
-
document:
|
|
656
|
-
constructor(
|
|
657
|
-
oas,
|
|
658
|
-
user
|
|
659
|
-
}: {
|
|
660
|
-
oas: TOAS | OASDocument | string;
|
|
661
|
-
user?: User;
|
|
662
|
-
});
|
|
660
|
+
document: Document;
|
|
661
|
+
constructor(document: Document);
|
|
663
662
|
setOptions(options: Options$1): void;
|
|
664
663
|
get options(): Options$1;
|
|
665
|
-
get($ref: string):
|
|
664
|
+
get<T = unknown>($ref: string): T | null;
|
|
666
665
|
getKey($ref: string): string | undefined;
|
|
667
666
|
set($ref: string, value: unknown): false | undefined;
|
|
668
|
-
getDiscriminator(schema:
|
|
669
|
-
dereferenceWithRef(schema?:
|
|
670
|
-
getResponseSchema(operation: Operation, statusCode: string | number): SchemaObject;
|
|
671
|
-
getRequestSchema(operation: Operation): SchemaObject | undefined;
|
|
672
|
-
getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
|
|
667
|
+
getDiscriminator(schema: SchemaObject$1 | null): DiscriminatorObject$1 | null;
|
|
668
|
+
dereferenceWithRef<T = unknown>(schema?: T): T;
|
|
669
|
+
getResponseSchema(operation: Operation$1, statusCode: string | number): SchemaObject$1;
|
|
670
|
+
getRequestSchema(operation: Operation$1): SchemaObject$1 | undefined;
|
|
671
|
+
getParametersSchema(operation: Operation$1, inKey: 'path' | 'query' | 'header'): SchemaObject$1 | null;
|
|
673
672
|
valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
|
|
674
|
-
flattenSchema(schema
|
|
673
|
+
flattenSchema(schema: SchemaObject$1 | null): SchemaObject$1 | null;
|
|
675
674
|
}
|
|
676
675
|
//#endregion
|
|
677
676
|
//#region src/types.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
2
2
|
import { Fabric } from "@kubb/react-fabric";
|
|
3
|
-
import * as OasTypes from "oas/types";
|
|
4
|
-
import { OASDocument, SchemaObject, User } from "oas/types";
|
|
5
|
-
import { Operation } from "oas/operation";
|
|
6
|
-
import { OpenAPIV3 } from "openapi-types";
|
|
7
3
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
8
4
|
import BaseOas from "oas";
|
|
5
|
+
import { Operation } from "oas/operation";
|
|
6
|
+
import { DiscriminatorObject, OASDocument, SchemaObject } from "oas/types";
|
|
9
7
|
|
|
10
8
|
//#region ../core/src/Kubb.d.ts
|
|
11
9
|
type DebugEvent = {
|
|
@@ -644,34 +642,35 @@ declare class PluginManager {
|
|
|
644
642
|
//#endregion
|
|
645
643
|
//#region ../oas/src/types.d.ts
|
|
646
644
|
type contentType = 'application/json' | (string & {});
|
|
645
|
+
type SchemaObject$1 = SchemaObject & {
|
|
646
|
+
'x-nullable'?: boolean;
|
|
647
|
+
$ref?: string;
|
|
648
|
+
};
|
|
649
|
+
type Document = OASDocument;
|
|
650
|
+
type Operation$1 = Operation;
|
|
651
|
+
type DiscriminatorObject$1 = DiscriminatorObject;
|
|
647
652
|
//#endregion
|
|
648
653
|
//#region ../oas/src/Oas.d.ts
|
|
649
654
|
type Options$1 = {
|
|
650
655
|
contentType?: contentType;
|
|
651
656
|
discriminator?: 'strict' | 'inherit';
|
|
652
657
|
};
|
|
653
|
-
declare class Oas
|
|
658
|
+
declare class Oas extends BaseOas {
|
|
654
659
|
#private;
|
|
655
|
-
document:
|
|
656
|
-
constructor(
|
|
657
|
-
oas,
|
|
658
|
-
user
|
|
659
|
-
}: {
|
|
660
|
-
oas: TOAS | OASDocument | string;
|
|
661
|
-
user?: User;
|
|
662
|
-
});
|
|
660
|
+
document: Document;
|
|
661
|
+
constructor(document: Document);
|
|
663
662
|
setOptions(options: Options$1): void;
|
|
664
663
|
get options(): Options$1;
|
|
665
|
-
get($ref: string):
|
|
664
|
+
get<T = unknown>($ref: string): T | null;
|
|
666
665
|
getKey($ref: string): string | undefined;
|
|
667
666
|
set($ref: string, value: unknown): false | undefined;
|
|
668
|
-
getDiscriminator(schema:
|
|
669
|
-
dereferenceWithRef(schema?:
|
|
670
|
-
getResponseSchema(operation: Operation, statusCode: string | number): SchemaObject;
|
|
671
|
-
getRequestSchema(operation: Operation): SchemaObject | undefined;
|
|
672
|
-
getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
|
|
667
|
+
getDiscriminator(schema: SchemaObject$1 | null): DiscriminatorObject$1 | null;
|
|
668
|
+
dereferenceWithRef<T = unknown>(schema?: T): T;
|
|
669
|
+
getResponseSchema(operation: Operation$1, statusCode: string | number): SchemaObject$1;
|
|
670
|
+
getRequestSchema(operation: Operation$1): SchemaObject$1 | undefined;
|
|
671
|
+
getParametersSchema(operation: Operation$1, inKey: 'path' | 'query' | 'header'): SchemaObject$1 | null;
|
|
673
672
|
valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
|
|
674
|
-
flattenSchema(schema
|
|
673
|
+
flattenSchema(schema: SchemaObject$1 | null): SchemaObject$1 | null;
|
|
675
674
|
}
|
|
676
675
|
//#endregion
|
|
677
676
|
//#region src/types.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-redoc",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251222160843",
|
|
4
4
|
"description": "Beautiful docs with Redoc",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@kubb/react-fabric": "0.7.4",
|
|
50
50
|
"handlebars": "^4.7.8",
|
|
51
|
-
"@kubb/core": "0.0.0-canary-
|
|
52
|
-
"@kubb/oas": "0.0.0-canary-
|
|
53
|
-
"@kubb/plugin-oas": "0.0.0-canary-
|
|
51
|
+
"@kubb/core": "0.0.0-canary-20251222160843",
|
|
52
|
+
"@kubb/oas": "0.0.0-canary-20251222160843",
|
|
53
|
+
"@kubb/plugin-oas": "0.0.0-canary-20251222160843"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@kubb/react-fabric": "0.7.4"
|