Open stav19 opened 8 months ago
I have encountered a syntax change related to the id field in the json-server package when upgrading to version 1.0.0-alpha.20. The id field of an data object was previously an integer, and in the updated version, it is expected to be a string.
Consider this example form "https://www.npmjs.com/package/json-server":
{ "posts": [ { "id": "1", "title": "a title" }, { "id": "2", "title": "another title" } ], "comments": [ { "id": "1", "text": "a comment about post 1", "postId": "1" }, { "id": "2", "text": "another comment about post 1", "postId": "1" } ], "profile": { "name": "typicode" } }
I have encountered a syntax change related to the id field in the json-server package when upgrading to version 1.0.0-alpha.20. The id field of an data object was previously an integer, and in the updated version, it is expected to be a string.
Consider this example form "https://www.npmjs.com/package/json-server":