Skip to content

Commit 861f7fe

Browse files
committed
add glob description, enums and examples
1 parent 01f119b commit 861f7fe

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/tools/apify-properties.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,26 @@ export function addGlobsProperties(property: ISchemaProperties): ISchemaProperti
6161
glob: {
6262
type: 'string',
6363
title: 'Glob',
64-
description: 'Glob pattern string',
64+
description: `Glob pattern string. Globs are patterns that specify sets of URLs using wildcards, such as * (matches any character except / one or more times), ** (matches any character one or more times), ? (matches any character), or [abc] (matches selected characters).`,
65+
examples: [
66+
'http://www.example.com/pages/*',
67+
],
6568
},
6669
method: {
6770
type: 'string',
6871
title: 'HTTP Method',
6972
description: 'HTTP method for the request',
73+
enum: [
74+
'GET',
75+
'POST',
76+
'PUT',
77+
'DELETE',
78+
'PATCH',
79+
'HEAD',
80+
'OPTIONS',
81+
'CONNECT',
82+
'TRACE',
83+
],
7084
},
7185
payload: {
7286
type: 'string',

0 commit comments

Comments
 (0)