Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/basic_schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"properties": {
"message": {
"type": "string",
"example": "Hello, World!"
"example": "Hello, World!",
"pattern": "^([a-zA-Z_][a-zA-Z0-9_-]*:)?([a-zA-Z_][a-zA-Z0-9_-]*/)?([a-zA-Z_][.a-zA-Z0-9_-]*)$"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions examples/basic_schema/single/simpleAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { URL } from 'https://jslib.k6.io/url/1.0.0/index.js'
import http from 'k6/http'
import type { Params, Response } from 'k6/http'
export type GetExample200 = {
/** @pattern ^([a-zA-Z_][a-zA-Z0-9_-]*:)?([a-zA-Z_][a-zA-Z0-9_-]*\/)?([a-zA-Z_][.a-zA-Z0-9_-]*)$ */
message?: string
}

Expand Down
1 change: 1 addition & 0 deletions examples/basic_schema/split/simpleAPI.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
* Service version: 1.0.0
*/
export type GetExample200 = {
/** @pattern ^([a-zA-Z_][a-zA-Z0-9_-]*:)?([a-zA-Z_][a-zA-Z0-9_-]*\/)?([a-zA-Z_][.a-zA-Z0-9_-]*)$ */
message?: string
}
1 change: 1 addition & 0 deletions examples/basic_schema/tags/simpleAPI.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
* Service version: 1.0.0
*/
export type GetExample200 = {
/** @pattern ^([a-zA-Z_][a-zA-Z0-9_-]*:)?([a-zA-Z_][a-zA-Z0-9_-]*\/)?([a-zA-Z_][.a-zA-Z0-9_-]*)$ */
message?: string
}
8 changes: 4 additions & 4 deletions examples/form_data_schema/single/formDataAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ import { URL } from 'https://jslib.k6.io/url/1.0.0/index.js'
import http from 'k6/http'
import type { Params, Response } from 'k6/http'
export type PostUpload400 = {
error?: string
success?: boolean
error?: string
}

export type PostUpload200 = {
message?: string
success?: boolean
message?: string
}

export type PostUploadBody = {
/** Description of the file */
description?: string
/** File to upload */
file: Blob
/** Description of the file */
description?: string
/** User ID associated with the upload */
userId: string
}
Expand Down
8 changes: 4 additions & 4 deletions examples/form_data_schema/split/formDataAPI.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
* Service version: 1.0.0
*/
export type PostUpload400 = {
error?: string
success?: boolean
error?: string
}

export type PostUpload200 = {
message?: string
success?: boolean
message?: string
}

export type PostUploadBody = {
/** Description of the file */
description?: string
/** File to upload */
file: Blob
/** Description of the file */
description?: string
/** User ID associated with the upload */
userId: string
}
8 changes: 4 additions & 4 deletions examples/form_data_schema/tags/formDataAPI.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
* Service version: 1.0.0
*/
export type PostUpload400 = {
error?: string
success?: boolean
error?: string
}

export type PostUpload200 = {
message?: string
success?: boolean
message?: string
}

export type PostUploadBody = {
/** Description of the file */
description?: string
/** File to upload */
file: Blob
/** Description of the file */
description?: string
/** User ID associated with the upload */
userId: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ import { URL } from 'https://jslib.k6.io/url/1.0.0/index.js'
import http from 'k6/http'
import type { Params, Response } from 'k6/http'
export type PostSubmitForm400 = {
error?: string
success?: boolean
error?: string
}

export type PostSubmitForm200 = {
message?: string
success?: boolean
message?: string
}

export type PostSubmitFormBody = {
/** Name of the user */
name: string
/** Age of the user */
age?: number
/** Email address of the user */
email: string
/** Name of the user */
name: string
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
* Service version: 1.0.0
*/
export type PostSubmitForm400 = {
error?: string
success?: boolean
error?: string
}

export type PostSubmitForm200 = {
message?: string
success?: boolean
message?: string
}

export type PostSubmitFormBody = {
/** Name of the user */
name: string
/** Age of the user */
age?: number
/** Email address of the user */
email: string
/** Name of the user */
name: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
* Service version: 1.0.0
*/
export type PostSubmitForm400 = {
error?: string
success?: boolean
error?: string
}

export type PostSubmitForm200 = {
message?: string
success?: boolean
message?: string
}

export type PostSubmitFormBody = {
/** Name of the user */
name: string
/** Age of the user */
age?: number
/** Email address of the user */
email: string
/** Name of the user */
name: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ import { URL, URLSearchParams } from 'https://jslib.k6.io/url/1.0.0/index.js'
import http from 'k6/http'
import type { Params, Response } from 'k6/http'
export type PostSubmitForm400 = {
error?: string
success?: boolean
error?: string
}

export type PostSubmitForm200 = {
message?: string
success?: boolean
message?: string
}

export type PostSubmitFormBody = {
/** Name of the user */
name: string
/** Age of the user */
age?: number
/** Email address of the user */
email: string
/** Name of the user */
name: string
}

export type PostSubmitFormParams = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
* Service version: 1.0.0
*/
export type PostSubmitForm400 = {
error?: string
success?: boolean
error?: string
}

export type PostSubmitForm200 = {
message?: string
success?: boolean
message?: string
}

export type PostSubmitFormBody = {
/** Name of the user */
name: string
/** Age of the user */
age?: number
/** Email address of the user */
email: string
/** Name of the user */
name: string
}

export type PostSubmitFormParams = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
* Service version: 1.0.0
*/
export type PostSubmitForm400 = {
error?: string
success?: boolean
error?: string
}

export type PostSubmitForm200 = {
message?: string
success?: boolean
message?: string
}

export type PostSubmitFormBody = {
/** Name of the user */
name: string
/** Age of the user */
age?: number
/** Email address of the user */
email: string
/** Name of the user */
name: string
}

export type PostSubmitFormParams = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import { URL } from 'https://jslib.k6.io/url/1.0.0/index.js'
import http from 'k6/http'
import type { Params, Response } from 'k6/http'
export type GetItemById200 = {
description?: string
id?: string
name?: string
description?: string
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Service version: 1.0.0
*/
export type GetItemById200 = {
description?: string
id?: string
name?: string
description?: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Service version: 1.0.0
*/
export type GetItemById200 = {
description?: string
id?: string
name?: string
description?: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import { URL, URLSearchParams } from 'https://jslib.k6.io/url/1.0.0/index.js'
import http from 'k6/http'
import type { Params, Response } from 'k6/http'
export type CreateExampleData201 = {
/** The data from the body */
data?: string
/** The user ID from the query parameter */
userId?: string
/** The active status from the query parameter */
isActive?: boolean
/** The data from the body */
data?: string
/** Response status */
status?: string
/** The user ID from the query parameter */
userId?: string
}

export type CreateExampleDataBody = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
* Service version: 1.0.0
*/
export type CreateExampleData201 = {
/** The data from the body */
data?: string
/** The user ID from the query parameter */
userId?: string
/** The active status from the query parameter */
isActive?: boolean
/** The data from the body */
data?: string
/** Response status */
status?: string
/** The user ID from the query parameter */
userId?: string
}

export type CreateExampleDataBody = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
* Service version: 1.0.0
*/
export type CreateExampleData201 = {
/** The data from the body */
data?: string
/** The user ID from the query parameter */
userId?: string
/** The active status from the query parameter */
isActive?: boolean
/** The data from the body */
data?: string
/** Response status */
status?: string
/** The user ID from the query parameter */
userId?: string
}

export type CreateExampleDataBody = {
Expand Down
4 changes: 2 additions & 2 deletions examples/query_params_schema/single/exampleAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import { URL, URLSearchParams } from 'https://jslib.k6.io/url/1.0.0/index.js'
import http from 'k6/http'
import type { Params, Response } from 'k6/http'
export type GetExampleData200 = {
name?: string
age?: number
date?: string
isActive?: boolean
name?: string
tags?: string[]
date?: string
}

export type GetExampleDataParams = {
Expand Down
4 changes: 2 additions & 2 deletions examples/query_params_schema/split/exampleAPI.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
* Service version: 1.0.0
*/
export type GetExampleData200 = {
name?: string
age?: number
date?: string
isActive?: boolean
name?: string
tags?: string[]
date?: string
}

export type GetExampleDataParams = {
Expand Down
4 changes: 2 additions & 2 deletions examples/query_params_schema/tags/exampleAPI.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
* Service version: 1.0.0
*/
export type GetExampleData200 = {
name?: string
age?: number
date?: string
isActive?: boolean
name?: string
tags?: string[]
date?: string
}

export type GetExampleDataParams = {
Expand Down
Loading
Loading