Skip to content

Commit 54399a2

Browse files
committed
revert yarn.lock and linter
1 parent 5290ec3 commit 54399a2

25 files changed

+2972
-3619
lines changed

packages/docusaurus-plugin-openapi-docs/src/markdown/createAuthentication.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8+
import { OAuthFlowObject, SecuritySchemeObject } from "../openapi/types";
89
import { createDescription } from "./createDescription";
910
import { create, guard } from "./utils";
10-
import { OAuthFlowObject, SecuritySchemeObject } from "../openapi/types";
1111

1212
export function createAuthentication(securitySchemes: SecuritySchemeObject) {
1313
if (!securitySchemes || !Object.keys(securitySchemes).length) return "";

packages/docusaurus-plugin-openapi-docs/src/markdown/createCallbacks.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8+
import { MediaTypeObject } from "../openapi/types";
9+
import { ApiItem } from "../types";
810
import { createDescription } from "./createDescription";
911
import { createMethodEndpoint } from "./createMethodEndpoint";
1012
import { createRequestBodyDetails } from "./createRequestBodyDetails";
1113
import { createStatusCodes } from "./createStatusCodes";
1214
import { create } from "./utils";
13-
import { MediaTypeObject } from "../openapi/types";
14-
import { ApiItem } from "../types";
1515

1616
interface Props {
1717
callbacks: ApiItem["callbacks"];

packages/docusaurus-plugin-openapi-docs/src/markdown/createContactInfo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8-
import { create, guard } from "./utils";
98
import { ContactObject } from "../openapi/types";
9+
import { create, guard } from "./utils";
1010

1111
export function createContactInfo(contact: ContactObject) {
1212
if (!contact || !Object.keys(contact).length) return "";

packages/docusaurus-plugin-openapi-docs/src/markdown/createLicense.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8-
import { create, guard } from "./utils";
98
import { LicenseObject } from "../openapi/types";
9+
import { create, guard } from "./utils";
1010

1111
export function createLicense(license: LicenseObject) {
1212
if (!license || !Object.keys(license).length) return "";

packages/docusaurus-plugin-openapi-docs/src/markdown/createLogo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8-
import { create, guard } from "./utils";
98
import { LogoObject } from "../openapi/types";
9+
import { create, guard } from "./utils";
1010

1111
export function createLogo(
1212
logo: LogoObject | undefined,

packages/docusaurus-plugin-openapi-docs/src/markdown/createParamsDetails.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8+
import { ApiItem } from "../types";
89
import { createDetails } from "./createDetails";
910
import { createDetailsSummary } from "./createDetailsSummary";
1011
import { create } from "./utils";
11-
import { ApiItem } from "../types";
1212

1313
interface Props {
1414
parameters: ApiItem["parameters"];

packages/docusaurus-plugin-openapi-docs/src/markdown/createRequestBodyDetails.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8-
import { createRequestSchema } from "./createRequestSchema";
98
import { MediaTypeObject } from "../openapi/types";
9+
import { createRequestSchema } from "./createRequestSchema";
1010

1111
interface Props {
1212
title: string;

packages/docusaurus-plugin-openapi-docs/src/markdown/createRequestSchema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8+
import { MediaTypeObject } from "../openapi/types";
89
import { createDescription } from "./createDescription";
910
import { createDetails } from "./createDetails";
1011
import { createDetailsSummary } from "./createDetailsSummary";
1112
import { createNodes } from "./createSchema";
1213
import { create, guard } from "./utils";
13-
import { MediaTypeObject } from "../openapi/types";
1414

1515
interface Props {
1616
style?: any;

packages/docusaurus-plugin-openapi-docs/src/markdown/createResponseSchema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8+
import { MediaTypeObject } from "../openapi/types";
89
import { createDescription } from "./createDescription";
910
import { createDetails } from "./createDetails";
1011
import { createDetailsSummary } from "./createDetailsSummary";
@@ -15,7 +16,6 @@ import {
1516
createResponseExamples,
1617
} from "./createStatusCodes";
1718
import { create, guard } from "./utils";
18-
import { MediaTypeObject } from "../openapi/types";
1919

2020
interface Props {
2121
style?: any;

packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
import * as prettier from "prettier";
99

10-
import { createNodes } from "./createSchema";
1110
import { SchemaObject } from "../openapi/types";
11+
import { createNodes } from "./createSchema";
1212

1313
describe("createNodes", () => {
1414
it("should create readable MODs for oneOf primitive properties", () => {

packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import clsx from "clsx";
99

10+
import { SchemaObject } from "../openapi/types";
1011
import {
1112
createClosingArrayBracket,
1213
createOpeningArrayBracket,
@@ -16,7 +17,6 @@ import { createDetails } from "./createDetails";
1617
import { createDetailsSummary } from "./createDetailsSummary";
1718
import { getQualifierMessage, getSchemaName } from "./schema";
1819
import { create, guard } from "./utils";
19-
import { SchemaObject } from "../openapi/types";
2020

2121
const jsonSchemaMergeAllOf = require("json-schema-merge-allof");
2222

packages/docusaurus-plugin-openapi-docs/src/markdown/createStatusCodes.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
import format from "xml-formatter";
99

10+
import { sampleResponseFromSchema } from "../openapi/createResponseExample";
11+
import { ApiItem } from "../types";
1012
import { createDescription } from "./createDescription";
1113
import { createDetails } from "./createDetails";
1214
import { createDetailsSummary } from "./createDetailsSummary";
1315
import { createResponseSchema } from "./createResponseSchema";
1416
import { create } from "./utils";
1517
import { guard } from "./utils";
16-
import { sampleResponseFromSchema } from "../openapi/createResponseExample";
17-
import { ApiItem } from "../types";
1818

1919
export default function json2xml(o: any, tab: any) {
2020
var toXml = function (v: any, name: string, ind: any) {

packages/docusaurus-plugin-openapi-docs/src/markdown/index.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8+
import {
9+
ContactObject,
10+
LicenseObject,
11+
MediaTypeObject,
12+
SecuritySchemeObject,
13+
} from "../openapi/types";
14+
import {
15+
ApiPageMetadata,
16+
InfoPageMetadata,
17+
SchemaPageMetadata,
18+
TagPageMetadata,
19+
} from "../types";
820
import { createAuthentication } from "./createAuthentication";
921
import { createAuthorization } from "./createAuthorization";
1022
import { createCallbacks } from "./createCallbacks";
@@ -25,18 +37,6 @@ import { createTermsOfService } from "./createTermsOfService";
2537
import { createVendorExtensions } from "./createVendorExtensions";
2638
import { createVersionBadge } from "./createVersionBadge";
2739
import { create, greaterThan, lessThan, render } from "./utils";
28-
import {
29-
ContactObject,
30-
LicenseObject,
31-
MediaTypeObject,
32-
SecuritySchemeObject,
33-
} from "../openapi/types";
34-
import {
35-
ApiPageMetadata,
36-
InfoPageMetadata,
37-
SchemaPageMetadata,
38-
TagPageMetadata,
39-
} from "../types";
4040

4141
interface RequestBodyProps {
4242
title: string;

packages/docusaurus-plugin-openapi-docs/src/openapi/createRequestExample.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import chalk from "chalk";
99
import merge from "lodash/merge";
1010

11-
import { SchemaObject } from "./types";
1211
import { mergeAllOf } from "../markdown/createSchema";
12+
import { SchemaObject } from "./types";
1313

1414
interface OASTypeToTypeMap {
1515
string: string;

packages/docusaurus-plugin-openapi-docs/src/openapi/createResponseExample.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import chalk from "chalk";
99
import merge from "lodash/merge";
1010

11-
import { SchemaObject } from "./types";
1211
import { mergeAllOf } from "../markdown/createSchema";
12+
import { SchemaObject } from "./types";
1313

1414
interface OASTypeToTypeMap {
1515
string: string;

packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ import kebabCase from "lodash/kebabCase";
1818
import unionBy from "lodash/unionBy";
1919
import uniq from "lodash/uniq";
2020

21-
import { sampleRequestFromSchema } from "./createRequestExample";
22-
import { OpenApiObject, TagGroupObject, TagObject } from "./types";
23-
import { loadAndResolveSpec } from "./utils/loadAndResolveSpec";
2421
import { isURL } from "../index";
2522
import {
2623
ApiMetadata,
@@ -31,6 +28,9 @@ import {
3128
SidebarOptions,
3229
TagPageMetadata,
3330
} from "../types";
31+
import { sampleRequestFromSchema } from "./createRequestExample";
32+
import { OpenApiObject, TagGroupObject, TagObject } from "./types";
33+
import { loadAndResolveSpec } from "./utils/loadAndResolveSpec";
3434

3535
/**
3636
* Convenience function for converting raw JSON to a Postman Collection object.

packages/docusaurus-plugin-openapi-docs/src/openapi/utils/loadAndResolveSpec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import chalk from "chalk";
1313
// @ts-ignore
1414
import { convertObj } from "swagger2openapi";
1515

16-
import { OpenAPIParser } from "./services/OpenAPIParser";
1716
import { OpenApiObject } from "../types";
17+
import { OpenAPIParser } from "./services/OpenAPIParser";
1818

1919
function serializer(replacer: any, cycleReplacer: any) {
2020
var stack: any = [],

packages/docusaurus-plugin-openapi-docs/src/openapi/utils/services/OpenAPIParser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
// @ts-nocheck
99

10-
import { RedocNormalizedOptions } from "./RedocNormalizedOptions";
1110
import { OpenAPIRef, OpenAPISchema, OpenAPISpec, Referenced } from "../types";
1211
import { isArray, isBoolean } from "../utils/helpers";
1312
import { JsonPointer } from "../utils/JsonPointer";
1413
import { getDefinitionName, isNamedDefinition } from "../utils/openapi";
14+
import { RedocNormalizedOptions } from "./RedocNormalizedOptions";
1515

1616
export type MergedOpenAPISchema = OpenAPISchema & { parentRefs?: string[] };
1717

packages/docusaurus-plugin-openapi-docs/src/openapi/utils/utils/openapi.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@
99

1010
import { dirname } from "path";
1111

12-
import {
13-
isNumeric,
14-
removeQueryString,
15-
resolveUrl,
16-
isArray,
17-
isBoolean,
18-
} from "./helpers";
1912
import { OpenAPIParser } from "../services/OpenAPIParser";
2013
import {
2114
OpenAPIEncoding,
@@ -28,6 +21,13 @@ import {
2821
OpenAPIServer,
2922
Referenced,
3023
} from "../types";
24+
import {
25+
isNumeric,
26+
removeQueryString,
27+
resolveUrl,
28+
isArray,
29+
isBoolean,
30+
} from "./helpers";
3131

3232
function isWildcardStatusCode(
3333
statusCode: string | number

scripts/changelog-beta.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* LICENSE file in the root directory of this source tree.
77
* ========================================================================== */
88

9+
import pkg from "../lerna.json";
910
import { getOutput } from "./utils/get-output";
1011
import { printBanner, printSpacer } from "./utils/print-utils";
11-
import pkg from "../lerna.json";
1212

1313
const ORG = "PaloAltoNetworks";
1414
const REPO = "docusaurus-openapi-docs";

scripts/changelog.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* LICENSE file in the root directory of this source tree.
77
* ========================================================================== */
88

9+
import pkg from "../lerna.json";
910
import { getOutput } from "./utils/get-output";
1011
import { printBanner, printSpacer } from "./utils/print-utils";
11-
import pkg from "../lerna.json";
1212

1313
const ORG = "PaloAltoNetworks";
1414
const REPO = "docusaurus-openapi-docs";

scripts/check-pr-title.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
* ========================================================================== */
88

9-
import { getOutput } from "./utils/get-output";
109
import { version } from "../lerna.json";
10+
import { getOutput } from "./utils/get-output";
1111

1212
// Makes the script crash on unhandled rejections instead of silently
1313
// ignoring them. In the future, promise rejections that are not handled will

scripts/publish-beta.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import { execSync } from "child_process";
1010
import fs from "fs";
1111
import path from "path";
1212

13+
import { version } from "../lerna.json";
1314
import { createDryRun } from "./utils/dry-run";
1415
import { getOutput } from "./utils/get-output";
1516
import { printBanner } from "./utils/print-utils";
16-
import { version } from "../lerna.json";
1717

1818
const ORG = "PaloAltoNetworks";
1919
const REPO = "docusaurus-openapi-docs";

scripts/publish.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import { execSync } from "child_process";
1010
import fs from "fs";
1111
import path from "path";
1212

13+
import { version } from "../lerna.json";
1314
import { createDryRun } from "./utils/dry-run";
1415
import { getOutput } from "./utils/get-output";
1516
import { printBanner } from "./utils/print-utils";
16-
import { version } from "../lerna.json";
1717

1818
const ORG = "PaloAltoNetworks";
1919
const REPO = "docusaurus-openapi-docs";

0 commit comments

Comments
 (0)