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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion

README.md

Lines changed: 2 additions & 2 deletions

samples/spec/v3.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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;

0 commit comments

Comments
 (0)