File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -82,16 +82,16 @@ paths:
82
82
properties :
83
83
firstName :
84
84
type : string
85
- x-faker : name .firstName
85
+ x-faker : person .firstName
86
86
lastName :
87
87
type : string
88
- x-faker : name .lastName
88
+ x-faker : person .lastName
89
89
fullName :
90
90
type : string
91
- x-faker : ' {{name .firstName}} {{name .lastName}}'
91
+ x-faker : ' {{person .firstName}} {{person .lastName}}'
92
92
age :
93
93
type : string
94
- x-faker : ' random. number({ "min": 1, "max": 20 })'
94
+ x-faker : ' number.int ({ "min": 1, "max": 20 })'
95
95
96
96
```
97
97
@@ -106,9 +106,9 @@ A JSON response similar to the following would be produced:
106
106
```
107
107
108
108
The _ x-faker_ extension accepts values in 3 forms:
109
- 1 . _ fakerNamespace.method_ . e.g. ` random .uuid`
110
- 2 . _ fakerNamespace.method({ "methodArgs": "in", "json": "format" })_ . e.g. ` random. number({ "max": 100 })`
111
- 3 . A mustache template string making use of the 2 forms above. e.g. ` My name is {{name .firstName}} {{name .lastName}} `
109
+ 1 . _ fakerNamespace.method_ . e.g. ` string .uuid`
110
+ 2 . _ fakerNamespace.method({ "methodArgs": "in", "json": "format" })_ . e.g. ` number.int ({ "max": 100 }) `
111
+ 3 . A mustache template string making use of the 2 forms above. e.g. ` My name is {{person .firstName}} {{person .lastName}} `
112
112
113
113
* NOTE* : To avoid new fake data from being generated on every call, up to 10 responses per endpoint are cached
114
114
based on the incoming query string, request body and headers.
You can’t perform that action at this time.
0 commit comments