File tree 4 files changed +11
-11
lines changed
4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ like the following::
48
48
},
49
49
"data": [{
50
50
"type": "identities",
51
- "id": 3 ,
51
+ "id": "3" ,
52
52
"attributes": {
53
53
"username": "john",
54
54
"full-name": "John Coltrane"
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ like the following:
32
32
},
33
33
" data" : [{
34
34
" type" : " identities" ,
35
- " id" : 3 ,
35
+ " id" : " 3 " ,
36
36
" attributes" : {
37
37
" username" : " john" ,
38
38
" full-name" : " John Coltrane"
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ Example - Without format conversion:
338
338
{
339
339
" data" : [{
340
340
" type" : " identities" ,
341
- " id" : 3 ,
341
+ " id" : " 3 " ,
342
342
" attributes" : {
343
343
" username" : " john" ,
344
344
" first_name" : " John" ,
@@ -359,7 +359,7 @@ Example - With format conversion set to `dasherize`:
359
359
{
360
360
" data" : [{
361
361
" type" : " identities" ,
362
- " id" : 3 ,
362
+ " id" : " 3 " ,
363
363
" attributes" : {
364
364
" username" : " john" ,
365
365
" first-name" : " John" ,
@@ -389,7 +389,7 @@ Example without format conversion:
389
389
{
390
390
" data" : [{
391
391
" type" : " blog_identity" ,
392
- " id" : 3 ,
392
+ " id" : " 3 " ,
393
393
" attributes" : {
394
394
...
395
395
},
@@ -412,7 +412,7 @@ When set to dasherize:
412
412
{
413
413
" data" : [{
414
414
" type" : " blog-identity" ,
415
- " id" : 3 ,
415
+ " id" : " 3 " ,
416
416
" attributes" : {
417
417
...
418
418
},
@@ -438,15 +438,15 @@ Example without pluralization:
438
438
{
439
439
" data" : [{
440
440
" type" : " identity" ,
441
- " id" : 3 ,
441
+ " id" : " 3 " ,
442
442
" attributes" : {
443
443
...
444
444
},
445
445
" relationships" : {
446
446
" home_towns" : {
447
447
" data" : [{
448
448
" type" : " home_town" ,
449
- " id" : 3
449
+ " id" : " 3 "
450
450
}]
451
451
}
452
452
}
@@ -461,15 +461,15 @@ When set to pluralize:
461
461
{
462
462
" data" : [{
463
463
" type" : " identities" ,
464
- " id" : 3 ,
464
+ " id" : " 3 " ,
465
465
" attributes" : {
466
466
...
467
467
},
468
468
" relationships" : {
469
469
" home_towns" : {
470
470
" data" : [{
471
471
" type" : " home_towns" ,
472
- " id" : 3
472
+ " id" : " 3 "
473
473
}]
474
474
}
475
475
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class JSONRenderer(renderers.JSONRenderer):
33
33
"data": [
34
34
{
35
35
"type": "companies",
36
- "id": 1 ,
36
+ "id": "1" ,
37
37
"attributes": {
38
38
"name": "Mozilla",
39
39
"slug": "mozilla",
You can’t perform that action at this time.
0 commit comments