@terreno/api 0.0.18 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -3
- package/dist/api.d.ts +96 -3
- package/dist/api.js +159 -11
- package/dist/api.test.js +906 -2
- package/dist/auth.js +3 -1
- package/dist/betterAuth.d.ts +91 -0
- package/dist/betterAuth.js +8 -0
- package/dist/betterAuth.test.d.ts +1 -0
- package/dist/betterAuth.test.js +181 -0
- package/dist/betterAuthApp.d.ts +22 -0
- package/dist/betterAuthApp.js +38 -0
- package/dist/betterAuthApp.test.d.ts +1 -0
- package/dist/betterAuthApp.test.js +242 -0
- package/dist/betterAuthSetup.d.ts +60 -0
- package/dist/betterAuthSetup.js +278 -0
- package/dist/betterAuthSetup.test.d.ts +1 -0
- package/dist/betterAuthSetup.test.js +684 -0
- package/dist/errors.js +14 -11
- package/dist/example.js +7 -7
- package/dist/expressServer.js +2 -2
- package/dist/githubAuth.test.js +3 -3
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/openApi.test.js +8 -5
- package/dist/openApiBuilder.d.ts +69 -1
- package/dist/openApiBuilder.js +109 -5
- package/dist/openApiValidator.d.ts +296 -0
- package/dist/openApiValidator.js +698 -0
- package/dist/openApiValidator.test.d.ts +1 -0
- package/dist/openApiValidator.test.js +346 -0
- package/dist/plugins.test.js +3 -3
- package/dist/terrenoApp.d.ts +189 -0
- package/dist/terrenoApp.js +352 -0
- package/dist/terrenoApp.test.d.ts +1 -0
- package/dist/terrenoApp.test.js +264 -0
- package/dist/terrenoPlugin.d.ts +38 -0
- package/dist/terrenoPlugin.js +2 -0
- package/dist/tests.js +34 -24
- package/package.json +8 -2
- package/src/__snapshots__/openApi.test.ts.snap +399 -0
- package/src/__snapshots__/openApiBuilder.test.ts.snap +108 -0
- package/src/api.test.ts +743 -2
- package/src/api.ts +270 -6
- package/src/auth.ts +3 -1
- package/src/betterAuth.test.ts +160 -0
- package/src/betterAuth.ts +104 -0
- package/src/betterAuthApp.test.ts +114 -0
- package/src/betterAuthApp.ts +60 -0
- package/src/betterAuthSetup.test.ts +485 -0
- package/src/betterAuthSetup.ts +251 -0
- package/src/errors.ts +14 -11
- package/src/example.ts +7 -7
- package/src/expressServer.ts +4 -5
- package/src/githubAuth.test.ts +3 -3
- package/src/index.ts +6 -0
- package/src/openApi.test.ts +8 -5
- package/src/openApiBuilder.ts +188 -15
- package/src/openApiValidator.test.ts +241 -0
- package/src/openApiValidator.ts +860 -0
- package/src/plugins.test.ts +3 -3
- package/src/terrenoApp.test.ts +201 -0
- package/src/terrenoApp.ts +347 -0
- package/src/terrenoPlugin.ts +39 -0
- package/src/tests.ts +34 -24
- package/.cursorrules +0 -107
- package/.windsurfrules +0 -107
- package/AGENTS.md +0 -313
- package/dist/response.d.ts +0 -0
- package/dist/response.js +0 -1
- package/index.ts +0 -1
- package/src/response.ts +0 -0
|
@@ -96,20 +96,25 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
96
96
|
"schema": {
|
|
97
97
|
"oneOf": [
|
|
98
98
|
{
|
|
99
|
+
"description": "Number of calories in the food",
|
|
99
100
|
"type": "number",
|
|
100
101
|
},
|
|
101
102
|
{
|
|
102
103
|
"properties": {
|
|
103
104
|
"$gt": {
|
|
105
|
+
"description": "Number of calories in the food",
|
|
104
106
|
"type": "number",
|
|
105
107
|
},
|
|
106
108
|
"$gte": {
|
|
109
|
+
"description": "Number of calories in the food",
|
|
107
110
|
"type": "number",
|
|
108
111
|
},
|
|
109
112
|
"$lt": {
|
|
113
|
+
"description": "Number of calories in the food",
|
|
110
114
|
"type": "number",
|
|
111
115
|
},
|
|
112
116
|
"$lte": {
|
|
117
|
+
"description": "Number of calories in the food",
|
|
113
118
|
"type": "number",
|
|
114
119
|
},
|
|
115
120
|
},
|
|
@@ -153,9 +158,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
153
158
|
"type": "string",
|
|
154
159
|
},
|
|
155
160
|
"calories": {
|
|
161
|
+
"description": "Number of calories in the food",
|
|
156
162
|
"type": "number",
|
|
157
163
|
},
|
|
158
164
|
"categories": {
|
|
165
|
+
"description": "Categories this food belongs to",
|
|
159
166
|
"items": {
|
|
160
167
|
"properties": {
|
|
161
168
|
"_id": {
|
|
@@ -166,9 +173,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
166
173
|
"type": "string",
|
|
167
174
|
},
|
|
168
175
|
"name": {
|
|
176
|
+
"description": "The name of the food category",
|
|
169
177
|
"type": "string",
|
|
170
178
|
},
|
|
171
179
|
"show": {
|
|
180
|
+
"description": "Whether this category is visible",
|
|
172
181
|
"type": "boolean",
|
|
173
182
|
},
|
|
174
183
|
"updated": {
|
|
@@ -182,6 +191,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
182
191
|
"type": "array",
|
|
183
192
|
},
|
|
184
193
|
"created": {
|
|
194
|
+
"description": "When this food was created",
|
|
185
195
|
"format": "date-time",
|
|
186
196
|
"type": "string",
|
|
187
197
|
},
|
|
@@ -199,9 +209,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
199
209
|
},
|
|
200
210
|
"admin": {
|
|
201
211
|
"default": false,
|
|
212
|
+
"description": "Whether the user has admin privileges",
|
|
202
213
|
"type": "boolean",
|
|
203
214
|
},
|
|
204
215
|
"age": {
|
|
216
|
+
"description": "The user's age",
|
|
205
217
|
"type": "number",
|
|
206
218
|
},
|
|
207
219
|
"attempts": {
|
|
@@ -228,6 +240,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
228
240
|
"type": "string",
|
|
229
241
|
},
|
|
230
242
|
"name": {
|
|
243
|
+
"description": "The user's display name",
|
|
231
244
|
"type": "string",
|
|
232
245
|
},
|
|
233
246
|
"salt": {
|
|
@@ -238,6 +251,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
238
251
|
"type": "string",
|
|
239
252
|
},
|
|
240
253
|
"username": {
|
|
254
|
+
"description": "The user's username",
|
|
241
255
|
"type": "string",
|
|
242
256
|
},
|
|
243
257
|
},
|
|
@@ -246,12 +260,14 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
246
260
|
"type": "array",
|
|
247
261
|
},
|
|
248
262
|
"expiration": {
|
|
263
|
+
"description": "Expiration date of the food",
|
|
249
264
|
"type": "dateonly",
|
|
250
265
|
},
|
|
251
266
|
"foo": {
|
|
252
267
|
"type": "string",
|
|
253
268
|
},
|
|
254
269
|
"hidden": {
|
|
270
|
+
"description": "Whether this food is hidden from listings",
|
|
255
271
|
"type": "boolean",
|
|
256
272
|
},
|
|
257
273
|
"lastEatenWith": {
|
|
@@ -259,18 +275,22 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
259
275
|
"format": "date-time",
|
|
260
276
|
"type": "string",
|
|
261
277
|
},
|
|
278
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
262
279
|
"type": "object",
|
|
263
280
|
},
|
|
264
281
|
"likesIds": {
|
|
282
|
+
"description": "User likes for this food",
|
|
265
283
|
"items": {
|
|
266
284
|
"properties": {
|
|
267
285
|
"_id": {
|
|
268
286
|
"type": "string",
|
|
269
287
|
},
|
|
270
288
|
"likes": {
|
|
289
|
+
"description": "Whether the user liked the item",
|
|
271
290
|
"type": "boolean",
|
|
272
291
|
},
|
|
273
292
|
"userId": {
|
|
293
|
+
"description": "The user who liked the item",
|
|
274
294
|
"type": "string",
|
|
275
295
|
},
|
|
276
296
|
},
|
|
@@ -280,6 +300,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
280
300
|
"type": "array",
|
|
281
301
|
},
|
|
282
302
|
"name": {
|
|
303
|
+
"description": "The name of the food",
|
|
283
304
|
"type": "string",
|
|
284
305
|
},
|
|
285
306
|
"ownerId": {
|
|
@@ -292,9 +313,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
292
313
|
},
|
|
293
314
|
"admin": {
|
|
294
315
|
"default": false,
|
|
316
|
+
"description": "Whether the user has admin privileges",
|
|
295
317
|
"type": "boolean",
|
|
296
318
|
},
|
|
297
319
|
"age": {
|
|
320
|
+
"description": "The user's age",
|
|
298
321
|
"type": "number",
|
|
299
322
|
},
|
|
300
323
|
"attempts": {
|
|
@@ -321,6 +344,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
321
344
|
"type": "string",
|
|
322
345
|
},
|
|
323
346
|
"name": {
|
|
347
|
+
"description": "The user's display name",
|
|
324
348
|
"type": "string",
|
|
325
349
|
},
|
|
326
350
|
"salt": {
|
|
@@ -331,6 +355,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
331
355
|
"type": "string",
|
|
332
356
|
},
|
|
333
357
|
"username": {
|
|
358
|
+
"description": "The user's username",
|
|
334
359
|
"type": "string",
|
|
335
360
|
},
|
|
336
361
|
},
|
|
@@ -339,18 +364,22 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
339
364
|
"source": {
|
|
340
365
|
"properties": {
|
|
341
366
|
"dateAdded": {
|
|
367
|
+
"description": "When the source was added",
|
|
342
368
|
"type": "string",
|
|
343
369
|
},
|
|
344
370
|
"href": {
|
|
371
|
+
"description": "URL of the source",
|
|
345
372
|
"type": "string",
|
|
346
373
|
},
|
|
347
374
|
"name": {
|
|
375
|
+
"description": "Name of the source",
|
|
348
376
|
"type": "string",
|
|
349
377
|
},
|
|
350
378
|
},
|
|
351
379
|
"type": "object",
|
|
352
380
|
},
|
|
353
381
|
"tags": {
|
|
382
|
+
"description": "Tags associated with this food",
|
|
354
383
|
"items": {
|
|
355
384
|
"type": "string",
|
|
356
385
|
},
|
|
@@ -444,9 +473,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
444
473
|
"type": "string",
|
|
445
474
|
},
|
|
446
475
|
"calories": {
|
|
476
|
+
"description": "Number of calories in the food",
|
|
447
477
|
"type": "number",
|
|
448
478
|
},
|
|
449
479
|
"categories": {
|
|
480
|
+
"description": "Categories this food belongs to",
|
|
450
481
|
"items": {
|
|
451
482
|
"properties": {
|
|
452
483
|
"_id": {
|
|
@@ -457,9 +488,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
457
488
|
"type": "string",
|
|
458
489
|
},
|
|
459
490
|
"name": {
|
|
491
|
+
"description": "The name of the food category",
|
|
460
492
|
"type": "string",
|
|
461
493
|
},
|
|
462
494
|
"show": {
|
|
495
|
+
"description": "Whether this category is visible",
|
|
463
496
|
"type": "boolean",
|
|
464
497
|
},
|
|
465
498
|
"updated": {
|
|
@@ -473,6 +506,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
473
506
|
"type": "array",
|
|
474
507
|
},
|
|
475
508
|
"created": {
|
|
509
|
+
"description": "When this food was created",
|
|
476
510
|
"format": "date-time",
|
|
477
511
|
"type": "string",
|
|
478
512
|
},
|
|
@@ -490,9 +524,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
490
524
|
},
|
|
491
525
|
"admin": {
|
|
492
526
|
"default": false,
|
|
527
|
+
"description": "Whether the user has admin privileges",
|
|
493
528
|
"type": "boolean",
|
|
494
529
|
},
|
|
495
530
|
"age": {
|
|
531
|
+
"description": "The user's age",
|
|
496
532
|
"type": "number",
|
|
497
533
|
},
|
|
498
534
|
"attempts": {
|
|
@@ -519,6 +555,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
519
555
|
"type": "string",
|
|
520
556
|
},
|
|
521
557
|
"name": {
|
|
558
|
+
"description": "The user's display name",
|
|
522
559
|
"type": "string",
|
|
523
560
|
},
|
|
524
561
|
"salt": {
|
|
@@ -529,6 +566,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
529
566
|
"type": "string",
|
|
530
567
|
},
|
|
531
568
|
"username": {
|
|
569
|
+
"description": "The user's username",
|
|
532
570
|
"type": "string",
|
|
533
571
|
},
|
|
534
572
|
},
|
|
@@ -537,12 +575,14 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
537
575
|
"type": "array",
|
|
538
576
|
},
|
|
539
577
|
"expiration": {
|
|
578
|
+
"description": "Expiration date of the food",
|
|
540
579
|
"type": "dateonly",
|
|
541
580
|
},
|
|
542
581
|
"foo": {
|
|
543
582
|
"type": "string",
|
|
544
583
|
},
|
|
545
584
|
"hidden": {
|
|
585
|
+
"description": "Whether this food is hidden from listings",
|
|
546
586
|
"type": "boolean",
|
|
547
587
|
},
|
|
548
588
|
"lastEatenWith": {
|
|
@@ -550,18 +590,22 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
550
590
|
"format": "date-time",
|
|
551
591
|
"type": "string",
|
|
552
592
|
},
|
|
593
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
553
594
|
"type": "object",
|
|
554
595
|
},
|
|
555
596
|
"likesIds": {
|
|
597
|
+
"description": "User likes for this food",
|
|
556
598
|
"items": {
|
|
557
599
|
"properties": {
|
|
558
600
|
"_id": {
|
|
559
601
|
"type": "string",
|
|
560
602
|
},
|
|
561
603
|
"likes": {
|
|
604
|
+
"description": "Whether the user liked the item",
|
|
562
605
|
"type": "boolean",
|
|
563
606
|
},
|
|
564
607
|
"userId": {
|
|
608
|
+
"description": "The user who liked the item",
|
|
565
609
|
"type": "string",
|
|
566
610
|
},
|
|
567
611
|
},
|
|
@@ -571,6 +615,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
571
615
|
"type": "array",
|
|
572
616
|
},
|
|
573
617
|
"name": {
|
|
618
|
+
"description": "The name of the food",
|
|
574
619
|
"type": "string",
|
|
575
620
|
},
|
|
576
621
|
"ownerId": {
|
|
@@ -583,9 +628,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
583
628
|
},
|
|
584
629
|
"admin": {
|
|
585
630
|
"default": false,
|
|
631
|
+
"description": "Whether the user has admin privileges",
|
|
586
632
|
"type": "boolean",
|
|
587
633
|
},
|
|
588
634
|
"age": {
|
|
635
|
+
"description": "The user's age",
|
|
589
636
|
"type": "number",
|
|
590
637
|
},
|
|
591
638
|
"attempts": {
|
|
@@ -612,6 +659,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
612
659
|
"type": "string",
|
|
613
660
|
},
|
|
614
661
|
"name": {
|
|
662
|
+
"description": "The user's display name",
|
|
615
663
|
"type": "string",
|
|
616
664
|
},
|
|
617
665
|
"salt": {
|
|
@@ -622,6 +670,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
622
670
|
"type": "string",
|
|
623
671
|
},
|
|
624
672
|
"username": {
|
|
673
|
+
"description": "The user's username",
|
|
625
674
|
"type": "string",
|
|
626
675
|
},
|
|
627
676
|
},
|
|
@@ -630,18 +679,22 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
630
679
|
"source": {
|
|
631
680
|
"properties": {
|
|
632
681
|
"dateAdded": {
|
|
682
|
+
"description": "When the source was added",
|
|
633
683
|
"type": "string",
|
|
634
684
|
},
|
|
635
685
|
"href": {
|
|
686
|
+
"description": "URL of the source",
|
|
636
687
|
"type": "string",
|
|
637
688
|
},
|
|
638
689
|
"name": {
|
|
690
|
+
"description": "Name of the source",
|
|
639
691
|
"type": "string",
|
|
640
692
|
},
|
|
641
693
|
},
|
|
642
694
|
"type": "object",
|
|
643
695
|
},
|
|
644
696
|
"tags": {
|
|
697
|
+
"description": "Tags associated with this food",
|
|
645
698
|
"items": {
|
|
646
699
|
"type": "string",
|
|
647
700
|
},
|
|
@@ -664,9 +717,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
664
717
|
"type": "string",
|
|
665
718
|
},
|
|
666
719
|
"calories": {
|
|
720
|
+
"description": "Number of calories in the food",
|
|
667
721
|
"type": "number",
|
|
668
722
|
},
|
|
669
723
|
"categories": {
|
|
724
|
+
"description": "Categories this food belongs to",
|
|
670
725
|
"items": {
|
|
671
726
|
"properties": {
|
|
672
727
|
"_id": {
|
|
@@ -677,9 +732,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
677
732
|
"type": "string",
|
|
678
733
|
},
|
|
679
734
|
"name": {
|
|
735
|
+
"description": "The name of the food category",
|
|
680
736
|
"type": "string",
|
|
681
737
|
},
|
|
682
738
|
"show": {
|
|
739
|
+
"description": "Whether this category is visible",
|
|
683
740
|
"type": "boolean",
|
|
684
741
|
},
|
|
685
742
|
"updated": {
|
|
@@ -693,6 +750,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
693
750
|
"type": "array",
|
|
694
751
|
},
|
|
695
752
|
"created": {
|
|
753
|
+
"description": "When this food was created",
|
|
696
754
|
"format": "date-time",
|
|
697
755
|
"type": "string",
|
|
698
756
|
},
|
|
@@ -710,9 +768,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
710
768
|
},
|
|
711
769
|
"admin": {
|
|
712
770
|
"default": false,
|
|
771
|
+
"description": "Whether the user has admin privileges",
|
|
713
772
|
"type": "boolean",
|
|
714
773
|
},
|
|
715
774
|
"age": {
|
|
775
|
+
"description": "The user's age",
|
|
716
776
|
"type": "number",
|
|
717
777
|
},
|
|
718
778
|
"attempts": {
|
|
@@ -739,6 +799,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
739
799
|
"type": "string",
|
|
740
800
|
},
|
|
741
801
|
"name": {
|
|
802
|
+
"description": "The user's display name",
|
|
742
803
|
"type": "string",
|
|
743
804
|
},
|
|
744
805
|
"salt": {
|
|
@@ -749,6 +810,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
749
810
|
"type": "string",
|
|
750
811
|
},
|
|
751
812
|
"username": {
|
|
813
|
+
"description": "The user's username",
|
|
752
814
|
"type": "string",
|
|
753
815
|
},
|
|
754
816
|
},
|
|
@@ -757,12 +819,14 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
757
819
|
"type": "array",
|
|
758
820
|
},
|
|
759
821
|
"expiration": {
|
|
822
|
+
"description": "Expiration date of the food",
|
|
760
823
|
"type": "dateonly",
|
|
761
824
|
},
|
|
762
825
|
"foo": {
|
|
763
826
|
"type": "string",
|
|
764
827
|
},
|
|
765
828
|
"hidden": {
|
|
829
|
+
"description": "Whether this food is hidden from listings",
|
|
766
830
|
"type": "boolean",
|
|
767
831
|
},
|
|
768
832
|
"lastEatenWith": {
|
|
@@ -770,18 +834,22 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
770
834
|
"format": "date-time",
|
|
771
835
|
"type": "string",
|
|
772
836
|
},
|
|
837
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
773
838
|
"type": "object",
|
|
774
839
|
},
|
|
775
840
|
"likesIds": {
|
|
841
|
+
"description": "User likes for this food",
|
|
776
842
|
"items": {
|
|
777
843
|
"properties": {
|
|
778
844
|
"_id": {
|
|
779
845
|
"type": "string",
|
|
780
846
|
},
|
|
781
847
|
"likes": {
|
|
848
|
+
"description": "Whether the user liked the item",
|
|
782
849
|
"type": "boolean",
|
|
783
850
|
},
|
|
784
851
|
"userId": {
|
|
852
|
+
"description": "The user who liked the item",
|
|
785
853
|
"type": "string",
|
|
786
854
|
},
|
|
787
855
|
},
|
|
@@ -791,6 +859,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
791
859
|
"type": "array",
|
|
792
860
|
},
|
|
793
861
|
"name": {
|
|
862
|
+
"description": "The name of the food",
|
|
794
863
|
"type": "string",
|
|
795
864
|
},
|
|
796
865
|
"ownerId": {
|
|
@@ -803,9 +872,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
803
872
|
},
|
|
804
873
|
"admin": {
|
|
805
874
|
"default": false,
|
|
875
|
+
"description": "Whether the user has admin privileges",
|
|
806
876
|
"type": "boolean",
|
|
807
877
|
},
|
|
808
878
|
"age": {
|
|
879
|
+
"description": "The user's age",
|
|
809
880
|
"type": "number",
|
|
810
881
|
},
|
|
811
882
|
"attempts": {
|
|
@@ -832,6 +903,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
832
903
|
"type": "string",
|
|
833
904
|
},
|
|
834
905
|
"name": {
|
|
906
|
+
"description": "The user's display name",
|
|
835
907
|
"type": "string",
|
|
836
908
|
},
|
|
837
909
|
"salt": {
|
|
@@ -842,6 +914,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
842
914
|
"type": "string",
|
|
843
915
|
},
|
|
844
916
|
"username": {
|
|
917
|
+
"description": "The user's username",
|
|
845
918
|
"type": "string",
|
|
846
919
|
},
|
|
847
920
|
},
|
|
@@ -850,18 +923,22 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
850
923
|
"source": {
|
|
851
924
|
"properties": {
|
|
852
925
|
"dateAdded": {
|
|
926
|
+
"description": "When the source was added",
|
|
853
927
|
"type": "string",
|
|
854
928
|
},
|
|
855
929
|
"href": {
|
|
930
|
+
"description": "URL of the source",
|
|
856
931
|
"type": "string",
|
|
857
932
|
},
|
|
858
933
|
"name": {
|
|
934
|
+
"description": "Name of the source",
|
|
859
935
|
"type": "string",
|
|
860
936
|
},
|
|
861
937
|
},
|
|
862
938
|
"type": "object",
|
|
863
939
|
},
|
|
864
940
|
"tags": {
|
|
941
|
+
"description": "Tags associated with this food",
|
|
865
942
|
"items": {
|
|
866
943
|
"type": "string",
|
|
867
944
|
},
|
|
@@ -1014,9 +1091,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1014
1091
|
"type": "string",
|
|
1015
1092
|
},
|
|
1016
1093
|
"calories": {
|
|
1094
|
+
"description": "Number of calories in the food",
|
|
1017
1095
|
"type": "number",
|
|
1018
1096
|
},
|
|
1019
1097
|
"categories": {
|
|
1098
|
+
"description": "Categories this food belongs to",
|
|
1020
1099
|
"items": {
|
|
1021
1100
|
"properties": {
|
|
1022
1101
|
"_id": {
|
|
@@ -1027,9 +1106,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1027
1106
|
"type": "string",
|
|
1028
1107
|
},
|
|
1029
1108
|
"name": {
|
|
1109
|
+
"description": "The name of the food category",
|
|
1030
1110
|
"type": "string",
|
|
1031
1111
|
},
|
|
1032
1112
|
"show": {
|
|
1113
|
+
"description": "Whether this category is visible",
|
|
1033
1114
|
"type": "boolean",
|
|
1034
1115
|
},
|
|
1035
1116
|
"updated": {
|
|
@@ -1043,6 +1124,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1043
1124
|
"type": "array",
|
|
1044
1125
|
},
|
|
1045
1126
|
"created": {
|
|
1127
|
+
"description": "When this food was created",
|
|
1046
1128
|
"format": "date-time",
|
|
1047
1129
|
"type": "string",
|
|
1048
1130
|
},
|
|
@@ -1060,9 +1142,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1060
1142
|
},
|
|
1061
1143
|
"admin": {
|
|
1062
1144
|
"default": false,
|
|
1145
|
+
"description": "Whether the user has admin privileges",
|
|
1063
1146
|
"type": "boolean",
|
|
1064
1147
|
},
|
|
1065
1148
|
"age": {
|
|
1149
|
+
"description": "The user's age",
|
|
1066
1150
|
"type": "number",
|
|
1067
1151
|
},
|
|
1068
1152
|
"attempts": {
|
|
@@ -1089,6 +1173,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1089
1173
|
"type": "string",
|
|
1090
1174
|
},
|
|
1091
1175
|
"name": {
|
|
1176
|
+
"description": "The user's display name",
|
|
1092
1177
|
"type": "string",
|
|
1093
1178
|
},
|
|
1094
1179
|
"salt": {
|
|
@@ -1099,6 +1184,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1099
1184
|
"type": "string",
|
|
1100
1185
|
},
|
|
1101
1186
|
"username": {
|
|
1187
|
+
"description": "The user's username",
|
|
1102
1188
|
"type": "string",
|
|
1103
1189
|
},
|
|
1104
1190
|
},
|
|
@@ -1107,12 +1193,14 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1107
1193
|
"type": "array",
|
|
1108
1194
|
},
|
|
1109
1195
|
"expiration": {
|
|
1196
|
+
"description": "Expiration date of the food",
|
|
1110
1197
|
"type": "dateonly",
|
|
1111
1198
|
},
|
|
1112
1199
|
"foo": {
|
|
1113
1200
|
"type": "string",
|
|
1114
1201
|
},
|
|
1115
1202
|
"hidden": {
|
|
1203
|
+
"description": "Whether this food is hidden from listings",
|
|
1116
1204
|
"type": "boolean",
|
|
1117
1205
|
},
|
|
1118
1206
|
"lastEatenWith": {
|
|
@@ -1120,18 +1208,22 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1120
1208
|
"format": "date-time",
|
|
1121
1209
|
"type": "string",
|
|
1122
1210
|
},
|
|
1211
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
1123
1212
|
"type": "object",
|
|
1124
1213
|
},
|
|
1125
1214
|
"likesIds": {
|
|
1215
|
+
"description": "User likes for this food",
|
|
1126
1216
|
"items": {
|
|
1127
1217
|
"properties": {
|
|
1128
1218
|
"_id": {
|
|
1129
1219
|
"type": "string",
|
|
1130
1220
|
},
|
|
1131
1221
|
"likes": {
|
|
1222
|
+
"description": "Whether the user liked the item",
|
|
1132
1223
|
"type": "boolean",
|
|
1133
1224
|
},
|
|
1134
1225
|
"userId": {
|
|
1226
|
+
"description": "The user who liked the item",
|
|
1135
1227
|
"type": "string",
|
|
1136
1228
|
},
|
|
1137
1229
|
},
|
|
@@ -1141,6 +1233,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1141
1233
|
"type": "array",
|
|
1142
1234
|
},
|
|
1143
1235
|
"name": {
|
|
1236
|
+
"description": "The name of the food",
|
|
1144
1237
|
"type": "string",
|
|
1145
1238
|
},
|
|
1146
1239
|
"ownerId": {
|
|
@@ -1153,9 +1246,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1153
1246
|
},
|
|
1154
1247
|
"admin": {
|
|
1155
1248
|
"default": false,
|
|
1249
|
+
"description": "Whether the user has admin privileges",
|
|
1156
1250
|
"type": "boolean",
|
|
1157
1251
|
},
|
|
1158
1252
|
"age": {
|
|
1253
|
+
"description": "The user's age",
|
|
1159
1254
|
"type": "number",
|
|
1160
1255
|
},
|
|
1161
1256
|
"attempts": {
|
|
@@ -1182,6 +1277,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1182
1277
|
"type": "string",
|
|
1183
1278
|
},
|
|
1184
1279
|
"name": {
|
|
1280
|
+
"description": "The user's display name",
|
|
1185
1281
|
"type": "string",
|
|
1186
1282
|
},
|
|
1187
1283
|
"salt": {
|
|
@@ -1192,6 +1288,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1192
1288
|
"type": "string",
|
|
1193
1289
|
},
|
|
1194
1290
|
"username": {
|
|
1291
|
+
"description": "The user's username",
|
|
1195
1292
|
"type": "string",
|
|
1196
1293
|
},
|
|
1197
1294
|
},
|
|
@@ -1200,18 +1297,22 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1200
1297
|
"source": {
|
|
1201
1298
|
"properties": {
|
|
1202
1299
|
"dateAdded": {
|
|
1300
|
+
"description": "When the source was added",
|
|
1203
1301
|
"type": "string",
|
|
1204
1302
|
},
|
|
1205
1303
|
"href": {
|
|
1304
|
+
"description": "URL of the source",
|
|
1206
1305
|
"type": "string",
|
|
1207
1306
|
},
|
|
1208
1307
|
"name": {
|
|
1308
|
+
"description": "Name of the source",
|
|
1209
1309
|
"type": "string",
|
|
1210
1310
|
},
|
|
1211
1311
|
},
|
|
1212
1312
|
"type": "object",
|
|
1213
1313
|
},
|
|
1214
1314
|
"tags": {
|
|
1315
|
+
"description": "Tags associated with this food",
|
|
1215
1316
|
"items": {
|
|
1216
1317
|
"type": "string",
|
|
1217
1318
|
},
|
|
@@ -1298,9 +1399,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1298
1399
|
"type": "string",
|
|
1299
1400
|
},
|
|
1300
1401
|
"calories": {
|
|
1402
|
+
"description": "Number of calories in the food",
|
|
1301
1403
|
"type": "number",
|
|
1302
1404
|
},
|
|
1303
1405
|
"categories": {
|
|
1406
|
+
"description": "Categories this food belongs to",
|
|
1304
1407
|
"items": {
|
|
1305
1408
|
"properties": {
|
|
1306
1409
|
"_id": {
|
|
@@ -1311,9 +1414,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1311
1414
|
"type": "string",
|
|
1312
1415
|
},
|
|
1313
1416
|
"name": {
|
|
1417
|
+
"description": "The name of the food category",
|
|
1314
1418
|
"type": "string",
|
|
1315
1419
|
},
|
|
1316
1420
|
"show": {
|
|
1421
|
+
"description": "Whether this category is visible",
|
|
1317
1422
|
"type": "boolean",
|
|
1318
1423
|
},
|
|
1319
1424
|
"updated": {
|
|
@@ -1327,6 +1432,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1327
1432
|
"type": "array",
|
|
1328
1433
|
},
|
|
1329
1434
|
"created": {
|
|
1435
|
+
"description": "When this food was created",
|
|
1330
1436
|
"format": "date-time",
|
|
1331
1437
|
"type": "string",
|
|
1332
1438
|
},
|
|
@@ -1344,9 +1450,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1344
1450
|
},
|
|
1345
1451
|
"admin": {
|
|
1346
1452
|
"default": false,
|
|
1453
|
+
"description": "Whether the user has admin privileges",
|
|
1347
1454
|
"type": "boolean",
|
|
1348
1455
|
},
|
|
1349
1456
|
"age": {
|
|
1457
|
+
"description": "The user's age",
|
|
1350
1458
|
"type": "number",
|
|
1351
1459
|
},
|
|
1352
1460
|
"attempts": {
|
|
@@ -1373,6 +1481,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1373
1481
|
"type": "string",
|
|
1374
1482
|
},
|
|
1375
1483
|
"name": {
|
|
1484
|
+
"description": "The user's display name",
|
|
1376
1485
|
"type": "string",
|
|
1377
1486
|
},
|
|
1378
1487
|
"salt": {
|
|
@@ -1383,6 +1492,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1383
1492
|
"type": "string",
|
|
1384
1493
|
},
|
|
1385
1494
|
"username": {
|
|
1495
|
+
"description": "The user's username",
|
|
1386
1496
|
"type": "string",
|
|
1387
1497
|
},
|
|
1388
1498
|
},
|
|
@@ -1391,12 +1501,14 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1391
1501
|
"type": "array",
|
|
1392
1502
|
},
|
|
1393
1503
|
"expiration": {
|
|
1504
|
+
"description": "Expiration date of the food",
|
|
1394
1505
|
"type": "dateonly",
|
|
1395
1506
|
},
|
|
1396
1507
|
"foo": {
|
|
1397
1508
|
"type": "string",
|
|
1398
1509
|
},
|
|
1399
1510
|
"hidden": {
|
|
1511
|
+
"description": "Whether this food is hidden from listings",
|
|
1400
1512
|
"type": "boolean",
|
|
1401
1513
|
},
|
|
1402
1514
|
"lastEatenWith": {
|
|
@@ -1404,18 +1516,22 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1404
1516
|
"format": "date-time",
|
|
1405
1517
|
"type": "string",
|
|
1406
1518
|
},
|
|
1519
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
1407
1520
|
"type": "object",
|
|
1408
1521
|
},
|
|
1409
1522
|
"likesIds": {
|
|
1523
|
+
"description": "User likes for this food",
|
|
1410
1524
|
"items": {
|
|
1411
1525
|
"properties": {
|
|
1412
1526
|
"_id": {
|
|
1413
1527
|
"type": "string",
|
|
1414
1528
|
},
|
|
1415
1529
|
"likes": {
|
|
1530
|
+
"description": "Whether the user liked the item",
|
|
1416
1531
|
"type": "boolean",
|
|
1417
1532
|
},
|
|
1418
1533
|
"userId": {
|
|
1534
|
+
"description": "The user who liked the item",
|
|
1419
1535
|
"type": "string",
|
|
1420
1536
|
},
|
|
1421
1537
|
},
|
|
@@ -1425,6 +1541,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1425
1541
|
"type": "array",
|
|
1426
1542
|
},
|
|
1427
1543
|
"name": {
|
|
1544
|
+
"description": "The name of the food",
|
|
1428
1545
|
"type": "string",
|
|
1429
1546
|
},
|
|
1430
1547
|
"ownerId": {
|
|
@@ -1437,9 +1554,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1437
1554
|
},
|
|
1438
1555
|
"admin": {
|
|
1439
1556
|
"default": false,
|
|
1557
|
+
"description": "Whether the user has admin privileges",
|
|
1440
1558
|
"type": "boolean",
|
|
1441
1559
|
},
|
|
1442
1560
|
"age": {
|
|
1561
|
+
"description": "The user's age",
|
|
1443
1562
|
"type": "number",
|
|
1444
1563
|
},
|
|
1445
1564
|
"attempts": {
|
|
@@ -1466,6 +1585,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1466
1585
|
"type": "string",
|
|
1467
1586
|
},
|
|
1468
1587
|
"name": {
|
|
1588
|
+
"description": "The user's display name",
|
|
1469
1589
|
"type": "string",
|
|
1470
1590
|
},
|
|
1471
1591
|
"salt": {
|
|
@@ -1476,6 +1596,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1476
1596
|
"type": "string",
|
|
1477
1597
|
},
|
|
1478
1598
|
"username": {
|
|
1599
|
+
"description": "The user's username",
|
|
1479
1600
|
"type": "string",
|
|
1480
1601
|
},
|
|
1481
1602
|
},
|
|
@@ -1484,18 +1605,22 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1484
1605
|
"source": {
|
|
1485
1606
|
"properties": {
|
|
1486
1607
|
"dateAdded": {
|
|
1608
|
+
"description": "When the source was added",
|
|
1487
1609
|
"type": "string",
|
|
1488
1610
|
},
|
|
1489
1611
|
"href": {
|
|
1612
|
+
"description": "URL of the source",
|
|
1490
1613
|
"type": "string",
|
|
1491
1614
|
},
|
|
1492
1615
|
"name": {
|
|
1616
|
+
"description": "Name of the source",
|
|
1493
1617
|
"type": "string",
|
|
1494
1618
|
},
|
|
1495
1619
|
},
|
|
1496
1620
|
"type": "object",
|
|
1497
1621
|
},
|
|
1498
1622
|
"tags": {
|
|
1623
|
+
"description": "Tags associated with this food",
|
|
1499
1624
|
"items": {
|
|
1500
1625
|
"type": "string",
|
|
1501
1626
|
},
|
|
@@ -1518,9 +1643,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1518
1643
|
"type": "string",
|
|
1519
1644
|
},
|
|
1520
1645
|
"calories": {
|
|
1646
|
+
"description": "Number of calories in the food",
|
|
1521
1647
|
"type": "number",
|
|
1522
1648
|
},
|
|
1523
1649
|
"categories": {
|
|
1650
|
+
"description": "Categories this food belongs to",
|
|
1524
1651
|
"items": {
|
|
1525
1652
|
"properties": {
|
|
1526
1653
|
"_id": {
|
|
@@ -1531,9 +1658,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1531
1658
|
"type": "string",
|
|
1532
1659
|
},
|
|
1533
1660
|
"name": {
|
|
1661
|
+
"description": "The name of the food category",
|
|
1534
1662
|
"type": "string",
|
|
1535
1663
|
},
|
|
1536
1664
|
"show": {
|
|
1665
|
+
"description": "Whether this category is visible",
|
|
1537
1666
|
"type": "boolean",
|
|
1538
1667
|
},
|
|
1539
1668
|
"updated": {
|
|
@@ -1547,6 +1676,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1547
1676
|
"type": "array",
|
|
1548
1677
|
},
|
|
1549
1678
|
"created": {
|
|
1679
|
+
"description": "When this food was created",
|
|
1550
1680
|
"format": "date-time",
|
|
1551
1681
|
"type": "string",
|
|
1552
1682
|
},
|
|
@@ -1564,9 +1694,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1564
1694
|
},
|
|
1565
1695
|
"admin": {
|
|
1566
1696
|
"default": false,
|
|
1697
|
+
"description": "Whether the user has admin privileges",
|
|
1567
1698
|
"type": "boolean",
|
|
1568
1699
|
},
|
|
1569
1700
|
"age": {
|
|
1701
|
+
"description": "The user's age",
|
|
1570
1702
|
"type": "number",
|
|
1571
1703
|
},
|
|
1572
1704
|
"attempts": {
|
|
@@ -1593,6 +1725,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1593
1725
|
"type": "string",
|
|
1594
1726
|
},
|
|
1595
1727
|
"name": {
|
|
1728
|
+
"description": "The user's display name",
|
|
1596
1729
|
"type": "string",
|
|
1597
1730
|
},
|
|
1598
1731
|
"salt": {
|
|
@@ -1603,6 +1736,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1603
1736
|
"type": "string",
|
|
1604
1737
|
},
|
|
1605
1738
|
"username": {
|
|
1739
|
+
"description": "The user's username",
|
|
1606
1740
|
"type": "string",
|
|
1607
1741
|
},
|
|
1608
1742
|
},
|
|
@@ -1611,12 +1745,14 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1611
1745
|
"type": "array",
|
|
1612
1746
|
},
|
|
1613
1747
|
"expiration": {
|
|
1748
|
+
"description": "Expiration date of the food",
|
|
1614
1749
|
"type": "dateonly",
|
|
1615
1750
|
},
|
|
1616
1751
|
"foo": {
|
|
1617
1752
|
"type": "string",
|
|
1618
1753
|
},
|
|
1619
1754
|
"hidden": {
|
|
1755
|
+
"description": "Whether this food is hidden from listings",
|
|
1620
1756
|
"type": "boolean",
|
|
1621
1757
|
},
|
|
1622
1758
|
"lastEatenWith": {
|
|
@@ -1624,18 +1760,22 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1624
1760
|
"format": "date-time",
|
|
1625
1761
|
"type": "string",
|
|
1626
1762
|
},
|
|
1763
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
1627
1764
|
"type": "object",
|
|
1628
1765
|
},
|
|
1629
1766
|
"likesIds": {
|
|
1767
|
+
"description": "User likes for this food",
|
|
1630
1768
|
"items": {
|
|
1631
1769
|
"properties": {
|
|
1632
1770
|
"_id": {
|
|
1633
1771
|
"type": "string",
|
|
1634
1772
|
},
|
|
1635
1773
|
"likes": {
|
|
1774
|
+
"description": "Whether the user liked the item",
|
|
1636
1775
|
"type": "boolean",
|
|
1637
1776
|
},
|
|
1638
1777
|
"userId": {
|
|
1778
|
+
"description": "The user who liked the item",
|
|
1639
1779
|
"type": "string",
|
|
1640
1780
|
},
|
|
1641
1781
|
},
|
|
@@ -1645,6 +1785,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1645
1785
|
"type": "array",
|
|
1646
1786
|
},
|
|
1647
1787
|
"name": {
|
|
1788
|
+
"description": "The name of the food",
|
|
1648
1789
|
"type": "string",
|
|
1649
1790
|
},
|
|
1650
1791
|
"ownerId": {
|
|
@@ -1657,9 +1798,11 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1657
1798
|
},
|
|
1658
1799
|
"admin": {
|
|
1659
1800
|
"default": false,
|
|
1801
|
+
"description": "Whether the user has admin privileges",
|
|
1660
1802
|
"type": "boolean",
|
|
1661
1803
|
},
|
|
1662
1804
|
"age": {
|
|
1805
|
+
"description": "The user's age",
|
|
1663
1806
|
"type": "number",
|
|
1664
1807
|
},
|
|
1665
1808
|
"attempts": {
|
|
@@ -1686,6 +1829,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1686
1829
|
"type": "string",
|
|
1687
1830
|
},
|
|
1688
1831
|
"name": {
|
|
1832
|
+
"description": "The user's display name",
|
|
1689
1833
|
"type": "string",
|
|
1690
1834
|
},
|
|
1691
1835
|
"salt": {
|
|
@@ -1696,6 +1840,7 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1696
1840
|
"type": "string",
|
|
1697
1841
|
},
|
|
1698
1842
|
"username": {
|
|
1843
|
+
"description": "The user's username",
|
|
1699
1844
|
"type": "string",
|
|
1700
1845
|
},
|
|
1701
1846
|
},
|
|
@@ -1704,18 +1849,22 @@ exports[`openApi gets the openapi.json 1`] = `
|
|
|
1704
1849
|
"source": {
|
|
1705
1850
|
"properties": {
|
|
1706
1851
|
"dateAdded": {
|
|
1852
|
+
"description": "When the source was added",
|
|
1707
1853
|
"type": "string",
|
|
1708
1854
|
},
|
|
1709
1855
|
"href": {
|
|
1856
|
+
"description": "URL of the source",
|
|
1710
1857
|
"type": "string",
|
|
1711
1858
|
},
|
|
1712
1859
|
"name": {
|
|
1860
|
+
"description": "Name of the source",
|
|
1713
1861
|
"type": "string",
|
|
1714
1862
|
},
|
|
1715
1863
|
},
|
|
1716
1864
|
"type": "object",
|
|
1717
1865
|
},
|
|
1718
1866
|
"tags": {
|
|
1867
|
+
"description": "Tags associated with this food",
|
|
1719
1868
|
"items": {
|
|
1720
1869
|
"type": "string",
|
|
1721
1870
|
},
|
|
@@ -1883,20 +2032,25 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
1883
2032
|
"schema": {
|
|
1884
2033
|
"oneOf": [
|
|
1885
2034
|
{
|
|
2035
|
+
"description": "Number of calories in the food",
|
|
1886
2036
|
"type": "number",
|
|
1887
2037
|
},
|
|
1888
2038
|
{
|
|
1889
2039
|
"properties": {
|
|
1890
2040
|
"$gt": {
|
|
2041
|
+
"description": "Number of calories in the food",
|
|
1891
2042
|
"type": "number",
|
|
1892
2043
|
},
|
|
1893
2044
|
"$gte": {
|
|
2045
|
+
"description": "Number of calories in the food",
|
|
1894
2046
|
"type": "number",
|
|
1895
2047
|
},
|
|
1896
2048
|
"$lt": {
|
|
2049
|
+
"description": "Number of calories in the food",
|
|
1897
2050
|
"type": "number",
|
|
1898
2051
|
},
|
|
1899
2052
|
"$lte": {
|
|
2053
|
+
"description": "Number of calories in the food",
|
|
1900
2054
|
"type": "number",
|
|
1901
2055
|
},
|
|
1902
2056
|
},
|
|
@@ -1940,9 +2094,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
1940
2094
|
"type": "string",
|
|
1941
2095
|
},
|
|
1942
2096
|
"calories": {
|
|
2097
|
+
"description": "Number of calories in the food",
|
|
1943
2098
|
"type": "number",
|
|
1944
2099
|
},
|
|
1945
2100
|
"categories": {
|
|
2101
|
+
"description": "Categories this food belongs to",
|
|
1946
2102
|
"items": {
|
|
1947
2103
|
"properties": {
|
|
1948
2104
|
"_id": {
|
|
@@ -1953,9 +2109,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
1953
2109
|
"type": "string",
|
|
1954
2110
|
},
|
|
1955
2111
|
"name": {
|
|
2112
|
+
"description": "The name of the food category",
|
|
1956
2113
|
"type": "string",
|
|
1957
2114
|
},
|
|
1958
2115
|
"show": {
|
|
2116
|
+
"description": "Whether this category is visible",
|
|
1959
2117
|
"type": "boolean",
|
|
1960
2118
|
},
|
|
1961
2119
|
"updated": {
|
|
@@ -1969,6 +2127,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
1969
2127
|
"type": "array",
|
|
1970
2128
|
},
|
|
1971
2129
|
"created": {
|
|
2130
|
+
"description": "When this food was created",
|
|
1972
2131
|
"format": "date-time",
|
|
1973
2132
|
"type": "string",
|
|
1974
2133
|
},
|
|
@@ -1986,9 +2145,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
1986
2145
|
},
|
|
1987
2146
|
"admin": {
|
|
1988
2147
|
"default": false,
|
|
2148
|
+
"description": "Whether the user has admin privileges",
|
|
1989
2149
|
"type": "boolean",
|
|
1990
2150
|
},
|
|
1991
2151
|
"age": {
|
|
2152
|
+
"description": "The user's age",
|
|
1992
2153
|
"type": "number",
|
|
1993
2154
|
},
|
|
1994
2155
|
"attempts": {
|
|
@@ -2015,6 +2176,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2015
2176
|
"type": "string",
|
|
2016
2177
|
},
|
|
2017
2178
|
"name": {
|
|
2179
|
+
"description": "The user's display name",
|
|
2018
2180
|
"type": "string",
|
|
2019
2181
|
},
|
|
2020
2182
|
"salt": {
|
|
@@ -2025,6 +2187,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2025
2187
|
"type": "string",
|
|
2026
2188
|
},
|
|
2027
2189
|
"username": {
|
|
2190
|
+
"description": "The user's username",
|
|
2028
2191
|
"type": "string",
|
|
2029
2192
|
},
|
|
2030
2193
|
},
|
|
@@ -2033,12 +2196,14 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2033
2196
|
"type": "array",
|
|
2034
2197
|
},
|
|
2035
2198
|
"expiration": {
|
|
2199
|
+
"description": "Expiration date of the food",
|
|
2036
2200
|
"type": "dateonly",
|
|
2037
2201
|
},
|
|
2038
2202
|
"foo": {
|
|
2039
2203
|
"type": "string",
|
|
2040
2204
|
},
|
|
2041
2205
|
"hidden": {
|
|
2206
|
+
"description": "Whether this food is hidden from listings",
|
|
2042
2207
|
"type": "boolean",
|
|
2043
2208
|
},
|
|
2044
2209
|
"lastEatenWith": {
|
|
@@ -2046,18 +2211,22 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2046
2211
|
"format": "date-time",
|
|
2047
2212
|
"type": "string",
|
|
2048
2213
|
},
|
|
2214
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
2049
2215
|
"type": "object",
|
|
2050
2216
|
},
|
|
2051
2217
|
"likesIds": {
|
|
2218
|
+
"description": "User likes for this food",
|
|
2052
2219
|
"items": {
|
|
2053
2220
|
"properties": {
|
|
2054
2221
|
"_id": {
|
|
2055
2222
|
"type": "string",
|
|
2056
2223
|
},
|
|
2057
2224
|
"likes": {
|
|
2225
|
+
"description": "Whether the user liked the item",
|
|
2058
2226
|
"type": "boolean",
|
|
2059
2227
|
},
|
|
2060
2228
|
"userId": {
|
|
2229
|
+
"description": "The user who liked the item",
|
|
2061
2230
|
"type": "string",
|
|
2062
2231
|
},
|
|
2063
2232
|
},
|
|
@@ -2067,6 +2236,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2067
2236
|
"type": "array",
|
|
2068
2237
|
},
|
|
2069
2238
|
"name": {
|
|
2239
|
+
"description": "The name of the food",
|
|
2070
2240
|
"type": "string",
|
|
2071
2241
|
},
|
|
2072
2242
|
"ownerId": {
|
|
@@ -2079,9 +2249,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2079
2249
|
},
|
|
2080
2250
|
"admin": {
|
|
2081
2251
|
"default": false,
|
|
2252
|
+
"description": "Whether the user has admin privileges",
|
|
2082
2253
|
"type": "boolean",
|
|
2083
2254
|
},
|
|
2084
2255
|
"age": {
|
|
2256
|
+
"description": "The user's age",
|
|
2085
2257
|
"type": "number",
|
|
2086
2258
|
},
|
|
2087
2259
|
"attempts": {
|
|
@@ -2108,6 +2280,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2108
2280
|
"type": "string",
|
|
2109
2281
|
},
|
|
2110
2282
|
"name": {
|
|
2283
|
+
"description": "The user's display name",
|
|
2111
2284
|
"type": "string",
|
|
2112
2285
|
},
|
|
2113
2286
|
"salt": {
|
|
@@ -2118,6 +2291,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2118
2291
|
"type": "string",
|
|
2119
2292
|
},
|
|
2120
2293
|
"username": {
|
|
2294
|
+
"description": "The user's username",
|
|
2121
2295
|
"type": "string",
|
|
2122
2296
|
},
|
|
2123
2297
|
},
|
|
@@ -2126,18 +2300,22 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2126
2300
|
"source": {
|
|
2127
2301
|
"properties": {
|
|
2128
2302
|
"dateAdded": {
|
|
2303
|
+
"description": "When the source was added",
|
|
2129
2304
|
"type": "string",
|
|
2130
2305
|
},
|
|
2131
2306
|
"href": {
|
|
2307
|
+
"description": "URL of the source",
|
|
2132
2308
|
"type": "string",
|
|
2133
2309
|
},
|
|
2134
2310
|
"name": {
|
|
2311
|
+
"description": "Name of the source",
|
|
2135
2312
|
"type": "string",
|
|
2136
2313
|
},
|
|
2137
2314
|
},
|
|
2138
2315
|
"type": "object",
|
|
2139
2316
|
},
|
|
2140
2317
|
"tags": {
|
|
2318
|
+
"description": "Tags associated with this food",
|
|
2141
2319
|
"items": {
|
|
2142
2320
|
"type": "string",
|
|
2143
2321
|
},
|
|
@@ -2231,9 +2409,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2231
2409
|
"type": "string",
|
|
2232
2410
|
},
|
|
2233
2411
|
"calories": {
|
|
2412
|
+
"description": "Number of calories in the food",
|
|
2234
2413
|
"type": "number",
|
|
2235
2414
|
},
|
|
2236
2415
|
"categories": {
|
|
2416
|
+
"description": "Categories this food belongs to",
|
|
2237
2417
|
"items": {
|
|
2238
2418
|
"properties": {
|
|
2239
2419
|
"_id": {
|
|
@@ -2244,9 +2424,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2244
2424
|
"type": "string",
|
|
2245
2425
|
},
|
|
2246
2426
|
"name": {
|
|
2427
|
+
"description": "The name of the food category",
|
|
2247
2428
|
"type": "string",
|
|
2248
2429
|
},
|
|
2249
2430
|
"show": {
|
|
2431
|
+
"description": "Whether this category is visible",
|
|
2250
2432
|
"type": "boolean",
|
|
2251
2433
|
},
|
|
2252
2434
|
"updated": {
|
|
@@ -2260,6 +2442,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2260
2442
|
"type": "array",
|
|
2261
2443
|
},
|
|
2262
2444
|
"created": {
|
|
2445
|
+
"description": "When this food was created",
|
|
2263
2446
|
"format": "date-time",
|
|
2264
2447
|
"type": "string",
|
|
2265
2448
|
},
|
|
@@ -2277,9 +2460,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2277
2460
|
},
|
|
2278
2461
|
"admin": {
|
|
2279
2462
|
"default": false,
|
|
2463
|
+
"description": "Whether the user has admin privileges",
|
|
2280
2464
|
"type": "boolean",
|
|
2281
2465
|
},
|
|
2282
2466
|
"age": {
|
|
2467
|
+
"description": "The user's age",
|
|
2283
2468
|
"type": "number",
|
|
2284
2469
|
},
|
|
2285
2470
|
"attempts": {
|
|
@@ -2306,6 +2491,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2306
2491
|
"type": "string",
|
|
2307
2492
|
},
|
|
2308
2493
|
"name": {
|
|
2494
|
+
"description": "The user's display name",
|
|
2309
2495
|
"type": "string",
|
|
2310
2496
|
},
|
|
2311
2497
|
"salt": {
|
|
@@ -2316,6 +2502,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2316
2502
|
"type": "string",
|
|
2317
2503
|
},
|
|
2318
2504
|
"username": {
|
|
2505
|
+
"description": "The user's username",
|
|
2319
2506
|
"type": "string",
|
|
2320
2507
|
},
|
|
2321
2508
|
},
|
|
@@ -2324,12 +2511,14 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2324
2511
|
"type": "array",
|
|
2325
2512
|
},
|
|
2326
2513
|
"expiration": {
|
|
2514
|
+
"description": "Expiration date of the food",
|
|
2327
2515
|
"type": "dateonly",
|
|
2328
2516
|
},
|
|
2329
2517
|
"foo": {
|
|
2330
2518
|
"type": "string",
|
|
2331
2519
|
},
|
|
2332
2520
|
"hidden": {
|
|
2521
|
+
"description": "Whether this food is hidden from listings",
|
|
2333
2522
|
"type": "boolean",
|
|
2334
2523
|
},
|
|
2335
2524
|
"lastEatenWith": {
|
|
@@ -2337,18 +2526,22 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2337
2526
|
"format": "date-time",
|
|
2338
2527
|
"type": "string",
|
|
2339
2528
|
},
|
|
2529
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
2340
2530
|
"type": "object",
|
|
2341
2531
|
},
|
|
2342
2532
|
"likesIds": {
|
|
2533
|
+
"description": "User likes for this food",
|
|
2343
2534
|
"items": {
|
|
2344
2535
|
"properties": {
|
|
2345
2536
|
"_id": {
|
|
2346
2537
|
"type": "string",
|
|
2347
2538
|
},
|
|
2348
2539
|
"likes": {
|
|
2540
|
+
"description": "Whether the user liked the item",
|
|
2349
2541
|
"type": "boolean",
|
|
2350
2542
|
},
|
|
2351
2543
|
"userId": {
|
|
2544
|
+
"description": "The user who liked the item",
|
|
2352
2545
|
"type": "string",
|
|
2353
2546
|
},
|
|
2354
2547
|
},
|
|
@@ -2358,6 +2551,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2358
2551
|
"type": "array",
|
|
2359
2552
|
},
|
|
2360
2553
|
"name": {
|
|
2554
|
+
"description": "The name of the food",
|
|
2361
2555
|
"type": "string",
|
|
2362
2556
|
},
|
|
2363
2557
|
"ownerId": {
|
|
@@ -2370,9 +2564,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2370
2564
|
},
|
|
2371
2565
|
"admin": {
|
|
2372
2566
|
"default": false,
|
|
2567
|
+
"description": "Whether the user has admin privileges",
|
|
2373
2568
|
"type": "boolean",
|
|
2374
2569
|
},
|
|
2375
2570
|
"age": {
|
|
2571
|
+
"description": "The user's age",
|
|
2376
2572
|
"type": "number",
|
|
2377
2573
|
},
|
|
2378
2574
|
"attempts": {
|
|
@@ -2399,6 +2595,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2399
2595
|
"type": "string",
|
|
2400
2596
|
},
|
|
2401
2597
|
"name": {
|
|
2598
|
+
"description": "The user's display name",
|
|
2402
2599
|
"type": "string",
|
|
2403
2600
|
},
|
|
2404
2601
|
"salt": {
|
|
@@ -2409,6 +2606,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2409
2606
|
"type": "string",
|
|
2410
2607
|
},
|
|
2411
2608
|
"username": {
|
|
2609
|
+
"description": "The user's username",
|
|
2412
2610
|
"type": "string",
|
|
2413
2611
|
},
|
|
2414
2612
|
},
|
|
@@ -2417,18 +2615,22 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2417
2615
|
"source": {
|
|
2418
2616
|
"properties": {
|
|
2419
2617
|
"dateAdded": {
|
|
2618
|
+
"description": "When the source was added",
|
|
2420
2619
|
"type": "string",
|
|
2421
2620
|
},
|
|
2422
2621
|
"href": {
|
|
2622
|
+
"description": "URL of the source",
|
|
2423
2623
|
"type": "string",
|
|
2424
2624
|
},
|
|
2425
2625
|
"name": {
|
|
2626
|
+
"description": "Name of the source",
|
|
2426
2627
|
"type": "string",
|
|
2427
2628
|
},
|
|
2428
2629
|
},
|
|
2429
2630
|
"type": "object",
|
|
2430
2631
|
},
|
|
2431
2632
|
"tags": {
|
|
2633
|
+
"description": "Tags associated with this food",
|
|
2432
2634
|
"items": {
|
|
2433
2635
|
"type": "string",
|
|
2434
2636
|
},
|
|
@@ -2451,9 +2653,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2451
2653
|
"type": "string",
|
|
2452
2654
|
},
|
|
2453
2655
|
"calories": {
|
|
2656
|
+
"description": "Number of calories in the food",
|
|
2454
2657
|
"type": "number",
|
|
2455
2658
|
},
|
|
2456
2659
|
"categories": {
|
|
2660
|
+
"description": "Categories this food belongs to",
|
|
2457
2661
|
"items": {
|
|
2458
2662
|
"properties": {
|
|
2459
2663
|
"_id": {
|
|
@@ -2464,9 +2668,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2464
2668
|
"type": "string",
|
|
2465
2669
|
},
|
|
2466
2670
|
"name": {
|
|
2671
|
+
"description": "The name of the food category",
|
|
2467
2672
|
"type": "string",
|
|
2468
2673
|
},
|
|
2469
2674
|
"show": {
|
|
2675
|
+
"description": "Whether this category is visible",
|
|
2470
2676
|
"type": "boolean",
|
|
2471
2677
|
},
|
|
2472
2678
|
"updated": {
|
|
@@ -2480,6 +2686,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2480
2686
|
"type": "array",
|
|
2481
2687
|
},
|
|
2482
2688
|
"created": {
|
|
2689
|
+
"description": "When this food was created",
|
|
2483
2690
|
"format": "date-time",
|
|
2484
2691
|
"type": "string",
|
|
2485
2692
|
},
|
|
@@ -2497,9 +2704,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2497
2704
|
},
|
|
2498
2705
|
"admin": {
|
|
2499
2706
|
"default": false,
|
|
2707
|
+
"description": "Whether the user has admin privileges",
|
|
2500
2708
|
"type": "boolean",
|
|
2501
2709
|
},
|
|
2502
2710
|
"age": {
|
|
2711
|
+
"description": "The user's age",
|
|
2503
2712
|
"type": "number",
|
|
2504
2713
|
},
|
|
2505
2714
|
"attempts": {
|
|
@@ -2526,6 +2735,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2526
2735
|
"type": "string",
|
|
2527
2736
|
},
|
|
2528
2737
|
"name": {
|
|
2738
|
+
"description": "The user's display name",
|
|
2529
2739
|
"type": "string",
|
|
2530
2740
|
},
|
|
2531
2741
|
"salt": {
|
|
@@ -2536,6 +2746,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2536
2746
|
"type": "string",
|
|
2537
2747
|
},
|
|
2538
2748
|
"username": {
|
|
2749
|
+
"description": "The user's username",
|
|
2539
2750
|
"type": "string",
|
|
2540
2751
|
},
|
|
2541
2752
|
},
|
|
@@ -2544,12 +2755,14 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2544
2755
|
"type": "array",
|
|
2545
2756
|
},
|
|
2546
2757
|
"expiration": {
|
|
2758
|
+
"description": "Expiration date of the food",
|
|
2547
2759
|
"type": "dateonly",
|
|
2548
2760
|
},
|
|
2549
2761
|
"foo": {
|
|
2550
2762
|
"type": "string",
|
|
2551
2763
|
},
|
|
2552
2764
|
"hidden": {
|
|
2765
|
+
"description": "Whether this food is hidden from listings",
|
|
2553
2766
|
"type": "boolean",
|
|
2554
2767
|
},
|
|
2555
2768
|
"lastEatenWith": {
|
|
@@ -2557,18 +2770,22 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2557
2770
|
"format": "date-time",
|
|
2558
2771
|
"type": "string",
|
|
2559
2772
|
},
|
|
2773
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
2560
2774
|
"type": "object",
|
|
2561
2775
|
},
|
|
2562
2776
|
"likesIds": {
|
|
2777
|
+
"description": "User likes for this food",
|
|
2563
2778
|
"items": {
|
|
2564
2779
|
"properties": {
|
|
2565
2780
|
"_id": {
|
|
2566
2781
|
"type": "string",
|
|
2567
2782
|
},
|
|
2568
2783
|
"likes": {
|
|
2784
|
+
"description": "Whether the user liked the item",
|
|
2569
2785
|
"type": "boolean",
|
|
2570
2786
|
},
|
|
2571
2787
|
"userId": {
|
|
2788
|
+
"description": "The user who liked the item",
|
|
2572
2789
|
"type": "string",
|
|
2573
2790
|
},
|
|
2574
2791
|
},
|
|
@@ -2578,6 +2795,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2578
2795
|
"type": "array",
|
|
2579
2796
|
},
|
|
2580
2797
|
"name": {
|
|
2798
|
+
"description": "The name of the food",
|
|
2581
2799
|
"type": "string",
|
|
2582
2800
|
},
|
|
2583
2801
|
"ownerId": {
|
|
@@ -2590,9 +2808,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2590
2808
|
},
|
|
2591
2809
|
"admin": {
|
|
2592
2810
|
"default": false,
|
|
2811
|
+
"description": "Whether the user has admin privileges",
|
|
2593
2812
|
"type": "boolean",
|
|
2594
2813
|
},
|
|
2595
2814
|
"age": {
|
|
2815
|
+
"description": "The user's age",
|
|
2596
2816
|
"type": "number",
|
|
2597
2817
|
},
|
|
2598
2818
|
"attempts": {
|
|
@@ -2619,6 +2839,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2619
2839
|
"type": "string",
|
|
2620
2840
|
},
|
|
2621
2841
|
"name": {
|
|
2842
|
+
"description": "The user's display name",
|
|
2622
2843
|
"type": "string",
|
|
2623
2844
|
},
|
|
2624
2845
|
"salt": {
|
|
@@ -2629,6 +2850,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2629
2850
|
"type": "string",
|
|
2630
2851
|
},
|
|
2631
2852
|
"username": {
|
|
2853
|
+
"description": "The user's username",
|
|
2632
2854
|
"type": "string",
|
|
2633
2855
|
},
|
|
2634
2856
|
},
|
|
@@ -2637,18 +2859,22 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2637
2859
|
"source": {
|
|
2638
2860
|
"properties": {
|
|
2639
2861
|
"dateAdded": {
|
|
2862
|
+
"description": "When the source was added",
|
|
2640
2863
|
"type": "string",
|
|
2641
2864
|
},
|
|
2642
2865
|
"href": {
|
|
2866
|
+
"description": "URL of the source",
|
|
2643
2867
|
"type": "string",
|
|
2644
2868
|
},
|
|
2645
2869
|
"name": {
|
|
2870
|
+
"description": "Name of the source",
|
|
2646
2871
|
"type": "string",
|
|
2647
2872
|
},
|
|
2648
2873
|
},
|
|
2649
2874
|
"type": "object",
|
|
2650
2875
|
},
|
|
2651
2876
|
"tags": {
|
|
2877
|
+
"description": "Tags associated with this food",
|
|
2652
2878
|
"items": {
|
|
2653
2879
|
"type": "string",
|
|
2654
2880
|
},
|
|
@@ -2801,9 +3027,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2801
3027
|
"type": "string",
|
|
2802
3028
|
},
|
|
2803
3029
|
"calories": {
|
|
3030
|
+
"description": "Number of calories in the food",
|
|
2804
3031
|
"type": "number",
|
|
2805
3032
|
},
|
|
2806
3033
|
"categories": {
|
|
3034
|
+
"description": "Categories this food belongs to",
|
|
2807
3035
|
"items": {
|
|
2808
3036
|
"properties": {
|
|
2809
3037
|
"_id": {
|
|
@@ -2814,9 +3042,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2814
3042
|
"type": "string",
|
|
2815
3043
|
},
|
|
2816
3044
|
"name": {
|
|
3045
|
+
"description": "The name of the food category",
|
|
2817
3046
|
"type": "string",
|
|
2818
3047
|
},
|
|
2819
3048
|
"show": {
|
|
3049
|
+
"description": "Whether this category is visible",
|
|
2820
3050
|
"type": "boolean",
|
|
2821
3051
|
},
|
|
2822
3052
|
"updated": {
|
|
@@ -2830,6 +3060,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2830
3060
|
"type": "array",
|
|
2831
3061
|
},
|
|
2832
3062
|
"created": {
|
|
3063
|
+
"description": "When this food was created",
|
|
2833
3064
|
"format": "date-time",
|
|
2834
3065
|
"type": "string",
|
|
2835
3066
|
},
|
|
@@ -2847,9 +3078,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2847
3078
|
},
|
|
2848
3079
|
"admin": {
|
|
2849
3080
|
"default": false,
|
|
3081
|
+
"description": "Whether the user has admin privileges",
|
|
2850
3082
|
"type": "boolean",
|
|
2851
3083
|
},
|
|
2852
3084
|
"age": {
|
|
3085
|
+
"description": "The user's age",
|
|
2853
3086
|
"type": "number",
|
|
2854
3087
|
},
|
|
2855
3088
|
"attempts": {
|
|
@@ -2876,6 +3109,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2876
3109
|
"type": "string",
|
|
2877
3110
|
},
|
|
2878
3111
|
"name": {
|
|
3112
|
+
"description": "The user's display name",
|
|
2879
3113
|
"type": "string",
|
|
2880
3114
|
},
|
|
2881
3115
|
"salt": {
|
|
@@ -2886,6 +3120,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2886
3120
|
"type": "string",
|
|
2887
3121
|
},
|
|
2888
3122
|
"username": {
|
|
3123
|
+
"description": "The user's username",
|
|
2889
3124
|
"type": "string",
|
|
2890
3125
|
},
|
|
2891
3126
|
},
|
|
@@ -2894,12 +3129,14 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2894
3129
|
"type": "array",
|
|
2895
3130
|
},
|
|
2896
3131
|
"expiration": {
|
|
3132
|
+
"description": "Expiration date of the food",
|
|
2897
3133
|
"type": "dateonly",
|
|
2898
3134
|
},
|
|
2899
3135
|
"foo": {
|
|
2900
3136
|
"type": "string",
|
|
2901
3137
|
},
|
|
2902
3138
|
"hidden": {
|
|
3139
|
+
"description": "Whether this food is hidden from listings",
|
|
2903
3140
|
"type": "boolean",
|
|
2904
3141
|
},
|
|
2905
3142
|
"lastEatenWith": {
|
|
@@ -2907,18 +3144,22 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2907
3144
|
"format": "date-time",
|
|
2908
3145
|
"type": "string",
|
|
2909
3146
|
},
|
|
3147
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
2910
3148
|
"type": "object",
|
|
2911
3149
|
},
|
|
2912
3150
|
"likesIds": {
|
|
3151
|
+
"description": "User likes for this food",
|
|
2913
3152
|
"items": {
|
|
2914
3153
|
"properties": {
|
|
2915
3154
|
"_id": {
|
|
2916
3155
|
"type": "string",
|
|
2917
3156
|
},
|
|
2918
3157
|
"likes": {
|
|
3158
|
+
"description": "Whether the user liked the item",
|
|
2919
3159
|
"type": "boolean",
|
|
2920
3160
|
},
|
|
2921
3161
|
"userId": {
|
|
3162
|
+
"description": "The user who liked the item",
|
|
2922
3163
|
"type": "string",
|
|
2923
3164
|
},
|
|
2924
3165
|
},
|
|
@@ -2928,6 +3169,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2928
3169
|
"type": "array",
|
|
2929
3170
|
},
|
|
2930
3171
|
"name": {
|
|
3172
|
+
"description": "The name of the food",
|
|
2931
3173
|
"type": "string",
|
|
2932
3174
|
},
|
|
2933
3175
|
"ownerId": {
|
|
@@ -2940,9 +3182,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2940
3182
|
},
|
|
2941
3183
|
"admin": {
|
|
2942
3184
|
"default": false,
|
|
3185
|
+
"description": "Whether the user has admin privileges",
|
|
2943
3186
|
"type": "boolean",
|
|
2944
3187
|
},
|
|
2945
3188
|
"age": {
|
|
3189
|
+
"description": "The user's age",
|
|
2946
3190
|
"type": "number",
|
|
2947
3191
|
},
|
|
2948
3192
|
"attempts": {
|
|
@@ -2969,6 +3213,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2969
3213
|
"type": "string",
|
|
2970
3214
|
},
|
|
2971
3215
|
"name": {
|
|
3216
|
+
"description": "The user's display name",
|
|
2972
3217
|
"type": "string",
|
|
2973
3218
|
},
|
|
2974
3219
|
"salt": {
|
|
@@ -2979,6 +3224,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2979
3224
|
"type": "string",
|
|
2980
3225
|
},
|
|
2981
3226
|
"username": {
|
|
3227
|
+
"description": "The user's username",
|
|
2982
3228
|
"type": "string",
|
|
2983
3229
|
},
|
|
2984
3230
|
},
|
|
@@ -2987,18 +3233,22 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
2987
3233
|
"source": {
|
|
2988
3234
|
"properties": {
|
|
2989
3235
|
"dateAdded": {
|
|
3236
|
+
"description": "When the source was added",
|
|
2990
3237
|
"type": "string",
|
|
2991
3238
|
},
|
|
2992
3239
|
"href": {
|
|
3240
|
+
"description": "URL of the source",
|
|
2993
3241
|
"type": "string",
|
|
2994
3242
|
},
|
|
2995
3243
|
"name": {
|
|
3244
|
+
"description": "Name of the source",
|
|
2996
3245
|
"type": "string",
|
|
2997
3246
|
},
|
|
2998
3247
|
},
|
|
2999
3248
|
"type": "object",
|
|
3000
3249
|
},
|
|
3001
3250
|
"tags": {
|
|
3251
|
+
"description": "Tags associated with this food",
|
|
3002
3252
|
"items": {
|
|
3003
3253
|
"type": "string",
|
|
3004
3254
|
},
|
|
@@ -3085,9 +3335,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3085
3335
|
"type": "string",
|
|
3086
3336
|
},
|
|
3087
3337
|
"calories": {
|
|
3338
|
+
"description": "Number of calories in the food",
|
|
3088
3339
|
"type": "number",
|
|
3089
3340
|
},
|
|
3090
3341
|
"categories": {
|
|
3342
|
+
"description": "Categories this food belongs to",
|
|
3091
3343
|
"items": {
|
|
3092
3344
|
"properties": {
|
|
3093
3345
|
"_id": {
|
|
@@ -3098,9 +3350,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3098
3350
|
"type": "string",
|
|
3099
3351
|
},
|
|
3100
3352
|
"name": {
|
|
3353
|
+
"description": "The name of the food category",
|
|
3101
3354
|
"type": "string",
|
|
3102
3355
|
},
|
|
3103
3356
|
"show": {
|
|
3357
|
+
"description": "Whether this category is visible",
|
|
3104
3358
|
"type": "boolean",
|
|
3105
3359
|
},
|
|
3106
3360
|
"updated": {
|
|
@@ -3114,6 +3368,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3114
3368
|
"type": "array",
|
|
3115
3369
|
},
|
|
3116
3370
|
"created": {
|
|
3371
|
+
"description": "When this food was created",
|
|
3117
3372
|
"format": "date-time",
|
|
3118
3373
|
"type": "string",
|
|
3119
3374
|
},
|
|
@@ -3131,9 +3386,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3131
3386
|
},
|
|
3132
3387
|
"admin": {
|
|
3133
3388
|
"default": false,
|
|
3389
|
+
"description": "Whether the user has admin privileges",
|
|
3134
3390
|
"type": "boolean",
|
|
3135
3391
|
},
|
|
3136
3392
|
"age": {
|
|
3393
|
+
"description": "The user's age",
|
|
3137
3394
|
"type": "number",
|
|
3138
3395
|
},
|
|
3139
3396
|
"attempts": {
|
|
@@ -3160,6 +3417,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3160
3417
|
"type": "string",
|
|
3161
3418
|
},
|
|
3162
3419
|
"name": {
|
|
3420
|
+
"description": "The user's display name",
|
|
3163
3421
|
"type": "string",
|
|
3164
3422
|
},
|
|
3165
3423
|
"salt": {
|
|
@@ -3170,6 +3428,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3170
3428
|
"type": "string",
|
|
3171
3429
|
},
|
|
3172
3430
|
"username": {
|
|
3431
|
+
"description": "The user's username",
|
|
3173
3432
|
"type": "string",
|
|
3174
3433
|
},
|
|
3175
3434
|
},
|
|
@@ -3178,12 +3437,14 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3178
3437
|
"type": "array",
|
|
3179
3438
|
},
|
|
3180
3439
|
"expiration": {
|
|
3440
|
+
"description": "Expiration date of the food",
|
|
3181
3441
|
"type": "dateonly",
|
|
3182
3442
|
},
|
|
3183
3443
|
"foo": {
|
|
3184
3444
|
"type": "string",
|
|
3185
3445
|
},
|
|
3186
3446
|
"hidden": {
|
|
3447
|
+
"description": "Whether this food is hidden from listings",
|
|
3187
3448
|
"type": "boolean",
|
|
3188
3449
|
},
|
|
3189
3450
|
"lastEatenWith": {
|
|
@@ -3191,18 +3452,22 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3191
3452
|
"format": "date-time",
|
|
3192
3453
|
"type": "string",
|
|
3193
3454
|
},
|
|
3455
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
3194
3456
|
"type": "object",
|
|
3195
3457
|
},
|
|
3196
3458
|
"likesIds": {
|
|
3459
|
+
"description": "User likes for this food",
|
|
3197
3460
|
"items": {
|
|
3198
3461
|
"properties": {
|
|
3199
3462
|
"_id": {
|
|
3200
3463
|
"type": "string",
|
|
3201
3464
|
},
|
|
3202
3465
|
"likes": {
|
|
3466
|
+
"description": "Whether the user liked the item",
|
|
3203
3467
|
"type": "boolean",
|
|
3204
3468
|
},
|
|
3205
3469
|
"userId": {
|
|
3470
|
+
"description": "The user who liked the item",
|
|
3206
3471
|
"type": "string",
|
|
3207
3472
|
},
|
|
3208
3473
|
},
|
|
@@ -3212,6 +3477,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3212
3477
|
"type": "array",
|
|
3213
3478
|
},
|
|
3214
3479
|
"name": {
|
|
3480
|
+
"description": "The name of the food",
|
|
3215
3481
|
"type": "string",
|
|
3216
3482
|
},
|
|
3217
3483
|
"ownerId": {
|
|
@@ -3224,9 +3490,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3224
3490
|
},
|
|
3225
3491
|
"admin": {
|
|
3226
3492
|
"default": false,
|
|
3493
|
+
"description": "Whether the user has admin privileges",
|
|
3227
3494
|
"type": "boolean",
|
|
3228
3495
|
},
|
|
3229
3496
|
"age": {
|
|
3497
|
+
"description": "The user's age",
|
|
3230
3498
|
"type": "number",
|
|
3231
3499
|
},
|
|
3232
3500
|
"attempts": {
|
|
@@ -3253,6 +3521,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3253
3521
|
"type": "string",
|
|
3254
3522
|
},
|
|
3255
3523
|
"name": {
|
|
3524
|
+
"description": "The user's display name",
|
|
3256
3525
|
"type": "string",
|
|
3257
3526
|
},
|
|
3258
3527
|
"salt": {
|
|
@@ -3263,6 +3532,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3263
3532
|
"type": "string",
|
|
3264
3533
|
},
|
|
3265
3534
|
"username": {
|
|
3535
|
+
"description": "The user's username",
|
|
3266
3536
|
"type": "string",
|
|
3267
3537
|
},
|
|
3268
3538
|
},
|
|
@@ -3271,18 +3541,22 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3271
3541
|
"source": {
|
|
3272
3542
|
"properties": {
|
|
3273
3543
|
"dateAdded": {
|
|
3544
|
+
"description": "When the source was added",
|
|
3274
3545
|
"type": "string",
|
|
3275
3546
|
},
|
|
3276
3547
|
"href": {
|
|
3548
|
+
"description": "URL of the source",
|
|
3277
3549
|
"type": "string",
|
|
3278
3550
|
},
|
|
3279
3551
|
"name": {
|
|
3552
|
+
"description": "Name of the source",
|
|
3280
3553
|
"type": "string",
|
|
3281
3554
|
},
|
|
3282
3555
|
},
|
|
3283
3556
|
"type": "object",
|
|
3284
3557
|
},
|
|
3285
3558
|
"tags": {
|
|
3559
|
+
"description": "Tags associated with this food",
|
|
3286
3560
|
"items": {
|
|
3287
3561
|
"type": "string",
|
|
3288
3562
|
},
|
|
@@ -3305,9 +3579,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3305
3579
|
"type": "string",
|
|
3306
3580
|
},
|
|
3307
3581
|
"calories": {
|
|
3582
|
+
"description": "Number of calories in the food",
|
|
3308
3583
|
"type": "number",
|
|
3309
3584
|
},
|
|
3310
3585
|
"categories": {
|
|
3586
|
+
"description": "Categories this food belongs to",
|
|
3311
3587
|
"items": {
|
|
3312
3588
|
"properties": {
|
|
3313
3589
|
"_id": {
|
|
@@ -3318,9 +3594,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3318
3594
|
"type": "string",
|
|
3319
3595
|
},
|
|
3320
3596
|
"name": {
|
|
3597
|
+
"description": "The name of the food category",
|
|
3321
3598
|
"type": "string",
|
|
3322
3599
|
},
|
|
3323
3600
|
"show": {
|
|
3601
|
+
"description": "Whether this category is visible",
|
|
3324
3602
|
"type": "boolean",
|
|
3325
3603
|
},
|
|
3326
3604
|
"updated": {
|
|
@@ -3334,6 +3612,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3334
3612
|
"type": "array",
|
|
3335
3613
|
},
|
|
3336
3614
|
"created": {
|
|
3615
|
+
"description": "When this food was created",
|
|
3337
3616
|
"format": "date-time",
|
|
3338
3617
|
"type": "string",
|
|
3339
3618
|
},
|
|
@@ -3351,9 +3630,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3351
3630
|
},
|
|
3352
3631
|
"admin": {
|
|
3353
3632
|
"default": false,
|
|
3633
|
+
"description": "Whether the user has admin privileges",
|
|
3354
3634
|
"type": "boolean",
|
|
3355
3635
|
},
|
|
3356
3636
|
"age": {
|
|
3637
|
+
"description": "The user's age",
|
|
3357
3638
|
"type": "number",
|
|
3358
3639
|
},
|
|
3359
3640
|
"attempts": {
|
|
@@ -3380,6 +3661,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3380
3661
|
"type": "string",
|
|
3381
3662
|
},
|
|
3382
3663
|
"name": {
|
|
3664
|
+
"description": "The user's display name",
|
|
3383
3665
|
"type": "string",
|
|
3384
3666
|
},
|
|
3385
3667
|
"salt": {
|
|
@@ -3390,6 +3672,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3390
3672
|
"type": "string",
|
|
3391
3673
|
},
|
|
3392
3674
|
"username": {
|
|
3675
|
+
"description": "The user's username",
|
|
3393
3676
|
"type": "string",
|
|
3394
3677
|
},
|
|
3395
3678
|
},
|
|
@@ -3398,12 +3681,14 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3398
3681
|
"type": "array",
|
|
3399
3682
|
},
|
|
3400
3683
|
"expiration": {
|
|
3684
|
+
"description": "Expiration date of the food",
|
|
3401
3685
|
"type": "dateonly",
|
|
3402
3686
|
},
|
|
3403
3687
|
"foo": {
|
|
3404
3688
|
"type": "string",
|
|
3405
3689
|
},
|
|
3406
3690
|
"hidden": {
|
|
3691
|
+
"description": "Whether this food is hidden from listings",
|
|
3407
3692
|
"type": "boolean",
|
|
3408
3693
|
},
|
|
3409
3694
|
"lastEatenWith": {
|
|
@@ -3411,18 +3696,22 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3411
3696
|
"format": "date-time",
|
|
3412
3697
|
"type": "string",
|
|
3413
3698
|
},
|
|
3699
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
3414
3700
|
"type": "object",
|
|
3415
3701
|
},
|
|
3416
3702
|
"likesIds": {
|
|
3703
|
+
"description": "User likes for this food",
|
|
3417
3704
|
"items": {
|
|
3418
3705
|
"properties": {
|
|
3419
3706
|
"_id": {
|
|
3420
3707
|
"type": "string",
|
|
3421
3708
|
},
|
|
3422
3709
|
"likes": {
|
|
3710
|
+
"description": "Whether the user liked the item",
|
|
3423
3711
|
"type": "boolean",
|
|
3424
3712
|
},
|
|
3425
3713
|
"userId": {
|
|
3714
|
+
"description": "The user who liked the item",
|
|
3426
3715
|
"type": "string",
|
|
3427
3716
|
},
|
|
3428
3717
|
},
|
|
@@ -3432,6 +3721,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3432
3721
|
"type": "array",
|
|
3433
3722
|
},
|
|
3434
3723
|
"name": {
|
|
3724
|
+
"description": "The name of the food",
|
|
3435
3725
|
"type": "string",
|
|
3436
3726
|
},
|
|
3437
3727
|
"ownerId": {
|
|
@@ -3444,9 +3734,11 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3444
3734
|
},
|
|
3445
3735
|
"admin": {
|
|
3446
3736
|
"default": false,
|
|
3737
|
+
"description": "Whether the user has admin privileges",
|
|
3447
3738
|
"type": "boolean",
|
|
3448
3739
|
},
|
|
3449
3740
|
"age": {
|
|
3741
|
+
"description": "The user's age",
|
|
3450
3742
|
"type": "number",
|
|
3451
3743
|
},
|
|
3452
3744
|
"attempts": {
|
|
@@ -3473,6 +3765,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3473
3765
|
"type": "string",
|
|
3474
3766
|
},
|
|
3475
3767
|
"name": {
|
|
3768
|
+
"description": "The user's display name",
|
|
3476
3769
|
"type": "string",
|
|
3477
3770
|
},
|
|
3478
3771
|
"salt": {
|
|
@@ -3483,6 +3776,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3483
3776
|
"type": "string",
|
|
3484
3777
|
},
|
|
3485
3778
|
"username": {
|
|
3779
|
+
"description": "The user's username",
|
|
3486
3780
|
"type": "string",
|
|
3487
3781
|
},
|
|
3488
3782
|
},
|
|
@@ -3491,18 +3785,22 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
|
|
|
3491
3785
|
"source": {
|
|
3492
3786
|
"properties": {
|
|
3493
3787
|
"dateAdded": {
|
|
3788
|
+
"description": "When the source was added",
|
|
3494
3789
|
"type": "string",
|
|
3495
3790
|
},
|
|
3496
3791
|
"href": {
|
|
3792
|
+
"description": "URL of the source",
|
|
3497
3793
|
"type": "string",
|
|
3498
3794
|
},
|
|
3499
3795
|
"name": {
|
|
3796
|
+
"description": "Name of the source",
|
|
3500
3797
|
"type": "string",
|
|
3501
3798
|
},
|
|
3502
3799
|
},
|
|
3503
3800
|
"type": "object",
|
|
3504
3801
|
},
|
|
3505
3802
|
"tags": {
|
|
3803
|
+
"description": "Tags associated with this food",
|
|
3506
3804
|
"items": {
|
|
3507
3805
|
"type": "string",
|
|
3508
3806
|
},
|
|
@@ -3581,20 +3879,25 @@ exports[`openApi gets the openapi.json and has correct Number query fields 1`] =
|
|
|
3581
3879
|
"schema": {
|
|
3582
3880
|
"oneOf": [
|
|
3583
3881
|
{
|
|
3882
|
+
"description": "Number of calories in the food",
|
|
3584
3883
|
"type": "number",
|
|
3585
3884
|
},
|
|
3586
3885
|
{
|
|
3587
3886
|
"properties": {
|
|
3588
3887
|
"$gt": {
|
|
3888
|
+
"description": "Number of calories in the food",
|
|
3589
3889
|
"type": "number",
|
|
3590
3890
|
},
|
|
3591
3891
|
"$gte": {
|
|
3892
|
+
"description": "Number of calories in the food",
|
|
3592
3893
|
"type": "number",
|
|
3593
3894
|
},
|
|
3594
3895
|
"$lt": {
|
|
3896
|
+
"description": "Number of calories in the food",
|
|
3595
3897
|
"type": "number",
|
|
3596
3898
|
},
|
|
3597
3899
|
"$lte": {
|
|
3900
|
+
"description": "Number of calories in the food",
|
|
3598
3901
|
"type": "number",
|
|
3599
3902
|
},
|
|
3600
3903
|
},
|
|
@@ -3743,9 +4046,11 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3743
4046
|
"type": "string",
|
|
3744
4047
|
},
|
|
3745
4048
|
"calories": {
|
|
4049
|
+
"description": "Number of calories in the food",
|
|
3746
4050
|
"type": "number",
|
|
3747
4051
|
},
|
|
3748
4052
|
"categories": {
|
|
4053
|
+
"description": "Categories this food belongs to",
|
|
3749
4054
|
"items": {
|
|
3750
4055
|
"properties": {
|
|
3751
4056
|
"_id": {
|
|
@@ -3756,9 +4061,11 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3756
4061
|
"type": "string",
|
|
3757
4062
|
},
|
|
3758
4063
|
"name": {
|
|
4064
|
+
"description": "The name of the food category",
|
|
3759
4065
|
"type": "string",
|
|
3760
4066
|
},
|
|
3761
4067
|
"show": {
|
|
4068
|
+
"description": "Whether this category is visible",
|
|
3762
4069
|
"type": "boolean",
|
|
3763
4070
|
},
|
|
3764
4071
|
"updated": {
|
|
@@ -3772,6 +4079,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3772
4079
|
"type": "array",
|
|
3773
4080
|
},
|
|
3774
4081
|
"created": {
|
|
4082
|
+
"description": "When this food was created",
|
|
3775
4083
|
"format": "date-time",
|
|
3776
4084
|
"type": "string",
|
|
3777
4085
|
},
|
|
@@ -3785,12 +4093,14 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3785
4093
|
"type": "array",
|
|
3786
4094
|
},
|
|
3787
4095
|
"expiration": {
|
|
4096
|
+
"description": "Expiration date of the food",
|
|
3788
4097
|
"type": "dateonly",
|
|
3789
4098
|
},
|
|
3790
4099
|
"foo": {
|
|
3791
4100
|
"type": "string",
|
|
3792
4101
|
},
|
|
3793
4102
|
"hidden": {
|
|
4103
|
+
"description": "Whether this food is hidden from listings",
|
|
3794
4104
|
"type": "boolean",
|
|
3795
4105
|
},
|
|
3796
4106
|
"lastEatenWith": {
|
|
@@ -3798,15 +4108,18 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3798
4108
|
"format": "date-time",
|
|
3799
4109
|
"type": "string",
|
|
3800
4110
|
},
|
|
4111
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
3801
4112
|
"type": "object",
|
|
3802
4113
|
},
|
|
3803
4114
|
"likesIds": {
|
|
4115
|
+
"description": "User likes for this food",
|
|
3804
4116
|
"items": {
|
|
3805
4117
|
"properties": {
|
|
3806
4118
|
"_id": {
|
|
3807
4119
|
"type": "string",
|
|
3808
4120
|
},
|
|
3809
4121
|
"likes": {
|
|
4122
|
+
"description": "Whether the user liked the item",
|
|
3810
4123
|
"type": "boolean",
|
|
3811
4124
|
},
|
|
3812
4125
|
"userId": {
|
|
@@ -3819,6 +4132,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3819
4132
|
"type": "array",
|
|
3820
4133
|
},
|
|
3821
4134
|
"name": {
|
|
4135
|
+
"description": "The name of the food",
|
|
3822
4136
|
"type": "string",
|
|
3823
4137
|
},
|
|
3824
4138
|
"ownerId": {
|
|
@@ -3827,6 +4141,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3827
4141
|
"type": "string",
|
|
3828
4142
|
},
|
|
3829
4143
|
"name": {
|
|
4144
|
+
"description": "The user's display name",
|
|
3830
4145
|
"type": "string",
|
|
3831
4146
|
},
|
|
3832
4147
|
},
|
|
@@ -3835,18 +4150,22 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3835
4150
|
"source": {
|
|
3836
4151
|
"properties": {
|
|
3837
4152
|
"dateAdded": {
|
|
4153
|
+
"description": "When the source was added",
|
|
3838
4154
|
"type": "string",
|
|
3839
4155
|
},
|
|
3840
4156
|
"href": {
|
|
4157
|
+
"description": "URL of the source",
|
|
3841
4158
|
"type": "string",
|
|
3842
4159
|
},
|
|
3843
4160
|
"name": {
|
|
4161
|
+
"description": "Name of the source",
|
|
3844
4162
|
"type": "string",
|
|
3845
4163
|
},
|
|
3846
4164
|
},
|
|
3847
4165
|
"type": "object",
|
|
3848
4166
|
},
|
|
3849
4167
|
"tags": {
|
|
4168
|
+
"description": "Tags associated with this food",
|
|
3850
4169
|
"items": {
|
|
3851
4170
|
"type": "string",
|
|
3852
4171
|
},
|
|
@@ -3940,9 +4259,11 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3940
4259
|
"type": "string",
|
|
3941
4260
|
},
|
|
3942
4261
|
"calories": {
|
|
4262
|
+
"description": "Number of calories in the food",
|
|
3943
4263
|
"type": "number",
|
|
3944
4264
|
},
|
|
3945
4265
|
"categories": {
|
|
4266
|
+
"description": "Categories this food belongs to",
|
|
3946
4267
|
"items": {
|
|
3947
4268
|
"properties": {
|
|
3948
4269
|
"_id": {
|
|
@@ -3953,9 +4274,11 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3953
4274
|
"type": "string",
|
|
3954
4275
|
},
|
|
3955
4276
|
"name": {
|
|
4277
|
+
"description": "The name of the food category",
|
|
3956
4278
|
"type": "string",
|
|
3957
4279
|
},
|
|
3958
4280
|
"show": {
|
|
4281
|
+
"description": "Whether this category is visible",
|
|
3959
4282
|
"type": "boolean",
|
|
3960
4283
|
},
|
|
3961
4284
|
"updated": {
|
|
@@ -3969,6 +4292,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3969
4292
|
"type": "array",
|
|
3970
4293
|
},
|
|
3971
4294
|
"created": {
|
|
4295
|
+
"description": "When this food was created",
|
|
3972
4296
|
"format": "date-time",
|
|
3973
4297
|
"type": "string",
|
|
3974
4298
|
},
|
|
@@ -3982,12 +4306,14 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3982
4306
|
"type": "array",
|
|
3983
4307
|
},
|
|
3984
4308
|
"expiration": {
|
|
4309
|
+
"description": "Expiration date of the food",
|
|
3985
4310
|
"type": "dateonly",
|
|
3986
4311
|
},
|
|
3987
4312
|
"foo": {
|
|
3988
4313
|
"type": "string",
|
|
3989
4314
|
},
|
|
3990
4315
|
"hidden": {
|
|
4316
|
+
"description": "Whether this food is hidden from listings",
|
|
3991
4317
|
"type": "boolean",
|
|
3992
4318
|
},
|
|
3993
4319
|
"lastEatenWith": {
|
|
@@ -3995,15 +4321,18 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
3995
4321
|
"format": "date-time",
|
|
3996
4322
|
"type": "string",
|
|
3997
4323
|
},
|
|
4324
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
3998
4325
|
"type": "object",
|
|
3999
4326
|
},
|
|
4000
4327
|
"likesIds": {
|
|
4328
|
+
"description": "User likes for this food",
|
|
4001
4329
|
"items": {
|
|
4002
4330
|
"properties": {
|
|
4003
4331
|
"_id": {
|
|
4004
4332
|
"type": "string",
|
|
4005
4333
|
},
|
|
4006
4334
|
"likes": {
|
|
4335
|
+
"description": "Whether the user liked the item",
|
|
4007
4336
|
"type": "boolean",
|
|
4008
4337
|
},
|
|
4009
4338
|
"userId": {
|
|
@@ -4016,6 +4345,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4016
4345
|
"type": "array",
|
|
4017
4346
|
},
|
|
4018
4347
|
"name": {
|
|
4348
|
+
"description": "The name of the food",
|
|
4019
4349
|
"type": "string",
|
|
4020
4350
|
},
|
|
4021
4351
|
"ownerId": {
|
|
@@ -4024,6 +4354,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4024
4354
|
"type": "string",
|
|
4025
4355
|
},
|
|
4026
4356
|
"name": {
|
|
4357
|
+
"description": "The user's display name",
|
|
4027
4358
|
"type": "string",
|
|
4028
4359
|
},
|
|
4029
4360
|
},
|
|
@@ -4032,18 +4363,22 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4032
4363
|
"source": {
|
|
4033
4364
|
"properties": {
|
|
4034
4365
|
"dateAdded": {
|
|
4366
|
+
"description": "When the source was added",
|
|
4035
4367
|
"type": "string",
|
|
4036
4368
|
},
|
|
4037
4369
|
"href": {
|
|
4370
|
+
"description": "URL of the source",
|
|
4038
4371
|
"type": "string",
|
|
4039
4372
|
},
|
|
4040
4373
|
"name": {
|
|
4374
|
+
"description": "Name of the source",
|
|
4041
4375
|
"type": "string",
|
|
4042
4376
|
},
|
|
4043
4377
|
},
|
|
4044
4378
|
"type": "object",
|
|
4045
4379
|
},
|
|
4046
4380
|
"tags": {
|
|
4381
|
+
"description": "Tags associated with this food",
|
|
4047
4382
|
"items": {
|
|
4048
4383
|
"type": "string",
|
|
4049
4384
|
},
|
|
@@ -4066,9 +4401,11 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4066
4401
|
"type": "string",
|
|
4067
4402
|
},
|
|
4068
4403
|
"calories": {
|
|
4404
|
+
"description": "Number of calories in the food",
|
|
4069
4405
|
"type": "number",
|
|
4070
4406
|
},
|
|
4071
4407
|
"categories": {
|
|
4408
|
+
"description": "Categories this food belongs to",
|
|
4072
4409
|
"items": {
|
|
4073
4410
|
"properties": {
|
|
4074
4411
|
"_id": {
|
|
@@ -4079,9 +4416,11 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4079
4416
|
"type": "string",
|
|
4080
4417
|
},
|
|
4081
4418
|
"name": {
|
|
4419
|
+
"description": "The name of the food category",
|
|
4082
4420
|
"type": "string",
|
|
4083
4421
|
},
|
|
4084
4422
|
"show": {
|
|
4423
|
+
"description": "Whether this category is visible",
|
|
4085
4424
|
"type": "boolean",
|
|
4086
4425
|
},
|
|
4087
4426
|
"updated": {
|
|
@@ -4095,6 +4434,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4095
4434
|
"type": "array",
|
|
4096
4435
|
},
|
|
4097
4436
|
"created": {
|
|
4437
|
+
"description": "When this food was created",
|
|
4098
4438
|
"format": "date-time",
|
|
4099
4439
|
"type": "string",
|
|
4100
4440
|
},
|
|
@@ -4108,12 +4448,14 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4108
4448
|
"type": "array",
|
|
4109
4449
|
},
|
|
4110
4450
|
"expiration": {
|
|
4451
|
+
"description": "Expiration date of the food",
|
|
4111
4452
|
"type": "dateonly",
|
|
4112
4453
|
},
|
|
4113
4454
|
"foo": {
|
|
4114
4455
|
"type": "string",
|
|
4115
4456
|
},
|
|
4116
4457
|
"hidden": {
|
|
4458
|
+
"description": "Whether this food is hidden from listings",
|
|
4117
4459
|
"type": "boolean",
|
|
4118
4460
|
},
|
|
4119
4461
|
"lastEatenWith": {
|
|
@@ -4121,15 +4463,18 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4121
4463
|
"format": "date-time",
|
|
4122
4464
|
"type": "string",
|
|
4123
4465
|
},
|
|
4466
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
4124
4467
|
"type": "object",
|
|
4125
4468
|
},
|
|
4126
4469
|
"likesIds": {
|
|
4470
|
+
"description": "User likes for this food",
|
|
4127
4471
|
"items": {
|
|
4128
4472
|
"properties": {
|
|
4129
4473
|
"_id": {
|
|
4130
4474
|
"type": "string",
|
|
4131
4475
|
},
|
|
4132
4476
|
"likes": {
|
|
4477
|
+
"description": "Whether the user liked the item",
|
|
4133
4478
|
"type": "boolean",
|
|
4134
4479
|
},
|
|
4135
4480
|
"userId": {
|
|
@@ -4142,6 +4487,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4142
4487
|
"type": "array",
|
|
4143
4488
|
},
|
|
4144
4489
|
"name": {
|
|
4490
|
+
"description": "The name of the food",
|
|
4145
4491
|
"type": "string",
|
|
4146
4492
|
},
|
|
4147
4493
|
"ownerId": {
|
|
@@ -4150,6 +4496,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4150
4496
|
"type": "string",
|
|
4151
4497
|
},
|
|
4152
4498
|
"name": {
|
|
4499
|
+
"description": "The user's display name",
|
|
4153
4500
|
"type": "string",
|
|
4154
4501
|
},
|
|
4155
4502
|
},
|
|
@@ -4158,18 +4505,22 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4158
4505
|
"source": {
|
|
4159
4506
|
"properties": {
|
|
4160
4507
|
"dateAdded": {
|
|
4508
|
+
"description": "When the source was added",
|
|
4161
4509
|
"type": "string",
|
|
4162
4510
|
},
|
|
4163
4511
|
"href": {
|
|
4512
|
+
"description": "URL of the source",
|
|
4164
4513
|
"type": "string",
|
|
4165
4514
|
},
|
|
4166
4515
|
"name": {
|
|
4516
|
+
"description": "Name of the source",
|
|
4167
4517
|
"type": "string",
|
|
4168
4518
|
},
|
|
4169
4519
|
},
|
|
4170
4520
|
"type": "object",
|
|
4171
4521
|
},
|
|
4172
4522
|
"tags": {
|
|
4523
|
+
"description": "Tags associated with this food",
|
|
4173
4524
|
"items": {
|
|
4174
4525
|
"type": "string",
|
|
4175
4526
|
},
|
|
@@ -4322,9 +4673,11 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4322
4673
|
"type": "string",
|
|
4323
4674
|
},
|
|
4324
4675
|
"calories": {
|
|
4676
|
+
"description": "Number of calories in the food",
|
|
4325
4677
|
"type": "number",
|
|
4326
4678
|
},
|
|
4327
4679
|
"categories": {
|
|
4680
|
+
"description": "Categories this food belongs to",
|
|
4328
4681
|
"items": {
|
|
4329
4682
|
"properties": {
|
|
4330
4683
|
"_id": {
|
|
@@ -4335,9 +4688,11 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4335
4688
|
"type": "string",
|
|
4336
4689
|
},
|
|
4337
4690
|
"name": {
|
|
4691
|
+
"description": "The name of the food category",
|
|
4338
4692
|
"type": "string",
|
|
4339
4693
|
},
|
|
4340
4694
|
"show": {
|
|
4695
|
+
"description": "Whether this category is visible",
|
|
4341
4696
|
"type": "boolean",
|
|
4342
4697
|
},
|
|
4343
4698
|
"updated": {
|
|
@@ -4351,6 +4706,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4351
4706
|
"type": "array",
|
|
4352
4707
|
},
|
|
4353
4708
|
"created": {
|
|
4709
|
+
"description": "When this food was created",
|
|
4354
4710
|
"format": "date-time",
|
|
4355
4711
|
"type": "string",
|
|
4356
4712
|
},
|
|
@@ -4364,12 +4720,14 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4364
4720
|
"type": "array",
|
|
4365
4721
|
},
|
|
4366
4722
|
"expiration": {
|
|
4723
|
+
"description": "Expiration date of the food",
|
|
4367
4724
|
"type": "dateonly",
|
|
4368
4725
|
},
|
|
4369
4726
|
"foo": {
|
|
4370
4727
|
"type": "string",
|
|
4371
4728
|
},
|
|
4372
4729
|
"hidden": {
|
|
4730
|
+
"description": "Whether this food is hidden from listings",
|
|
4373
4731
|
"type": "boolean",
|
|
4374
4732
|
},
|
|
4375
4733
|
"lastEatenWith": {
|
|
@@ -4377,15 +4735,18 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4377
4735
|
"format": "date-time",
|
|
4378
4736
|
"type": "string",
|
|
4379
4737
|
},
|
|
4738
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
4380
4739
|
"type": "object",
|
|
4381
4740
|
},
|
|
4382
4741
|
"likesIds": {
|
|
4742
|
+
"description": "User likes for this food",
|
|
4383
4743
|
"items": {
|
|
4384
4744
|
"properties": {
|
|
4385
4745
|
"_id": {
|
|
4386
4746
|
"type": "string",
|
|
4387
4747
|
},
|
|
4388
4748
|
"likes": {
|
|
4749
|
+
"description": "Whether the user liked the item",
|
|
4389
4750
|
"type": "boolean",
|
|
4390
4751
|
},
|
|
4391
4752
|
"userId": {
|
|
@@ -4398,6 +4759,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4398
4759
|
"type": "array",
|
|
4399
4760
|
},
|
|
4400
4761
|
"name": {
|
|
4762
|
+
"description": "The name of the food",
|
|
4401
4763
|
"type": "string",
|
|
4402
4764
|
},
|
|
4403
4765
|
"ownerId": {
|
|
@@ -4406,6 +4768,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4406
4768
|
"type": "string",
|
|
4407
4769
|
},
|
|
4408
4770
|
"name": {
|
|
4771
|
+
"description": "The user's display name",
|
|
4409
4772
|
"type": "string",
|
|
4410
4773
|
},
|
|
4411
4774
|
},
|
|
@@ -4414,18 +4777,22 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4414
4777
|
"source": {
|
|
4415
4778
|
"properties": {
|
|
4416
4779
|
"dateAdded": {
|
|
4780
|
+
"description": "When the source was added",
|
|
4417
4781
|
"type": "string",
|
|
4418
4782
|
},
|
|
4419
4783
|
"href": {
|
|
4784
|
+
"description": "URL of the source",
|
|
4420
4785
|
"type": "string",
|
|
4421
4786
|
},
|
|
4422
4787
|
"name": {
|
|
4788
|
+
"description": "Name of the source",
|
|
4423
4789
|
"type": "string",
|
|
4424
4790
|
},
|
|
4425
4791
|
},
|
|
4426
4792
|
"type": "object",
|
|
4427
4793
|
},
|
|
4428
4794
|
"tags": {
|
|
4795
|
+
"description": "Tags associated with this food",
|
|
4429
4796
|
"items": {
|
|
4430
4797
|
"type": "string",
|
|
4431
4798
|
},
|
|
@@ -4512,9 +4879,11 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4512
4879
|
"type": "string",
|
|
4513
4880
|
},
|
|
4514
4881
|
"calories": {
|
|
4882
|
+
"description": "Number of calories in the food",
|
|
4515
4883
|
"type": "number",
|
|
4516
4884
|
},
|
|
4517
4885
|
"categories": {
|
|
4886
|
+
"description": "Categories this food belongs to",
|
|
4518
4887
|
"items": {
|
|
4519
4888
|
"properties": {
|
|
4520
4889
|
"_id": {
|
|
@@ -4525,9 +4894,11 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4525
4894
|
"type": "string",
|
|
4526
4895
|
},
|
|
4527
4896
|
"name": {
|
|
4897
|
+
"description": "The name of the food category",
|
|
4528
4898
|
"type": "string",
|
|
4529
4899
|
},
|
|
4530
4900
|
"show": {
|
|
4901
|
+
"description": "Whether this category is visible",
|
|
4531
4902
|
"type": "boolean",
|
|
4532
4903
|
},
|
|
4533
4904
|
"updated": {
|
|
@@ -4541,6 +4912,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4541
4912
|
"type": "array",
|
|
4542
4913
|
},
|
|
4543
4914
|
"created": {
|
|
4915
|
+
"description": "When this food was created",
|
|
4544
4916
|
"format": "date-time",
|
|
4545
4917
|
"type": "string",
|
|
4546
4918
|
},
|
|
@@ -4554,12 +4926,14 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4554
4926
|
"type": "array",
|
|
4555
4927
|
},
|
|
4556
4928
|
"expiration": {
|
|
4929
|
+
"description": "Expiration date of the food",
|
|
4557
4930
|
"type": "dateonly",
|
|
4558
4931
|
},
|
|
4559
4932
|
"foo": {
|
|
4560
4933
|
"type": "string",
|
|
4561
4934
|
},
|
|
4562
4935
|
"hidden": {
|
|
4936
|
+
"description": "Whether this food is hidden from listings",
|
|
4563
4937
|
"type": "boolean",
|
|
4564
4938
|
},
|
|
4565
4939
|
"lastEatenWith": {
|
|
@@ -4567,15 +4941,18 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4567
4941
|
"format": "date-time",
|
|
4568
4942
|
"type": "string",
|
|
4569
4943
|
},
|
|
4944
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
4570
4945
|
"type": "object",
|
|
4571
4946
|
},
|
|
4572
4947
|
"likesIds": {
|
|
4948
|
+
"description": "User likes for this food",
|
|
4573
4949
|
"items": {
|
|
4574
4950
|
"properties": {
|
|
4575
4951
|
"_id": {
|
|
4576
4952
|
"type": "string",
|
|
4577
4953
|
},
|
|
4578
4954
|
"likes": {
|
|
4955
|
+
"description": "Whether the user liked the item",
|
|
4579
4956
|
"type": "boolean",
|
|
4580
4957
|
},
|
|
4581
4958
|
"userId": {
|
|
@@ -4588,6 +4965,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4588
4965
|
"type": "array",
|
|
4589
4966
|
},
|
|
4590
4967
|
"name": {
|
|
4968
|
+
"description": "The name of the food",
|
|
4591
4969
|
"type": "string",
|
|
4592
4970
|
},
|
|
4593
4971
|
"ownerId": {
|
|
@@ -4596,6 +4974,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4596
4974
|
"type": "string",
|
|
4597
4975
|
},
|
|
4598
4976
|
"name": {
|
|
4977
|
+
"description": "The user's display name",
|
|
4599
4978
|
"type": "string",
|
|
4600
4979
|
},
|
|
4601
4980
|
},
|
|
@@ -4604,18 +4983,22 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4604
4983
|
"source": {
|
|
4605
4984
|
"properties": {
|
|
4606
4985
|
"dateAdded": {
|
|
4986
|
+
"description": "When the source was added",
|
|
4607
4987
|
"type": "string",
|
|
4608
4988
|
},
|
|
4609
4989
|
"href": {
|
|
4990
|
+
"description": "URL of the source",
|
|
4610
4991
|
"type": "string",
|
|
4611
4992
|
},
|
|
4612
4993
|
"name": {
|
|
4994
|
+
"description": "Name of the source",
|
|
4613
4995
|
"type": "string",
|
|
4614
4996
|
},
|
|
4615
4997
|
},
|
|
4616
4998
|
"type": "object",
|
|
4617
4999
|
},
|
|
4618
5000
|
"tags": {
|
|
5001
|
+
"description": "Tags associated with this food",
|
|
4619
5002
|
"items": {
|
|
4620
5003
|
"type": "string",
|
|
4621
5004
|
},
|
|
@@ -4638,9 +5021,11 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4638
5021
|
"type": "string",
|
|
4639
5022
|
},
|
|
4640
5023
|
"calories": {
|
|
5024
|
+
"description": "Number of calories in the food",
|
|
4641
5025
|
"type": "number",
|
|
4642
5026
|
},
|
|
4643
5027
|
"categories": {
|
|
5028
|
+
"description": "Categories this food belongs to",
|
|
4644
5029
|
"items": {
|
|
4645
5030
|
"properties": {
|
|
4646
5031
|
"_id": {
|
|
@@ -4651,9 +5036,11 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4651
5036
|
"type": "string",
|
|
4652
5037
|
},
|
|
4653
5038
|
"name": {
|
|
5039
|
+
"description": "The name of the food category",
|
|
4654
5040
|
"type": "string",
|
|
4655
5041
|
},
|
|
4656
5042
|
"show": {
|
|
5043
|
+
"description": "Whether this category is visible",
|
|
4657
5044
|
"type": "boolean",
|
|
4658
5045
|
},
|
|
4659
5046
|
"updated": {
|
|
@@ -4667,6 +5054,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4667
5054
|
"type": "array",
|
|
4668
5055
|
},
|
|
4669
5056
|
"created": {
|
|
5057
|
+
"description": "When this food was created",
|
|
4670
5058
|
"format": "date-time",
|
|
4671
5059
|
"type": "string",
|
|
4672
5060
|
},
|
|
@@ -4680,12 +5068,14 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4680
5068
|
"type": "array",
|
|
4681
5069
|
},
|
|
4682
5070
|
"expiration": {
|
|
5071
|
+
"description": "Expiration date of the food",
|
|
4683
5072
|
"type": "dateonly",
|
|
4684
5073
|
},
|
|
4685
5074
|
"foo": {
|
|
4686
5075
|
"type": "string",
|
|
4687
5076
|
},
|
|
4688
5077
|
"hidden": {
|
|
5078
|
+
"description": "Whether this food is hidden from listings",
|
|
4689
5079
|
"type": "boolean",
|
|
4690
5080
|
},
|
|
4691
5081
|
"lastEatenWith": {
|
|
@@ -4693,15 +5083,18 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4693
5083
|
"format": "date-time",
|
|
4694
5084
|
"type": "string",
|
|
4695
5085
|
},
|
|
5086
|
+
"description": "Map of user names to dates they last ate this food with",
|
|
4696
5087
|
"type": "object",
|
|
4697
5088
|
},
|
|
4698
5089
|
"likesIds": {
|
|
5090
|
+
"description": "User likes for this food",
|
|
4699
5091
|
"items": {
|
|
4700
5092
|
"properties": {
|
|
4701
5093
|
"_id": {
|
|
4702
5094
|
"type": "string",
|
|
4703
5095
|
},
|
|
4704
5096
|
"likes": {
|
|
5097
|
+
"description": "Whether the user liked the item",
|
|
4705
5098
|
"type": "boolean",
|
|
4706
5099
|
},
|
|
4707
5100
|
"userId": {
|
|
@@ -4714,6 +5107,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4714
5107
|
"type": "array",
|
|
4715
5108
|
},
|
|
4716
5109
|
"name": {
|
|
5110
|
+
"description": "The name of the food",
|
|
4717
5111
|
"type": "string",
|
|
4718
5112
|
},
|
|
4719
5113
|
"ownerId": {
|
|
@@ -4722,6 +5116,7 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4722
5116
|
"type": "string",
|
|
4723
5117
|
},
|
|
4724
5118
|
"name": {
|
|
5119
|
+
"description": "The user's display name",
|
|
4725
5120
|
"type": "string",
|
|
4726
5121
|
},
|
|
4727
5122
|
},
|
|
@@ -4730,18 +5125,22 @@ exports[`openApi populate gets the openapi.json with populate 1`] = `
|
|
|
4730
5125
|
"source": {
|
|
4731
5126
|
"properties": {
|
|
4732
5127
|
"dateAdded": {
|
|
5128
|
+
"description": "When the source was added",
|
|
4733
5129
|
"type": "string",
|
|
4734
5130
|
},
|
|
4735
5131
|
"href": {
|
|
5132
|
+
"description": "URL of the source",
|
|
4736
5133
|
"type": "string",
|
|
4737
5134
|
},
|
|
4738
5135
|
"name": {
|
|
5136
|
+
"description": "Name of the source",
|
|
4739
5137
|
"type": "string",
|
|
4740
5138
|
},
|
|
4741
5139
|
},
|
|
4742
5140
|
"type": "object",
|
|
4743
5141
|
},
|
|
4744
5142
|
"tags": {
|
|
5143
|
+
"description": "Tags associated with this food",
|
|
4745
5144
|
"items": {
|
|
4746
5145
|
"type": "string",
|
|
4747
5146
|
},
|