Skip to content

Commit 7d4d0dc

Browse files
committed
Fix fromParameter example
1 parent 929c1ca commit 7d4d0dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ See `test/pattern_properties.test.js` for examples how this works.
131131
OpenAPI parameters can be converted:
132132

133133
```js
134-
var toJsonSchema = require('openapi-schema-to-json-schema').fromParameters;
134+
var toJsonSchema = require('openapi-schema-to-json-schema').fromParameter;
135135

136136
var param = {
137137
name: 'parameter name',
@@ -152,7 +152,7 @@ The result is as follows:
152152
```js
153153
{
154154
type: 'string',
155-
format: 'date-time',
155+
format: 'date',
156156
'$schema': 'http://json-schema.org/draft-04/schema#'
157157
}
158158
```

0 commit comments

Comments
 (0)