Update route-name.ejs #929
Open
Annotations
10 errors
tests/extended.test.ts#L45
Error: Snapshot `extended > 'up-banking' 1` mismatched
- Expected
+ Received
@@ -9,403 +9,403 @@
* ---------------------------------------------------------------
*/
/** Provides information about an Up bank account. */
export interface AccountResource {
- attributes: {
- /** The bank account type of this account. */
- accountType: AccountTypeEnum;
- /**
- * The available balance of the account, taking into account any amounts
- * that are currently on hold.
- */
- balance: MoneyObject;
- /**
- * The date-time at which this account was first opened.
- * @Format date-time
- */
- createdAt: string;
- /** The name associated with the account in the Up application. */
- displayName: string;
- };
- /** The unique identifier for this account. */
- id: string;
- links?: {
- /** The canonical link to this resource within the API. */
- self: string;
- };
- relationships: {
- transactions: {
- links?: {
- /** The link to retrieve the related resource(s) in this relationship. */
- related: string;
+ attributes: {
+ /** The bank account type of this account. */
+ accountType: AccountTypeEnum;
+ /**
+ * The available balance of the account, taking into account any amounts
+ * that are currently on hold.
+ */
+ balance: MoneyObject;
+ /**
+ * The date-time at which this account was first opened.
+ * @Format date-time
+ */
+ createdAt: string;
+ /** The name associated with the account in the Up application. */
+ displayName: string;
+ };
+ /** The unique identifier for this account. */
+ id: string;
+ links?: {
+ /** The canonical link to this resource within the API. */
+ self: string;
+ };
+ relationships: {
+ transactions: {
+ links?: {
+ /** The link to retrieve the related resource(s) in this relationship. */
+ related: string;
+ };
};
};
- };
- /** The type of this resource: `accounts` */
- type: string;
+ /** The type of this resource: `accounts` */
+ type: string;
}
/**
* Specifies the type of bank account. Currently returned values are `SAVER`
* and `TRANSACTIONAL`.
*/
export enum AccountTypeEnum {
- SAVER = "SAVER",
- TRANSACTIONAL = "TRANSACTIONAL",
+ SAVER = "SAVER",
+ TRANSACTIONAL = "TRANSACTIONAL",
}
export type AccountsDetailData = GetAccountResponse;
export type AccountsListData = ListAccountsResponse;
export interface AccountsListParams {
- /**
- * The number of records to return in each page.
- * @example 30
- */
- "page[size]"?: number;
+ /**
+ * The number of records to return in each page.
+ * @example 30
+ */
+ "page[size]"?: number;
}
/**
* Provides information about an instant reimbursement in the form of
* cashback.
*/
export interface CashbackObject {
- /** The total amount of cashback paid, represented as a positive value. */
- amount: MoneyObject;
- /** A brief description of why this cashback was paid. */
- description: string;
+ /** The total amount of cashback paid, represented as a positive value. */
+ amount: MoneyObject;
+ /** A brief description of why this cashback was paid. */
+ description: string;
}
export type CategoriesDetailData = GetCategoryResponse;
export type CategoriesListData = ListCategoriesResponse;
export interface CategoriesListParams {
- /**
- * The unique identifier of a parent category for which to
- * return only its children. Providing an invalid category
- * identifier results in a `404` response.
- * @example "good-life"
- */
- "filter[parent]"?: string;
+ /**
+ * The unique identifier of a parent category for which to
+ * return only its children. Providing an invalid category
+ * identifier results in a `404` response.
+ * @example "good-life"
+ */
+ "filter[parent]"?: string;
}
/** Provides information about a category and its ancestry. */
export interface CategoryResource {
- attributes: {
- /** The name of this category as seen in the Up application. */
- name:
|
tests/extended.test.ts#L45
Error: Snapshot `extended > 'furkot-example' 1` mismatched
- Expected
+ Received
@@ -8,336 +8,336 @@
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
* ---------------------------------------------------------------
*/
export interface Step {
- /** address of the stop */
+ /** address of the stop */
- address?: string;
+ address?: string;
- /**
+ /**
- * arrival at the stop in its local timezone as YYYY-MM-DDThh:mm
+ * arrival at the stop in its local timezone as YYYY-MM-DDThh:mm
- * @Format date-time
+ * @Format date-time
- */
+ */
- arrival?: string;
+ arrival?: string;
- /** geographical coordinates of the stop */
+ /** geographical coordinates of the stop */
- coordinates?: {
+ coordinates?: {
- /**
+ /**
- * latitude
+ * latitude
- * @Format float
+ * @Format float
- */
+ */
- lat?: number;
+ lat?: number;
- /**
+ /**
- * longitude
+ * longitude
- * @Format float
+ * @Format float
- */
+ */
- lon?: number;
+ lon?: number;
- };
+ };
- /**
+ /**
- * departure from the stop in its local timezone as YYYY-MM-DDThh:mm
+ * departure from the stop in its local timezone as YYYY-MM-DDThh:mm
- * @Format date-time
+ * @Format date-time
- */
+ */
- departure?: string;
+ departure?: string;
- /** name of the stop */
+ /** name of the stop */
- name?: string;
+ name?: string;
- /**
+ /**
- * number of nights
+ * number of nights
- * @Format int64
+ * @Format int64
- */
+ */
- nights?: number;
+ nights?: number;
- /** route leading to the stop */
+ /** route leading to the stop */
- route?: {
+ route?: {
- /**
+ /**
- * route distance in meters
+ * route distance in meters
- * @Format int64
+ * @Format int64
- */
+ */
- distance?: number;
+ distance?: number;
- /**
+ /**
- * route duration in seconds
+ * route duration in seconds
- * @Format int64
+ * @Format int64
- */
+ */
- duration?: number;
+ duration?: number;
- /** travel mode */
+ /** travel mode */
- mode?: StepModeEnum;
+ mode?: StepModeEnum;
- /** route path compatible with Google polyline encoding algorithm */
+ /** route path compatible with Google polyline encoding algorithm */
- polyline?: string;
+ polyline?: string;
- };
+ };
- /** url of the page with more information about the stop */
+ /** url of the page with more information about the stop */
- url?: string;
+ url?: string;
}
/** travel mode */
export enum StepModeEnum {
- Car = "car",
+ Car = "car",
- Motorcycle = "motorcycle",
+ Motorcycle = "motorcycle",
- Bicycle = "bicycle",
+ Bicycle = "bicycle",
- Walk = "walk",
+ Walk = "walk",
- Other = "other",
+ Other = "other",
}
- export type StopDetailData = Step[];
+ export type StopListData = Step[];
export interface Trip {
- /**
+ /**
- * begin of the trip in its local timezone as YYYY-MM-DDThh:mm
+ * begin of the trip in its local timezone as YYYY-MM-DDThh:mm
- * @Format date-time
+ * @Format date-time
- */
+ */
- begin?: string;
+ begin?: string;
- /** description of the trip (truncated to 200 characters) */
+ /** description of the trip (truncated to 200 characters) */
- description?: string;
+ description?: string;
- /**
+ /**
- * end of the trip in its local timezone as YYYY-MM-DDThh:mm
+ * end of the trip in its local timezone as YYYY-MM-DDThh:mm
- * @Format date-time
+ * @Format date-time
- */
+ */
- end?: string;
+ end?: string;
- /** Unique ID of the trip */
+ /** Unique ID of the trip */
- id?: string;
+ id?: string;
- /** name of the trip */
+ /** name of the trip */
- name?: string;
+ name?: string;
}
export type TripListData = Trip[];
export namespace Trip {
- /**
+ /**
- * @description list stops for a trip identified by {trip_id}
+ * @description list stops for a trip identified by {trip_id}
- * @name StopDetail
- * @request GET:/trip/{trip_id}/stop
+ * @name StopList
+ * @request GET:/trip/{
|
tests/simple.test.ts#L38
Error: Snapshot `simple > 'up-banking' 1` mismatched
- Expected
+ Received
@@ -9,594 +9,594 @@
* ---------------------------------------------------------------
*/
/** Provides information about an Up bank account. */
export interface AccountResource {
- attributes: {
- /** The bank account type of this account. */
- accountType: AccountTypeEnum;
- /**
- * The available balance of the account, taking into account any amounts
- * that are currently on hold.
- */
- balance: MoneyObject;
- /**
- * The date-time at which this account was first opened.
- * @Format date-time
- */
- createdAt: string;
- /** The name associated with the account in the Up application. */
- displayName: string;
- };
- /** The unique identifier for this account. */
- id: string;
- links?: {
- /** The canonical link to this resource within the API. */
- self: string;
- };
- relationships: {
- transactions: {
- links?: {
- /** The link to retrieve the related resource(s) in this relationship. */
- related: string;
+ attributes: {
+ /** The bank account type of this account. */
+ accountType: AccountTypeEnum;
+ /**
+ * The available balance of the account, taking into account any amounts
+ * that are currently on hold.
+ */
+ balance: MoneyObject;
+ /**
+ * The date-time at which this account was first opened.
+ * @Format date-time
+ */
+ createdAt: string;
+ /** The name associated with the account in the Up application. */
+ displayName: string;
+ };
+ /** The unique identifier for this account. */
+ id: string;
+ links?: {
+ /** The canonical link to this resource within the API. */
+ self: string;
+ };
+ relationships: {
+ transactions: {
+ links?: {
+ /** The link to retrieve the related resource(s) in this relationship. */
+ related: string;
+ };
};
};
- };
- /** The type of this resource: `accounts` */
- type: string;
+ /** The type of this resource: `accounts` */
+ type: string;
}
/**
* Specifies the type of bank account. Currently returned values are `SAVER`
* and `TRANSACTIONAL`.
*/
export enum AccountTypeEnum {
- SAVER = "SAVER",
- TRANSACTIONAL = "TRANSACTIONAL",
+ SAVER = "SAVER",
+ TRANSACTIONAL = "TRANSACTIONAL",
}
/**
* Provides information about an instant reimbursement in the form of
* cashback.
*/
export interface CashbackObject {
- /** The total amount of cashback paid, represented as a positive value. */
- amount: MoneyObject;
- /** A brief description of why this cashback was paid. */
- description: string;
+ /** The total amount of cashback paid, represented as a positive value. */
+ amount: MoneyObject;
+ /** A brief description of why this cashback was paid. */
+ description: string;
}
/** Provides information about a category and its ancestry. */
export interface CategoryResource {
- attributes: {
- /** The name of this category as seen in the Up application. */
- name: string;
- };
- /**
- * The unique identifier for this category. This is a human-readable but
- * URL-safe value.
- */
- id: string;
- links?: {
- /** The canonical link to this resource within the API. */
- self: string;
- };
- relationships: {
- children: {
- data: {
- /** The unique identifier of the resource within its type. */
- id: string;
- /** The type of this resource: `categories` */
- type: string;
- }[];
- links?: {
- /** The link to retrieve the related resource(s) in this relationship. */
- related: string;
- };
+ attributes: {
+ /** The name of this category as seen in the Up application. */
+ name: string;
};
- parent: {
- data: {
- /** The unique identifier of the resource within its type. */
- id: string;
- /** The type of this resource: `categories` */
- type: string;
- } | null;
- links?: {
- /** The link to retrieve the related resource(s) in this relationship. */
- re
|
tests/simple.test.ts#L38
Error: Snapshot `simple > 'furkot-example' 1` mismatched
- Expected
+ Received
@@ -8,290 +8,290 @@
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
* ---------------------------------------------------------------
*/
export interface Step {
- /** address of the stop */
+ /** address of the stop */
- address?: string;
+ address?: string;
- /**
+ /**
- * arrival at the stop in its local timezone as YYYY-MM-DDThh:mm
+ * arrival at the stop in its local timezone as YYYY-MM-DDThh:mm
- * @Format date-time
+ * @Format date-time
- */
+ */
- arrival?: string;
+ arrival?: string;
- /** geographical coordinates of the stop */
+ /** geographical coordinates of the stop */
- coordinates?: {
+ coordinates?: {
- /**
+ /**
- * latitude
+ * latitude
- * @Format float
+ * @Format float
- */
+ */
- lat?: number;
+ lat?: number;
- /**
+ /**
- * longitude
+ * longitude
- * @Format float
+ * @Format float
- */
+ */
- lon?: number;
+ lon?: number;
- };
+ };
- /**
+ /**
- * departure from the stop in its local timezone as YYYY-MM-DDThh:mm
+ * departure from the stop in its local timezone as YYYY-MM-DDThh:mm
- * @Format date-time
+ * @Format date-time
- */
+ */
- departure?: string;
+ departure?: string;
- /** name of the stop */
+ /** name of the stop */
- name?: string;
+ name?: string;
- /**
+ /**
- * number of nights
+ * number of nights
- * @Format int64
+ * @Format int64
- */
+ */
- nights?: number;
+ nights?: number;
- /** route leading to the stop */
+ /** route leading to the stop */
- route?: {
+ route?: {
- /**
+ /**
- * route distance in meters
+ * route distance in meters
- * @Format int64
+ * @Format int64
- */
+ */
- distance?: number;
+ distance?: number;
- /**
+ /**
- * route duration in seconds
+ * route duration in seconds
- * @Format int64
+ * @Format int64
- */
+ */
- duration?: number;
+ duration?: number;
- /** travel mode */
+ /** travel mode */
- mode?: "car" | "motorcycle" | "bicycle" | "walk" | "other";
+ mode?: "car" | "motorcycle" | "bicycle" | "walk" | "other";
- /** route path compatible with Google polyline encoding algorithm */
+ /** route path compatible with Google polyline encoding algorithm */
- polyline?: string;
+ polyline?: string;
- };
+ };
- /** url of the page with more information about the stop */
+ /** url of the page with more information about the stop */
- url?: string;
+ url?: string;
}
export interface Trip {
- /**
+ /**
- * begin of the trip in its local timezone as YYYY-MM-DDThh:mm
+ * begin of the trip in its local timezone as YYYY-MM-DDThh:mm
- * @Format date-time
+ * @Format date-time
- */
+ */
- begin?: string;
+ begin?: string;
- /** description of the trip (truncated to 200 characters) */
+ /** description of the trip (truncated to 200 characters) */
- description?: string;
+ description?: string;
- /**
+ /**
- * end of the trip in its local timezone as YYYY-MM-DDThh:mm
+ * end of the trip in its local timezone as YYYY-MM-DDThh:mm
- * @Format date-time
+ * @Format date-time
- */
+ */
- end?: string;
+ end?: string;
- /** Unique ID of the trip */
+ /** Unique ID of the trip */
- id?: string;
+ id?: string;
- /** name of the trip */
+ /** name of the trip */
- name?: string;
+ name?: string;
}
export type QueryParamsType = Record<string | number, any>;
export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
export interface FullRequestParams extends Omit<RequestInit, "body"> {
- /** set parameter to `true` for call `securityWorker` for this request */
+ /** set parameter to `true` for call `securityWorker` for this request */
- secure?: boolean;
+ secure?: boolean;
- /** request path */
+ /** request path */
- path: string;
+ path: string;
- /** content type of request body */
+ /** content type of request body */
- type?: ContentType;
+ type
|
tests/spec/axios/basic.test.ts#L34
Error: Snapshot `basic > --axios option 1` mismatched
- Expected
+ Received
@@ -9,288 +9,170 @@
* ---------------------------------------------------------------
*/
/** A user or organization */
export interface Actor {
- avatar_url?: string;
- bio?: string;
- /** The website URL from the profile page */
- blog?: string;
- collaborators?: number;
- company?: string;
- /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
- created_at?: string;
- disk_usage?: number;
- /** Note: The returned email is the user’s publicly visible email address (or null if the user has not specified a public email address in their profile). */
- email?: string;
- followers?: number;
- followers_url?: string;
- following?: number;
- following_url?: string;
- gists_url?: string;
- gravatar_id?: string;
- hireable?: boolean;
- html_url?: string;
- id?: number;
- location?: string;
- /** The account username */
- login?: string;
- /** The full account name */
- name?: string;
- organizations_url?: string;
- owned_private_repos?: number;
- plan?: {
+ avatar_url?: string;
+ bio?: string;
+ /** The website URL from the profile page */
+ blog?: string;
collaborators?: number;
+ company?: string;
+ /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
+ created_at?: string;
+ disk_usage?: number;
+ /** Note: The returned email is the user’s publicly visible email address (or null if the user has not specified a public email address in their profile). */
+ email?: string;
+ followers?: number;
+ followers_url?: string;
+ following?: number;
+ following_url?: string;
+ gists_url?: string;
+ gravatar_id?: string;
+ hireable?: boolean;
+ html_url?: string;
+ id?: number;
+ location?: string;
+ /** The account username */
+ login?: string;
+ /** The full account name */
name?: string;
- private_repos?: number;
- space?: number;
- };
- private_gists?: number;
- public_gists?: number;
- public_repos?: number;
- starred_url?: string;
- subscriptions_url?: string;
- total_private_repos?: number;
- type?: "User" | "Organization";
- /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
- updated_at?: string;
- url?: string;
+ organizations_url?: string;
+ owned_private_repos?: number;
+ plan?: {
+ collaborators?: number;
+ name?: string;
+ private_repos?: number;
+ space?: number;
+ };
+ private_gists?: number;
+ public_gists?: number;
+ public_repos?: number;
+ starred_url?: string;
+ subscriptions_url?: string;
+ total_private_repos?: number;
+ type?: "User" | "Organization";
+ /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
+ updated_at?: string;
+ url?: string;
}
export interface Asset {
- content_type?: string;
- created_at?: string;
- download_count?: number;
- id?: number;
- label?: string;
- name?: string;
- size?: number;
- state?: string;
- updated_at?: string;
- /** A GitHub user */
- uploader?: User;
- url?: string;
+ content_type?: string;
+ created_at?: string;
+ download_count?: number;
+ id?: number;
+ label?: string;
+ name?: string;
+ size?: number;
+ state?: string;
+ updated_at?: string;
+ /** A GitHub user */
+ uploader?: User;
+ url?: string;
}
export interface AssetPatch {
- label?: string;
- name: string;
+ label?: string;
+ name: string;
}
export type Assets = Asset[];
export type Assignees = User[];
export interface Blob {
- content?: string;
- encoding?: "utf-8" | "base64";
- sha?: string;
- size?: number;
+ content?: string;
+ encoding?: "utf-8" | "base64";
+ sha?: string;
+ size?: number;
}
export interface Blobs {
- sha?: string;
+ sha?: string;
}
export interface Branch {
- _links?: {
- html?: string;
- self?: string;
- };
- commit?: {
- /** A GitHub user */
- author?: User;
+ _links?: {
+ html?: string;
+ self?: string;
+ };
commit?: {
- author?: {
- /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
- date?: string;
- email?: string;
- name?: string;
- };
- committer?: {
- /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
-
|
tests/spec/axiosSingleHttpClient/basic.test.ts#L35
Error: Snapshot `basic > --axios --single-http-client 1` mismatched
- Expected
+ Received
@@ -9,288 +9,170 @@
* ---------------------------------------------------------------
*/
/** A user or organization */
export interface Actor {
- avatar_url?: string;
- bio?: string;
- /** The website URL from the profile page */
- blog?: string;
- collaborators?: number;
- company?: string;
- /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
- created_at?: string;
- disk_usage?: number;
- /** Note: The returned email is the user’s publicly visible email address (or null if the user has not specified a public email address in their profile). */
- email?: string;
- followers?: number;
- followers_url?: string;
- following?: number;
- following_url?: string;
- gists_url?: string;
- gravatar_id?: string;
- hireable?: boolean;
- html_url?: string;
- id?: number;
- location?: string;
- /** The account username */
- login?: string;
- /** The full account name */
- name?: string;
- organizations_url?: string;
- owned_private_repos?: number;
- plan?: {
+ avatar_url?: string;
+ bio?: string;
+ /** The website URL from the profile page */
+ blog?: string;
collaborators?: number;
+ company?: string;
+ /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
+ created_at?: string;
+ disk_usage?: number;
+ /** Note: The returned email is the user’s publicly visible email address (or null if the user has not specified a public email address in their profile). */
+ email?: string;
+ followers?: number;
+ followers_url?: string;
+ following?: number;
+ following_url?: string;
+ gists_url?: string;
+ gravatar_id?: string;
+ hireable?: boolean;
+ html_url?: string;
+ id?: number;
+ location?: string;
+ /** The account username */
+ login?: string;
+ /** The full account name */
name?: string;
- private_repos?: number;
- space?: number;
- };
- private_gists?: number;
- public_gists?: number;
- public_repos?: number;
- starred_url?: string;
- subscriptions_url?: string;
- total_private_repos?: number;
- type?: "User" | "Organization";
- /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
- updated_at?: string;
- url?: string;
+ organizations_url?: string;
+ owned_private_repos?: number;
+ plan?: {
+ collaborators?: number;
+ name?: string;
+ private_repos?: number;
+ space?: number;
+ };
+ private_gists?: number;
+ public_gists?: number;
+ public_repos?: number;
+ starred_url?: string;
+ subscriptions_url?: string;
+ total_private_repos?: number;
+ type?: "User" | "Organization";
+ /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
+ updated_at?: string;
+ url?: string;
}
export interface Asset {
- content_type?: string;
- created_at?: string;
- download_count?: number;
- id?: number;
- label?: string;
- name?: string;
- size?: number;
- state?: string;
- updated_at?: string;
- /** A GitHub user */
- uploader?: User;
- url?: string;
+ content_type?: string;
+ created_at?: string;
+ download_count?: number;
+ id?: number;
+ label?: string;
+ name?: string;
+ size?: number;
+ state?: string;
+ updated_at?: string;
+ /** A GitHub user */
+ uploader?: User;
+ url?: string;
}
export interface AssetPatch {
- label?: string;
- name: string;
+ label?: string;
+ name: string;
}
export type Assets = Asset[];
export type Assignees = User[];
export interface Blob {
- content?: string;
- encoding?: "utf-8" | "base64";
- sha?: string;
- size?: number;
+ content?: string;
+ encoding?: "utf-8" | "base64";
+ sha?: string;
+ size?: number;
}
export interface Blobs {
- sha?: string;
+ sha?: string;
}
export interface Branch {
- _links?: {
- html?: string;
- self?: string;
- };
- commit?: {
- /** A GitHub user */
- author?: User;
+ _links?: {
+ html?: string;
+ self?: string;
+ };
commit?: {
- author?: {
- /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
- date?: string;
- email?: string;
- name?: string;
- };
- committer?: {
- /** ISO 8601 format: YYYY-MM-DDT
|
tests/spec/js/basic.test.ts#L34
Error: Snapshot `basic > --js --axios 1` mismatched
- Expected
+ Received
@@ -247,14 +247,14 @@
...params,
}),
/**
* @description List comments on a gist.
*
- * @name CommentsDetail
+ * @name CommentsList
* @request GET:/gists/{id}/comments
*/
- commentsDetail: (id, params = {}) =>
+ commentsList: (id, params = {}) =>
this.request({
path: `/gists/${id}/comments`,
method: "GET",
format: "json",
...params,
@@ -286,16 +286,14 @@
...params,
}),
/**
* @description Get a single comment.
*
- * @name CommentsDetail2
+ * @name CommentsDetail
* @request GET:/gists/{id}/comments/{commentId}
- * @originalname commentsDetail
- * @Duplicate
*/
- commentsDetail2: (id, commentId, params = {}) =>
+ commentsDetail: (id, commentId, params = {}) =>
this.request({
path: `/gists/${id}/comments/${commentId}`,
method: "GET",
format: "json",
...params,
@@ -340,14 +338,14 @@
...params,
}),
/**
* @description Check if a gist is starred.
*
- * @name StarDetail
+ * @name StarList
* @request GET:/gists/{id}/star
*/
- starDetail: (id, params = {}) =>
+ starList: (id, params = {}) =>
this.request({
path: `/gists/${id}/star`,
method: "GET",
...params,
}),
@@ -514,14 +512,14 @@
};
networks = {
/**
* @description List public events for a network of repositories.
*
- * @name EventsDetail
+ * @name EventsList
* @request GET:/networks/{owner}/{repo}/events
*/
- eventsDetail: (owner, repo, params = {}) =>
+ eventsList: (owner, repo, params = {}) =>
this.request({
path: `/networks/${owner}/${repo}/events`,
method: "GET",
format: "json",
...params,
@@ -593,14 +591,14 @@
...params,
}),
/**
* @description Get a Thread Subscription.
*
- * @name ThreadsSubscriptionDetail
+ * @name ThreadsSubscriptionList
* @request GET:/notifications/threads/{id}/subscription
*/
- threadsSubscriptionDetail: (id, params = {}) =>
+ threadsSubscriptionList: (id, params = {}) =>
this.request({
path: `/notifications/threads/${id}/subscription`,
method: "GET",
format: "json",
...params,
@@ -651,41 +649,41 @@
...params,
}),
/**
* @description List public events for an organization.
*
- * @name EventsDetail
+ * @name EventsList
* @request GET:/orgs/{org}/events
*/
- eventsDetail: (org, params = {}) =>
+ eventsList: (org, params = {}) =>
this.request({
path: `/orgs/${org}/events`,
method: "GET",
format: "json",
...params,
}),
/**
* @description List issues. List all issues for a given organization for the authenticated user.
*
- * @name IssuesDetail
+ * @name IssuesList
* @request GET:/orgs/{org}/issues
*/
- issuesDetail: (org, query, params = {}) =>
+ issuesList: (org, query, params = {}) =>
this.request({
path: `/orgs/${org}/issues`,
method: "GET",
query: query,
format: "json",
...params,
}),
/**
* @description Members list. List all users who are members of an organization. A member is a user tha belongs to at least 1 team in the organization. If the authenticated user is also an owner of this organization then both concealed and public members will be returned. If the requester is not an owner of the organization the query will be redirected to the public members list.
*
- * @name MembersDetail
+ * @name MembersList
* @request GET:/orgs/{org}/members
*/
- membersDetail: (org, params = {}) =>
+ membersList: (org, param
|
tests/spec/jsAxios/basic.test.ts#L33
Error: Snapshot `basic > --js 1` mismatched
- Expected
+ Received
@@ -305,14 +305,14 @@
...params,
}),
/**
* @description List comments on a gist.
*
- * @name CommentsDetail
+ * @name CommentsList
* @request GET:/gists/{id}/comments
*/
- commentsDetail: (id, params = {}) =>
+ commentsList: (id, params = {}) =>
this.request({
path: `/gists/${id}/comments`,
method: "GET",
format: "json",
...params,
@@ -344,16 +344,14 @@
...params,
}),
/**
* @description Get a single comment.
*
- * @name CommentsDetail2
+ * @name CommentsDetail
* @request GET:/gists/{id}/comments/{commentId}
- * @originalname commentsDetail
- * @Duplicate
*/
- commentsDetail2: (id, commentId, params = {}) =>
+ commentsDetail: (id, commentId, params = {}) =>
this.request({
path: `/gists/${id}/comments/${commentId}`,
method: "GET",
format: "json",
...params,
@@ -398,14 +396,14 @@
...params,
}),
/**
* @description Check if a gist is starred.
*
- * @name StarDetail
+ * @name StarList
* @request GET:/gists/{id}/star
*/
- starDetail: (id, params = {}) =>
+ starList: (id, params = {}) =>
this.request({
path: `/gists/${id}/star`,
method: "GET",
...params,
}),
@@ -572,14 +570,14 @@
};
networks = {
/**
* @description List public events for a network of repositories.
*
- * @name EventsDetail
+ * @name EventsList
* @request GET:/networks/{owner}/{repo}/events
*/
- eventsDetail: (owner, repo, params = {}) =>
+ eventsList: (owner, repo, params = {}) =>
this.request({
path: `/networks/${owner}/${repo}/events`,
method: "GET",
format: "json",
...params,
@@ -651,14 +649,14 @@
...params,
}),
/**
* @description Get a Thread Subscription.
*
- * @name ThreadsSubscriptionDetail
+ * @name ThreadsSubscriptionList
* @request GET:/notifications/threads/{id}/subscription
*/
- threadsSubscriptionDetail: (id, params = {}) =>
+ threadsSubscriptionList: (id, params = {}) =>
this.request({
path: `/notifications/threads/${id}/subscription`,
method: "GET",
format: "json",
...params,
@@ -709,41 +707,41 @@
...params,
}),
/**
* @description List public events for an organization.
*
- * @name EventsDetail
+ * @name EventsList
* @request GET:/orgs/{org}/events
*/
- eventsDetail: (org, params = {}) =>
+ eventsList: (org, params = {}) =>
this.request({
path: `/orgs/${org}/events`,
method: "GET",
format: "json",
...params,
}),
/**
* @description List issues. List all issues for a given organization for the authenticated user.
*
- * @name IssuesDetail
+ * @name IssuesList
* @request GET:/orgs/{org}/issues
*/
- issuesDetail: (org, query, params = {}) =>
+ issuesList: (org, query, params = {}) =>
this.request({
path: `/orgs/${org}/issues`,
method: "GET",
query: query,
format: "json",
...params,
}),
/**
* @description Members list. List all users who are members of an organization. A member is a user tha belongs to at least 1 team in the organization. If the authenticated user is also an owner of this organization then both concealed and public members will be returned. If the requester is not an owner of the organization the query will be redirected to the public members list.
*
- * @name MembersDetail
+ * @name MembersList
* @request GET:/orgs/{org}/members
*/
- membersDetail: (org, params = {}) =>
+ membersList: (org, params = {})
|
tests/spec/patch/basic.test.ts#L33
Error: Snapshot `basic > --patch 1` mismatched
- Expected
+ Received
@@ -8,250 +8,146 @@
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
* ---------------------------------------------------------------
*/
export interface Actor {
- avatar_url?: string;
- bio?: string;
- blog?: string;
- collaborators?: number;
- company?: string;
- created_at?: string;
- disk_usage?: number;
- email?: string;
- followers?: number;
- followers_url?: string;
- following?: number;
- following_url?: string;
- gists_url?: string;
- gravatar_id?: string;
- hireable?: boolean;
- html_url?: string;
- id?: number;
- location?: string;
- login?: string;
- name?: string;
- organizations_url?: string;
- owned_private_repos?: number;
- plan?: {
+ avatar_url?: string;
+ bio?: string;
+ blog?: string;
collaborators?: number;
+ company?: string;
+ created_at?: string;
+ disk_usage?: number;
+ email?: string;
+ followers?: number;
+ followers_url?: string;
+ following?: number;
+ following_url?: string;
+ gists_url?: string;
+ gravatar_id?: string;
+ hireable?: boolean;
+ html_url?: string;
+ id?: number;
+ location?: string;
+ login?: string;
name?: string;
- private_repos?: number;
- space?: number;
- };
- private_gists?: number;
- public_gists?: number;
- public_repos?: number;
- starred_url?: string;
- subscriptions_url?: string;
- total_private_repos?: number;
- type?: "User" | "Organization";
- updated_at?: string;
- url?: string;
+ organizations_url?: string;
+ owned_private_repos?: number;
+ plan?: {
+ collaborators?: number;
+ name?: string;
+ private_repos?: number;
+ space?: number;
+ };
+ private_gists?: number;
+ public_gists?: number;
+ public_repos?: number;
+ starred_url?: string;
+ subscriptions_url?: string;
+ total_private_repos?: number;
+ type?: "User" | "Organization";
+ updated_at?: string;
+ url?: string;
}
export interface Asset {
- content_type?: string;
- created_at?: string;
- download_count?: number;
- id?: number;
- label?: string;
- name?: string;
- size?: number;
- state?: string;
- updated_at?: string;
- uploader?: User;
- url?: string;
+ content_type?: string;
+ created_at?: string;
+ download_count?: number;
+ id?: number;
+ label?: string;
+ name?: string;
+ size?: number;
+ state?: string;
+ updated_at?: string;
+ uploader?: User;
+ url?: string;
}
export interface AssetPatch {
- label?: string;
- name: string;
+ label?: string;
+ name: string;
}
export type Assets = Asset[];
export type Assignees = User[];
export interface Blob {
- content?: string;
- encoding?: "utf-8" | "base64";
- sha?: string;
- size?: number;
+ content?: string;
+ encoding?: "utf-8" | "base64";
+ sha?: string;
+ size?: number;
}
export interface Blobs {
- sha?: string;
+ sha?: string;
}
export interface Branch {
- _links?: {
- html?: string;
- self?: string;
- };
- commit?: {
- author?: User;
+ _links?: {
+ html?: string;
+ self?: string;
+ };
commit?: {
- author?: {
- date?: string;
- email?: string;
- name?: string;
- };
- committer?: {
- date?: string;
- email?: string;
- name?: string;
+ author?: User;
+ commit?: {
+ author?: {
+ date?: string;
+ email?: string;
+ name?: string;
+ };
+ committer?: {
+ date?: string;
+ email?: string;
+ name?: string;
+ };
+ message?: string;
+ tree?: {
+ sha?: string;
+ url?: string;
+ };
+ url?: string;
};
- message?: string;
- tree?: {
+ committer?: User;
+ parents?: {
sha?: string;
url?: string;
- };
+ }[];
+ sha?: string;
url?: string;
};
- committer?: User;
- parents?: {
- sha?: string;
- url?: string;
- }[];
- sha?: string;
- url?: string;
- };
- name?: string;
+ name?: string;
}
export type Branches = {
- commit?: {
- sha?: string;
- url?: s
|
tests/spec/routeTypes/basic.test.ts#L34
Error: Snapshot `basic > --route-types 1` mismatched
- Expected
+ Received
@@ -9,288 +9,170 @@
* ---------------------------------------------------------------
*/
/** A user or organization */
export interface Actor {
- avatar_url?: string;
- bio?: string;
- /** The website URL from the profile page */
- blog?: string;
- collaborators?: number;
- company?: string;
- /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
- created_at?: string;
- disk_usage?: number;
- /** Note: The returned email is the user’s publicly visible email address (or null if the user has not specified a public email address in their profile). */
- email?: string;
- followers?: number;
- followers_url?: string;
- following?: number;
- following_url?: string;
- gists_url?: string;
- gravatar_id?: string;
- hireable?: boolean;
- html_url?: string;
- id?: number;
- location?: string;
- /** The account username */
- login?: string;
- /** The full account name */
- name?: string;
- organizations_url?: string;
- owned_private_repos?: number;
- plan?: {
+ avatar_url?: string;
+ bio?: string;
+ /** The website URL from the profile page */
+ blog?: string;
collaborators?: number;
+ company?: string;
+ /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
+ created_at?: string;
+ disk_usage?: number;
+ /** Note: The returned email is the user’s publicly visible email address (or null if the user has not specified a public email address in their profile). */
+ email?: string;
+ followers?: number;
+ followers_url?: string;
+ following?: number;
+ following_url?: string;
+ gists_url?: string;
+ gravatar_id?: string;
+ hireable?: boolean;
+ html_url?: string;
+ id?: number;
+ location?: string;
+ /** The account username */
+ login?: string;
+ /** The full account name */
name?: string;
- private_repos?: number;
- space?: number;
- };
- private_gists?: number;
- public_gists?: number;
- public_repos?: number;
- starred_url?: string;
- subscriptions_url?: string;
- total_private_repos?: number;
- type?: "User" | "Organization";
- /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
- updated_at?: string;
- url?: string;
+ organizations_url?: string;
+ owned_private_repos?: number;
+ plan?: {
+ collaborators?: number;
+ name?: string;
+ private_repos?: number;
+ space?: number;
+ };
+ private_gists?: number;
+ public_gists?: number;
+ public_repos?: number;
+ starred_url?: string;
+ subscriptions_url?: string;
+ total_private_repos?: number;
+ type?: "User" | "Organization";
+ /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
+ updated_at?: string;
+ url?: string;
}
export interface Asset {
- content_type?: string;
- created_at?: string;
- download_count?: number;
- id?: number;
- label?: string;
- name?: string;
- size?: number;
- state?: string;
- updated_at?: string;
- /** A GitHub user */
- uploader?: User;
- url?: string;
+ content_type?: string;
+ created_at?: string;
+ download_count?: number;
+ id?: number;
+ label?: string;
+ name?: string;
+ size?: number;
+ state?: string;
+ updated_at?: string;
+ /** A GitHub user */
+ uploader?: User;
+ url?: string;
}
export interface AssetPatch {
- label?: string;
- name: string;
+ label?: string;
+ name: string;
}
export type Assets = Asset[];
export type Assignees = User[];
export interface Blob {
- content?: string;
- encoding?: "utf-8" | "base64";
- sha?: string;
- size?: number;
+ content?: string;
+ encoding?: "utf-8" | "base64";
+ sha?: string;
+ size?: number;
}
export interface Blobs {
- sha?: string;
+ sha?: string;
}
export interface Branch {
- _links?: {
- html?: string;
- self?: string;
- };
- commit?: {
- /** A GitHub user */
- author?: User;
+ _links?: {
+ html?: string;
+ self?: string;
+ };
commit?: {
- author?: {
- /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */
- date?: string;
- email?: string;
- name?: string;
+ /** A GitHub user */
+ author?: User;
+ commit?: {
+ author?: {
|
This job failed
Loading