|
1 | 1 | # fast-json-stringify |
2 | 2 |
|
3 | | -[](http://standardjs.com/) |
4 | | - |
| 3 | + |
| 4 | +[](https://www.npmjs.com/package/fast-json-stringify) |
| 5 | +[](https://snyk.io/test/github/fastify/fast-json-stringify) |
| 6 | +[](https://standardjs.com/) |
5 | 7 | [](https://www.npmjs.com/package/fast-json-stringify) |
6 | 8 |
|
7 | 9 |
|
@@ -106,7 +108,7 @@ const stringify = fastJson(mySchema, { |
106 | 108 | <a name="fastJsonStringify"></a> |
107 | 109 | ### fastJsonStringify(schema) |
108 | 110 |
|
109 | | -Build a `stringify()` function based on [jsonschema](http://json-schema.org/). |
| 111 | +Build a `stringify()` function based on [jsonschema](https://json-schema.org/). |
110 | 112 |
|
111 | 113 | Supported types: |
112 | 114 |
|
@@ -137,6 +139,8 @@ And nested ones, too. |
137 | 139 | | `date` | `2020-04-03` | |
138 | 140 | | `time` | `09:11:08` | |
139 | 141 |
|
| 142 | +**Note**: In the case of string formatted Date and not Date Object, there will be no manipulation on it. It should be properly formatted. |
| 143 | + |
140 | 144 | Example with a MomentJS object: |
141 | 145 |
|
142 | 146 | ```javascript |
@@ -338,7 +342,7 @@ const stringify = fastJson({ |
338 | 342 | savedId: { type: 'string' } |
339 | 343 | }, |
340 | 344 | // without "required" validation any object will match |
341 | | - required: ['saveId'] |
| 345 | + required: ['savedId'] |
342 | 346 | }, |
343 | 347 | { |
344 | 348 | type: 'object', |
@@ -399,7 +403,7 @@ console.log(stringify({ |
399 | 403 | })) // {"kind":"foobar","foo":"FOO","bar":42} |
400 | 404 | ``` |
401 | 405 |
|
402 | | -**NB:** don't declare the properties twice or you'll print them twice! |
| 406 | +**NB** Do not declare the properties twice or you will print them twice! |
403 | 407 |
|
404 | 408 | <a name="ref"></a> |
405 | 409 | #### Reuse - $ref |
@@ -602,7 +606,7 @@ console.log(stringify({ firstName: 'Foo', surname: 'bar' })) // '{"firstName":"F |
602 | 606 | <a name="acknowledgements"></a> |
603 | 607 | ## Acknowledgements |
604 | 608 |
|
605 | | -This project was kindly sponsored by [nearForm](http://nearform.com). |
| 609 | +This project was kindly sponsored by [nearForm](https://nearform.com). |
606 | 610 |
|
607 | 611 | <a name="license"></a> |
608 | 612 | ## License |
|
0 commit comments