Skip to content

Commit

Permalink
Updated main branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdikoomen committed Apr 5, 2024
1 parent ccdc9d3 commit 1e04c97
Show file tree
Hide file tree
Showing 54 changed files with 57 additions and 57 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "CodeQL"

on:
push:
branches: [ "master" ]
branches: [ "main" ]
pull_request:
branches: [ "master" ]
branches: [ "main" ]
schedule:
- cron: "44 20 * * 3"

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ https://help.github.com/articles/using-pull-requests

## Submitting a Pull Request

1. Make your changes in a new git branch: `git checkout -b my-fix-branch master`
1. Make your changes in a new git branch: `git checkout -b my-fix-branch main`
2. Create your patch or feature
3. Ensure the builds work by running: `npm run build`
4. Ensure the tests will pass by running: `npm run test`
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ If you're from an enterprise looking for a fully managed SDK generation, please
[coverage-image]: https://img.shields.io/codecov/c/github/ferdikoomen/openapi-typescript-codegen.svg
[downloads-url]: http://npm-stat.com/charts.html?package=openapi-typescript-codegen
[downloads-image]: http://img.shields.io/npm/dm/openapi-typescript-codegen.svg
[build-url]: https://circleci.com/gh/ferdikoomen/openapi-typescript-codegen/tree/master
[build-image]: https://circleci.com/gh/ferdikoomen/openapi-typescript-codegen/tree/master.svg?style=svg
[build-url]: https://circleci.com/gh/ferdikoomen/openapi-typescript-codegen/tree/main
[build-image]: https://circleci.com/gh/ferdikoomen/openapi-typescript-codegen/tree/main.svg?style=svg
2 changes: 1 addition & 1 deletion samples/spec/v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.2",
"info": {
"title": "Swagger Petstore - OpenAPI 3.0",
"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) ",
"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) ",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"email": "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ describe('index', () => {

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

it('downloads and parses v3 without issues', async () => {
await OpenAPI.generate({
input: 'https://raw.githubusercontent.com/ferdikoomen/openapi-typescript-codegen/master/test/spec/v3.json',
input: 'https://raw.githubusercontent.com/ferdikoomen/openapi-typescript-codegen/main/test/spec/v3.json',
output: './generated/v3-downloaded/',
write: false,
});
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { OpenApiSecurityScheme } from './OpenApiSecurityScheme';
import type { OpenApiTag } from './OpenApiTag';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md
*/
export interface OpenApi {
swagger: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiContact.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#contactObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#contactObject
*/
export interface OpenApiContact {
name?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiExample.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#exampleObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#exampleObject
*/
export interface OpenApiExample {
[mimetype: string]: any;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiExternalDocs.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#externalDocumentationObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#externalDocumentationObject
*/
export interface OpenApiExternalDocs {
description?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiHeader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Dictionary } from '../../../utils/types';
import type { OpenApiItems } from './OpenApiItems';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#headerObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#headerObject
*/
export interface OpenApiHeader {
description?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiInfo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { OpenApiContact } from './OpenApiContact';
import type { OpenApiLicense } from './OpenApiLicense';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#infoObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#infoObject
*/
export interface OpenApiInfo {
title: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiItems.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { WithEnumExtension } from './Extensions/WithEnumExtension';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#itemsObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#itemsObject
*/
export interface OpenApiItems extends WithEnumExtension {
type?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiLicense.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#licenseObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#licenseObject
*/
export interface OpenApiLicense {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiOperation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { OpenApiResponses } from './OpenApiResponses';
import type { OpenApiSecurityRequirement } from './OpenApiSecurityRequirement';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#operationObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#operationObject
*/
export interface OpenApiOperation {
tags?: string[];
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiParameter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { OpenApiReference } from './OpenApiReference';
import type { OpenApiSchema } from './OpenApiSchema';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameterObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#parameterObject
*/
export interface OpenApiParameter extends OpenApiReference, WithEnumExtension, WithNullableExtension {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiPath.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OpenApiParameter } from './OpenApiParameter';
import type { OpenApiReference } from './OpenApiReference';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathItemObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#pathItemObject
*/
export interface OpenApiPath extends OpenApiReference {
get?: OpenApiOperation;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiReference.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#referenceObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#referenceObject
*/
export interface OpenApiReference {
$ref?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiResponse.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { OpenApiReference } from './OpenApiReference';
import type { OpenApiSchema } from './OpenApiSchema';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#responseObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#responseObject
*/
export interface OpenApiResponse extends OpenApiReference {
description: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiResponses.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { OpenApiResponse } from './OpenApiResponse';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#responsesObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#responsesObject
*/
export interface OpenApiResponses {
default?: OpenApiResponse;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiSchema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { OpenApiReference } from './OpenApiReference';
import type { OpenApiXml } from './OpenApiXml';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schemaObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#schemaObject
*/
export interface OpenApiSchema extends OpenApiReference, WithEnumExtension, WithNullableExtension {
title?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiSecurityRequirement.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#securityRequirementObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#securityRequirementObject
*/
export interface OpenApiSecurityRequirement {
[key: string]: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiSecurityScheme.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Dictionary } from '../../../utils/types';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#securitySchemeObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#securitySchemeObject
*/
export interface OpenApiSecurityScheme {
type: 'basic' | 'apiKey' | 'oauth2';
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiTag.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { OpenApiExternalDocs } from './OpenApiExternalDocs';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#tagObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#tagObject
*/
export interface OpenApiTag {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v2/interfaces/OpenApiXml.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#xmlObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#xmlObject
*/
export interface OpenApiXml {
name?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { OpenApiServer } from './OpenApiServer';
import type { OpenApiTag } from './OpenApiTag';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md
*/
export interface OpenApi {
openapi: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiCallback.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { OpenApiPath } from './OpenApiPath';
import type { OpenApiReference } from './OpenApiReference';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#callbackObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#callbackObject
*/
export interface OpenApiCallback extends OpenApiReference {
[key: string]: OpenApiPath;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiComponents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { OpenApiSchema } from './OpenApiSchema';
import type { OpenApiSecurityScheme } from './OpenApiSecurityScheme';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#componentsObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#componentsObject
*/
export interface OpenApiComponents {
schemas?: Dictionary<OpenApiSchema>;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiContact.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#contactObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#contactObject
*/
export interface OpenApiContact {
name?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiDiscriminator.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Dictionary } from '../../../utils/types';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#discriminatorObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#discriminatorObject
*/
export interface OpenApiDiscriminator {
propertyName: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiEncoding.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Dictionary } from '../../../utils/types';
import type { OpenApiHeader } from './OpenApiHeader';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#encodingObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#encodingObject
*/
export interface OpenApiEncoding {
contentType?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiExample.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { OpenApiReference } from './OpenApiReference';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#exampleObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#exampleObject
*/
export interface OpenApiExample extends OpenApiReference {
summary?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiExternalDocs.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#externalDocumentationObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#externalDocumentationObject
*/
export interface OpenApiExternalDocs {
description?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiHeader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { OpenApiReference } from './OpenApiReference';
import type { OpenApiSchema } from './OpenApiSchema';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#headerObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#headerObject
*/
export interface OpenApiHeader extends OpenApiReference {
description?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiInfo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { OpenApiContact } from './OpenApiContact';
import type { OpenApiLicense } from './OpenApiLicense';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#infoObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#infoObject
*/
export interface OpenApiInfo {
title: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiLicense.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#licenseObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#licenseObject
*/
export interface OpenApiLicense {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiLink.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OpenApiReference } from './OpenApiReference';
import type { OpenApiServer } from './OpenApiServer';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#linkObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#linkObject
*/
export interface OpenApiLink extends OpenApiReference {
operationRef?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiMediaType.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { OpenApiReference } from './OpenApiReference';
import type { OpenApiSchema } from './OpenApiSchema';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#mediaTypeObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#mediaTypeObject
*/
export interface OpenApiMediaType extends OpenApiReference {
schema?: OpenApiSchema;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiOAuthFlow.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Dictionary } from '../../../utils/types';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#oauthFlowObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#oauthFlowObject
*/
export interface OpenApiOAuthFlow {
authorizationUrl: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiOAuthFlows.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { OpenApiOAuthFlow } from './OpenApiOAuthFlow';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#oauthFlowsObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#oauthFlowsObject
*/
export interface OpenApiOAuthFlows {
implicit?: OpenApiOAuthFlow;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiOperation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { OpenApiSecurityRequirement } from './OpenApiSecurityRequirement';
import type { OpenApiServer } from './OpenApiServer';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#operationObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#operationObject
*/
export interface OpenApiOperation {
tags?: string[];
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiParameter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { OpenApiReference } from './OpenApiReference';
import type { OpenApiSchema } from './OpenApiSchema';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#parameterObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#parameterObject
*/
export interface OpenApiParameter extends OpenApiReference {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiPath.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OpenApiParameter } from './OpenApiParameter';
import type { OpenApiServer } from './OpenApiServer';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#pathItemObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#pathItemObject
*/
export interface OpenApiPath {
summary?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiPaths.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { OpenApiPath } from './OpenApiPath';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#pathsObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#pathsObject
*/
export interface OpenApiPaths {
[path: string]: OpenApiPath;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiReference.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#referenceObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#referenceObject
*/
export interface OpenApiReference {
$ref?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/openApi/v3/interfaces/OpenApiRequestBody.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OpenApiMediaType } from './OpenApiMediaType';
import type { OpenApiReference } from './OpenApiReference';

/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#requestBodyObject
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#requestBodyObject
*/
export interface OpenApiRequestBody extends OpenApiReference {
description?: string;
Expand Down
Loading

0 comments on commit 1e04c97

Please sign in to comment.