Skip to content

Commit 1e04c97

Browse files
committed
Updated main branch name
1 parent ccdc9d3 commit 1e04c97

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+57
-57
lines changed

.github/workflows/codeql.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches: [ "main" ]
66
pull_request:
7-
branches: [ "master" ]
7+
branches: [ "main" ]
88
schedule:
99
- cron: "44 20 * * 3"
1010

CONTRIBUTING.md

+1-1

README.md

+2-2

samples/spec/v3.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.0.2",
33
"info": {
44
"title": "Swagger Petstore - OpenAPI 3.0",
5-
"description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml) ",
5+
"description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/main/src/main/resources/openapi.yaml) ",
66
"termsOfService": "http://swagger.io/terms/",
77
"contact": {
88
"email": "[email protected]"

src/index.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ describe('index', () => {
1919

2020
it('downloads and parses v2 without issues', async () => {
2121
await OpenAPI.generate({
22-
input: 'https://raw.githubusercontent.com/ferdikoomen/openapi-typescript-codegen/master/test/spec/v2.json',
22+
input: 'https://raw.githubusercontent.com/ferdikoomen/openapi-typescript-codegen/main/test/spec/v2.json',
2323
output: './generated/v2-downloaded/',
2424
write: false,
2525
});
2626
});
2727

2828
it('downloads and parses v3 without issues', async () => {
2929
await OpenAPI.generate({
30-
input: 'https://raw.githubusercontent.com/ferdikoomen/openapi-typescript-codegen/master/test/spec/v3.json',
30+
input: 'https://raw.githubusercontent.com/ferdikoomen/openapi-typescript-codegen/main/test/spec/v3.json',
3131
output: './generated/v3-downloaded/',
3232
write: false,
3333
});

src/openApi/v2/interfaces/OpenApi.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { OpenApiSecurityScheme } from './OpenApiSecurityScheme';
1010
import type { OpenApiTag } from './OpenApiTag';
1111

1212
/**
13-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md
13+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md
1414
*/
1515
export interface OpenApi {
1616
swagger: string;

src/openApi/v2/interfaces/OpenApiContact.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#contactObject
2+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#contactObject
33
*/
44
export interface OpenApiContact {
55
name?: string;

src/openApi/v2/interfaces/OpenApiExample.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#exampleObject
2+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#exampleObject
33
*/
44
export interface OpenApiExample {
55
[mimetype: string]: any;

src/openApi/v2/interfaces/OpenApiExternalDocs.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#externalDocumentationObject
2+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#externalDocumentationObject
33
*/
44
export interface OpenApiExternalDocs {
55
description?: string;

src/openApi/v2/interfaces/OpenApiHeader.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Dictionary } from '../../../utils/types';
22
import type { OpenApiItems } from './OpenApiItems';
33

44
/**
5-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#headerObject
5+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#headerObject
66
*/
77
export interface OpenApiHeader {
88
description?: string;

src/openApi/v2/interfaces/OpenApiInfo.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { OpenApiContact } from './OpenApiContact';
22
import type { OpenApiLicense } from './OpenApiLicense';
33

44
/**
5-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#infoObject
5+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#infoObject
66
*/
77
export interface OpenApiInfo {
88
title: string;

src/openApi/v2/interfaces/OpenApiItems.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { WithEnumExtension } from './Extensions/WithEnumExtension';
22

33
/**
4-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#itemsObject
4+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#itemsObject
55
*/
66
export interface OpenApiItems extends WithEnumExtension {
77
type?: string;

src/openApi/v2/interfaces/OpenApiLicense.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#licenseObject
2+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#licenseObject
33
*/
44
export interface OpenApiLicense {
55
name: string;

src/openApi/v2/interfaces/OpenApiOperation.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { OpenApiResponses } from './OpenApiResponses';
44
import type { OpenApiSecurityRequirement } from './OpenApiSecurityRequirement';
55

66
/**
7-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#operationObject
7+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#operationObject
88
*/
99
export interface OpenApiOperation {
1010
tags?: string[];

src/openApi/v2/interfaces/OpenApiParameter.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { OpenApiReference } from './OpenApiReference';
55
import type { OpenApiSchema } from './OpenApiSchema';
66

77
/**
8-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameterObject
8+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#parameterObject
99
*/
1010
export interface OpenApiParameter extends OpenApiReference, WithEnumExtension, WithNullableExtension {
1111
name: string;

src/openApi/v2/interfaces/OpenApiPath.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { OpenApiParameter } from './OpenApiParameter';
33
import type { OpenApiReference } from './OpenApiReference';
44

55
/**
6-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathItemObject
6+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#pathItemObject
77
*/
88
export interface OpenApiPath extends OpenApiReference {
99
get?: OpenApiOperation;

src/openApi/v2/interfaces/OpenApiReference.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#referenceObject
2+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#referenceObject
33
*/
44
export interface OpenApiReference {
55
$ref?: string;

src/openApi/v2/interfaces/OpenApiResponse.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { OpenApiReference } from './OpenApiReference';
55
import type { OpenApiSchema } from './OpenApiSchema';
66

77
/**
8-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#responseObject
8+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#responseObject
99
*/
1010
export interface OpenApiResponse extends OpenApiReference {
1111
description: string;

src/openApi/v2/interfaces/OpenApiResponses.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { OpenApiResponse } from './OpenApiResponse';
22

33
/**
4-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#responsesObject
4+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#responsesObject
55
*/
66
export interface OpenApiResponses {
77
default?: OpenApiResponse;

src/openApi/v2/interfaces/OpenApiSchema.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { OpenApiReference } from './OpenApiReference';
66
import type { OpenApiXml } from './OpenApiXml';
77

88
/**
9-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schemaObject
9+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#schemaObject
1010
*/
1111
export interface OpenApiSchema extends OpenApiReference, WithEnumExtension, WithNullableExtension {
1212
title?: string;

src/openApi/v2/interfaces/OpenApiSecurityRequirement.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#securityRequirementObject
2+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#securityRequirementObject
33
*/
44
export interface OpenApiSecurityRequirement {
55
[key: string]: string;

src/openApi/v2/interfaces/OpenApiSecurityScheme.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Dictionary } from '../../../utils/types';
22

33
/**
4-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#securitySchemeObject
4+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#securitySchemeObject
55
*/
66
export interface OpenApiSecurityScheme {
77
type: 'basic' | 'apiKey' | 'oauth2';

src/openApi/v2/interfaces/OpenApiTag.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { OpenApiExternalDocs } from './OpenApiExternalDocs';
22

33
/**
4-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#tagObject
4+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#tagObject
55
*/
66
export interface OpenApiTag {
77
name: string;

src/openApi/v2/interfaces/OpenApiXml.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#xmlObject
2+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#xmlObject
33
*/
44
export interface OpenApiXml {
55
name?: string;

src/openApi/v3/interfaces/OpenApi.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { OpenApiServer } from './OpenApiServer';
77
import type { OpenApiTag } from './OpenApiTag';
88

99
/**
10-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md
10+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md
1111
*/
1212
export interface OpenApi {
1313
openapi: string;

src/openApi/v3/interfaces/OpenApiCallback.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { OpenApiPath } from './OpenApiPath';
22
import type { OpenApiReference } from './OpenApiReference';
33

44
/**
5-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#callbackObject
5+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#callbackObject
66
*/
77
export interface OpenApiCallback extends OpenApiReference {
88
[key: string]: OpenApiPath;

src/openApi/v3/interfaces/OpenApiComponents.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { OpenApiSchema } from './OpenApiSchema';
1010
import type { OpenApiSecurityScheme } from './OpenApiSecurityScheme';
1111

1212
/**
13-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#componentsObject
13+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#componentsObject
1414
*/
1515
export interface OpenApiComponents {
1616
schemas?: Dictionary<OpenApiSchema>;

src/openApi/v3/interfaces/OpenApiContact.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#contactObject
2+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#contactObject
33
*/
44
export interface OpenApiContact {
55
name?: string;

src/openApi/v3/interfaces/OpenApiDiscriminator.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Dictionary } from '../../../utils/types';
22

33
/**
4-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#discriminatorObject
4+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#discriminatorObject
55
*/
66
export interface OpenApiDiscriminator {
77
propertyName: string;

src/openApi/v3/interfaces/OpenApiEncoding.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Dictionary } from '../../../utils/types';
22
import type { OpenApiHeader } from './OpenApiHeader';
33

44
/**
5-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#encodingObject
5+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#encodingObject
66
*/
77
export interface OpenApiEncoding {
88
contentType?: string;

src/openApi/v3/interfaces/OpenApiExample.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { OpenApiReference } from './OpenApiReference';
22

33
/**
4-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#exampleObject
4+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#exampleObject
55
*/
66
export interface OpenApiExample extends OpenApiReference {
77
summary?: string;

src/openApi/v3/interfaces/OpenApiExternalDocs.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#externalDocumentationObject
2+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#externalDocumentationObject
33
*/
44
export interface OpenApiExternalDocs {
55
description?: string;

src/openApi/v3/interfaces/OpenApiHeader.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { OpenApiReference } from './OpenApiReference';
44
import type { OpenApiSchema } from './OpenApiSchema';
55

66
/**
7-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#headerObject
7+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#headerObject
88
*/
99
export interface OpenApiHeader extends OpenApiReference {
1010
description?: string;

src/openApi/v3/interfaces/OpenApiInfo.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { OpenApiContact } from './OpenApiContact';
22
import type { OpenApiLicense } from './OpenApiLicense';
33

44
/**
5-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#infoObject
5+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#infoObject
66
*/
77
export interface OpenApiInfo {
88
title: string;

src/openApi/v3/interfaces/OpenApiLicense.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#licenseObject
2+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#licenseObject
33
*/
44
export interface OpenApiLicense {
55
name: string;

src/openApi/v3/interfaces/OpenApiLink.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { OpenApiReference } from './OpenApiReference';
33
import type { OpenApiServer } from './OpenApiServer';
44

55
/**
6-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#linkObject
6+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#linkObject
77
*/
88
export interface OpenApiLink extends OpenApiReference {
99
operationRef?: string;

src/openApi/v3/interfaces/OpenApiMediaType.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { OpenApiReference } from './OpenApiReference';
55
import type { OpenApiSchema } from './OpenApiSchema';
66

77
/**
8-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#mediaTypeObject
8+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#mediaTypeObject
99
*/
1010
export interface OpenApiMediaType extends OpenApiReference {
1111
schema?: OpenApiSchema;

src/openApi/v3/interfaces/OpenApiOAuthFlow.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Dictionary } from '../../../utils/types';
22

33
/**
4-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#oauthFlowObject
4+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#oauthFlowObject
55
*/
66
export interface OpenApiOAuthFlow {
77
authorizationUrl: string;

src/openApi/v3/interfaces/OpenApiOAuthFlows.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { OpenApiOAuthFlow } from './OpenApiOAuthFlow';
22

33
/**
4-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#oauthFlowsObject
4+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#oauthFlowsObject
55
*/
66
export interface OpenApiOAuthFlows {
77
implicit?: OpenApiOAuthFlow;

src/openApi/v3/interfaces/OpenApiOperation.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { OpenApiSecurityRequirement } from './OpenApiSecurityRequirement';
88
import type { OpenApiServer } from './OpenApiServer';
99

1010
/**
11-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#operationObject
11+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#operationObject
1212
*/
1313
export interface OpenApiOperation {
1414
tags?: string[];

src/openApi/v3/interfaces/OpenApiParameter.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { OpenApiReference } from './OpenApiReference';
44
import type { OpenApiSchema } from './OpenApiSchema';
55

66
/**
7-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#parameterObject
7+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#parameterObject
88
*/
99
export interface OpenApiParameter extends OpenApiReference {
1010
name: string;

src/openApi/v3/interfaces/OpenApiPath.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { OpenApiParameter } from './OpenApiParameter';
33
import type { OpenApiServer } from './OpenApiServer';
44

55
/**
6-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#pathItemObject
6+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#pathItemObject
77
*/
88
export interface OpenApiPath {
99
summary?: string;

src/openApi/v3/interfaces/OpenApiPaths.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { OpenApiPath } from './OpenApiPath';
22

33
/**
4-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#pathsObject
4+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#pathsObject
55
*/
66
export interface OpenApiPaths {
77
[path: string]: OpenApiPath;

src/openApi/v3/interfaces/OpenApiReference.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#referenceObject
2+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#referenceObject
33
*/
44
export interface OpenApiReference {
55
$ref?: string;

src/openApi/v3/interfaces/OpenApiRequestBody.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { OpenApiMediaType } from './OpenApiMediaType';
33
import type { OpenApiReference } from './OpenApiReference';
44

55
/**
6-
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#requestBodyObject
6+
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#requestBodyObject
77
*/
88
export interface OpenApiRequestBody extends OpenApiReference {
99
description?: string;

0 commit comments

Comments
 (0)