@terreno/api 0.10.0 → 0.11.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/dist/tests.js CHANGED
@@ -88,10 +88,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
88
88
  return (mod && mod.__esModule) ? mod : { "default": mod };
89
89
  };
90
90
  Object.defineProperty(exports, "__esModule", { value: true });
91
- exports.RequiredModel = exports.FoodModel = exports.StaffUserModel = exports.SuperUserModel = exports.UserModel = void 0;
92
- exports.getBaseServer = getBaseServer;
93
- exports.authAsUser = authAsUser;
94
- exports.setupDb = setupDb;
91
+ exports.setupDb = exports.authAsUser = exports.getBaseServer = exports.RequiredModel = exports.FoodModel = exports.StaffUserModel = exports.SuperUserModel = exports.UserModel = void 0;
95
92
  var express_1 = __importDefault(require("express"));
96
93
  var mongoose_1 = __importStar(require("mongoose"));
97
94
  var passport_local_mongoose_1 = __importDefault(require("passport-local-mongoose"));
@@ -189,7 +186,7 @@ var requiredSchema = new mongoose_1.Schema({
189
186
  name: { description: "The name of the item", required: true, type: String },
190
187
  });
191
188
  exports.RequiredModel = (0, mongoose_1.model)("Required", requiredSchema);
192
- function getBaseServer() {
189
+ var getBaseServer = function () {
193
190
  var app = (0, express_1.default)();
194
191
  app.set("query parser", function (str) { return qs_1.default.parse(str, { arrayLimit: 200 }); });
195
192
  // Express 5 defaults to 'simple' query parser (Node querystring) which doesn't
@@ -211,82 +208,81 @@ function getBaseServer() {
211
208
  });
212
209
  app.use(express_1.default.json());
213
210
  return app;
214
- }
215
- function authAsUser(app, type) {
216
- return __awaiter(this, void 0, void 0, function () {
217
- var email, password, agent, res;
218
- return __generator(this, function (_a) {
219
- switch (_a.label) {
220
- case 0:
221
- email = type === "admin" ? "admin@example.com" : "notAdmin@example.com";
222
- password = type === "admin" ? "securePassword" : "password";
223
- agent = supertest_1.default.agent(app);
224
- return [4 /*yield*/, agent.post("/auth/login").send({ email: email, password: password }).expect(200)];
225
- case 1:
226
- res = _a.sent();
227
- return [4 /*yield*/, agent.set("authorization", "Bearer ".concat(res.body.data.token))];
228
- case 2:
229
- _a.sent();
230
- return [2 /*return*/, agent];
231
- }
232
- });
211
+ };
212
+ exports.getBaseServer = getBaseServer;
213
+ var authAsUser = function (app, type) { return __awaiter(void 0, void 0, void 0, function () {
214
+ var email, password, agent, res;
215
+ return __generator(this, function (_a) {
216
+ switch (_a.label) {
217
+ case 0:
218
+ email = type === "admin" ? "admin@example.com" : "notAdmin@example.com";
219
+ password = type === "admin" ? "securePassword" : "password";
220
+ agent = supertest_1.default.agent(app);
221
+ return [4 /*yield*/, agent.post("/auth/login").send({ email: email, password: password }).expect(200)];
222
+ case 1:
223
+ res = _a.sent();
224
+ return [4 /*yield*/, agent.set("authorization", "Bearer ".concat(res.body.data.token))];
225
+ case 2:
226
+ _a.sent();
227
+ return [2 /*return*/, agent];
228
+ }
233
229
  });
234
- }
235
- function setupDb() {
236
- return __awaiter(this, void 0, void 0, function () {
237
- var _a, notAdmin, admin, adminOther, error_1;
238
- return __generator(this, function (_b) {
239
- switch (_b.label) {
240
- case 0: return [4 /*yield*/, mongoose_1.default
241
- .connect("mongodb://127.0.0.1/terreno?&connectTimeoutMS=360000")
242
- .catch(logger_1.logger.catch)];
243
- case 1:
244
- _b.sent();
245
- process.env.REFRESH_TOKEN_SECRET = "refresh_secret";
246
- process.env.TOKEN_SECRET = "secret";
247
- process.env.TOKEN_EXPIRES_IN = "30m";
248
- process.env.TOKEN_ISSUER = "example.com";
249
- process.env.SESSION_SECRET = "session";
250
- // Broken out of the try/catch below so you can test the catch logger by shutting down mongo.
251
- return [4 /*yield*/, Promise.all([exports.UserModel.deleteMany({}), exports.FoodModel.deleteMany({})]).catch(logger_1.logger.catch)];
252
- case 2:
253
- // Broken out of the try/catch below so you can test the catch logger by shutting down mongo.
254
- _b.sent();
255
- _b.label = 3;
256
- case 3:
257
- _b.trys.push([3, 11, , 12]);
258
- return [4 /*yield*/, Promise.all([
259
- exports.UserModel.create({ email: "notAdmin@example.com", name: "Not Admin" }),
260
- exports.UserModel.create({ admin: true, email: "admin@example.com", name: "Admin" }),
261
- exports.UserModel.create({ admin: true, email: "admin+other@example.com", name: "Admin Other" }),
262
- ])];
263
- case 4:
264
- _a = __read.apply(void 0, [_b.sent(), 3]), notAdmin = _a[0], admin = _a[1], adminOther = _a[2];
265
- return [4 /*yield*/, notAdmin.setPassword("password")];
266
- case 5:
267
- _b.sent();
268
- return [4 /*yield*/, notAdmin.save()];
269
- case 6:
270
- _b.sent();
271
- return [4 /*yield*/, admin.setPassword("securePassword")];
272
- case 7:
273
- _b.sent();
274
- return [4 /*yield*/, admin.save()];
275
- case 8:
276
- _b.sent();
277
- return [4 /*yield*/, adminOther.setPassword("otherPassword")];
278
- case 9:
279
- _b.sent();
280
- return [4 /*yield*/, adminOther.save()];
281
- case 10:
282
- _b.sent();
283
- return [2 /*return*/, [admin, notAdmin, adminOther]];
284
- case 11:
285
- error_1 = _b.sent();
286
- console.error("Error setting up DB", error_1);
287
- throw error_1;
288
- case 12: return [2 /*return*/];
289
- }
290
- });
230
+ }); };
231
+ exports.authAsUser = authAsUser;
232
+ var setupDb = function () { return __awaiter(void 0, void 0, void 0, function () {
233
+ var _a, notAdmin, admin, adminOther, error_1;
234
+ return __generator(this, function (_b) {
235
+ switch (_b.label) {
236
+ case 0: return [4 /*yield*/, mongoose_1.default
237
+ .connect("mongodb://127.0.0.1/terreno?&connectTimeoutMS=360000")
238
+ .catch(logger_1.logger.catch)];
239
+ case 1:
240
+ _b.sent();
241
+ process.env.REFRESH_TOKEN_SECRET = "refresh_secret";
242
+ process.env.TOKEN_SECRET = "secret";
243
+ process.env.TOKEN_EXPIRES_IN = "30m";
244
+ process.env.TOKEN_ISSUER = "example.com";
245
+ process.env.SESSION_SECRET = "session";
246
+ // Broken out of the try/catch below so you can test the catch logger by shutting down mongo.
247
+ return [4 /*yield*/, Promise.all([exports.UserModel.deleteMany({}), exports.FoodModel.deleteMany({})]).catch(logger_1.logger.catch)];
248
+ case 2:
249
+ // Broken out of the try/catch below so you can test the catch logger by shutting down mongo.
250
+ _b.sent();
251
+ _b.label = 3;
252
+ case 3:
253
+ _b.trys.push([3, 11, , 12]);
254
+ return [4 /*yield*/, Promise.all([
255
+ exports.UserModel.create({ email: "notAdmin@example.com", name: "Not Admin" }),
256
+ exports.UserModel.create({ admin: true, email: "admin@example.com", name: "Admin" }),
257
+ exports.UserModel.create({ admin: true, email: "admin+other@example.com", name: "Admin Other" }),
258
+ ])];
259
+ case 4:
260
+ _a = __read.apply(void 0, [_b.sent(), 3]), notAdmin = _a[0], admin = _a[1], adminOther = _a[2];
261
+ return [4 /*yield*/, notAdmin.setPassword("password")];
262
+ case 5:
263
+ _b.sent();
264
+ return [4 /*yield*/, notAdmin.save()];
265
+ case 6:
266
+ _b.sent();
267
+ return [4 /*yield*/, admin.setPassword("securePassword")];
268
+ case 7:
269
+ _b.sent();
270
+ return [4 /*yield*/, admin.save()];
271
+ case 8:
272
+ _b.sent();
273
+ return [4 /*yield*/, adminOther.setPassword("otherPassword")];
274
+ case 9:
275
+ _b.sent();
276
+ return [4 /*yield*/, adminOther.save()];
277
+ case 10:
278
+ _b.sent();
279
+ return [2 /*return*/, [admin, notAdmin, adminOther]];
280
+ case 11:
281
+ error_1 = _b.sent();
282
+ logger_1.logger.error("Error setting up DB", error_1);
283
+ throw error_1;
284
+ case 12: return [2 /*return*/];
285
+ }
291
286
  });
292
- }
287
+ }); };
288
+ exports.setupDb = setupDb;
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare function isValidObjectId(id: string): boolean;
1
+ export declare const isValidObjectId: (id: string) => boolean;
2
2
  export declare const timeout: (ms: number) => Promise<NodeJS.Timeout>;
3
3
  /**
4
4
  * Ensure that all mongoose models are set to strict mode.
@@ -8,4 +8,4 @@ export declare const timeout: (ms: number) => Promise<NodeJS.Timeout>;
8
8
  * @param ignoredModels - Array of model names to skip validation for
9
9
  * @throws Error if any model is not set to strict mode or missing virtual settings
10
10
  */
11
- export declare function checkModelsStrict(ignoredModels?: string[]): void;
11
+ export declare const checkModelsStrict: (ignoredModels?: string[]) => void;
package/dist/utils.js CHANGED
@@ -80,14 +80,12 @@ var __values = (this && this.__values) || function(o) {
80
80
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
81
81
  };
82
82
  Object.defineProperty(exports, "__esModule", { value: true });
83
- exports.timeout = void 0;
84
- exports.isValidObjectId = isValidObjectId;
85
- exports.checkModelsStrict = checkModelsStrict;
83
+ exports.checkModelsStrict = exports.timeout = exports.isValidObjectId = void 0;
86
84
  var mongoose_1 = __importStar(require("mongoose"));
87
85
  var logger_1 = require("./logger");
88
86
  // A better version of mongoose's ObjectId.isValid,
89
87
  // which falsely will say any 12 character string is valid.
90
- function isValidObjectId(id) {
88
+ var isValidObjectId = function (id) {
91
89
  try {
92
90
  return new mongoose_1.Types.ObjectId(id).toString() === id;
93
91
  }
@@ -95,7 +93,8 @@ function isValidObjectId(id) {
95
93
  logger_1.logger.error("Error validating object id ".concat(id, ": ").concat(error));
96
94
  return false;
97
95
  }
98
- }
96
+ };
97
+ exports.isValidObjectId = isValidObjectId;
99
98
  var timeout = function (ms) { return __awaiter(void 0, void 0, void 0, function () {
100
99
  return __generator(this, function (_a) {
101
100
  return [2 /*return*/, new Promise(function (resolve) { return setTimeout(resolve, ms); })];
@@ -110,7 +109,7 @@ exports.timeout = timeout;
110
109
  * @param ignoredModels - Array of model names to skip validation for
111
110
  * @throws Error if any model is not set to strict mode or missing virtual settings
112
111
  */
113
- function checkModelsStrict(ignoredModels) {
112
+ var checkModelsStrict = function (ignoredModels) {
114
113
  var e_1, _a;
115
114
  var _b, _c;
116
115
  if (ignoredModels === void 0) { ignoredModels = []; }
@@ -140,4 +139,5 @@ function checkModelsStrict(ignoredModels) {
140
139
  }
141
140
  finally { if (e_1) throw e_1.error; }
142
141
  }
143
- }
142
+ };
143
+ exports.checkModelsStrict = checkModelsStrict;
package/package.json CHANGED
@@ -100,8 +100,9 @@
100
100
  "lint:unsafefix": "biome check --fix --unsafe ./src",
101
101
  "test": "bun test --preload ./src/tests/bunSetup.ts --update-snapshots",
102
102
  "test:ci": "bun test --preload ./src/tests/bunSetup.ts",
103
+ "test:coverage": "bun run ../scripts/check-coverage.ts",
103
104
  "updateSnapshot": "bun test --update-snapshots"
104
105
  },
105
106
  "types": "dist/index.d.ts",
106
- "version": "0.10.0"
107
+ "version": "0.11.0"
107
108
  }
@@ -221,6 +221,7 @@ exports[`openApi gets the openapi.json 1`] = `
221
221
  "type": "number",
222
222
  },
223
223
  "created": {
224
+ "description": "When this document was created",
224
225
  "format": "date-time",
225
226
  "type": "string",
226
227
  },
@@ -247,6 +248,7 @@ exports[`openApi gets the openapi.json 1`] = `
247
248
  "type": "string",
248
249
  },
249
250
  "updated": {
251
+ "description": "When this document was last updated",
250
252
  "format": "date-time",
251
253
  "type": "string",
252
254
  },
@@ -325,6 +327,7 @@ exports[`openApi gets the openapi.json 1`] = `
325
327
  "type": "number",
326
328
  },
327
329
  "created": {
330
+ "description": "When this document was created",
328
331
  "format": "date-time",
329
332
  "type": "string",
330
333
  },
@@ -351,6 +354,7 @@ exports[`openApi gets the openapi.json 1`] = `
351
354
  "type": "string",
352
355
  },
353
356
  "updated": {
357
+ "description": "When this document was last updated",
354
358
  "format": "date-time",
355
359
  "type": "string",
356
360
  },
@@ -536,6 +540,7 @@ exports[`openApi gets the openapi.json 1`] = `
536
540
  "type": "number",
537
541
  },
538
542
  "created": {
543
+ "description": "When this document was created",
539
544
  "format": "date-time",
540
545
  "type": "string",
541
546
  },
@@ -562,6 +567,7 @@ exports[`openApi gets the openapi.json 1`] = `
562
567
  "type": "string",
563
568
  },
564
569
  "updated": {
570
+ "description": "When this document was last updated",
565
571
  "format": "date-time",
566
572
  "type": "string",
567
573
  },
@@ -640,6 +646,7 @@ exports[`openApi gets the openapi.json 1`] = `
640
646
  "type": "number",
641
647
  },
642
648
  "created": {
649
+ "description": "When this document was created",
643
650
  "format": "date-time",
644
651
  "type": "string",
645
652
  },
@@ -666,6 +673,7 @@ exports[`openApi gets the openapi.json 1`] = `
666
673
  "type": "string",
667
674
  },
668
675
  "updated": {
676
+ "description": "When this document was last updated",
669
677
  "format": "date-time",
670
678
  "type": "string",
671
679
  },
@@ -780,6 +788,7 @@ exports[`openApi gets the openapi.json 1`] = `
780
788
  "type": "number",
781
789
  },
782
790
  "created": {
791
+ "description": "When this document was created",
783
792
  "format": "date-time",
784
793
  "type": "string",
785
794
  },
@@ -806,6 +815,7 @@ exports[`openApi gets the openapi.json 1`] = `
806
815
  "type": "string",
807
816
  },
808
817
  "updated": {
818
+ "description": "When this document was last updated",
809
819
  "format": "date-time",
810
820
  "type": "string",
811
821
  },
@@ -884,6 +894,7 @@ exports[`openApi gets the openapi.json 1`] = `
884
894
  "type": "number",
885
895
  },
886
896
  "created": {
897
+ "description": "When this document was created",
887
898
  "format": "date-time",
888
899
  "type": "string",
889
900
  },
@@ -910,6 +921,7 @@ exports[`openApi gets the openapi.json 1`] = `
910
921
  "type": "string",
911
922
  },
912
923
  "updated": {
924
+ "description": "When this document was last updated",
913
925
  "format": "date-time",
914
926
  "type": "string",
915
927
  },
@@ -1154,6 +1166,7 @@ exports[`openApi gets the openapi.json 1`] = `
1154
1166
  "type": "number",
1155
1167
  },
1156
1168
  "created": {
1169
+ "description": "When this document was created",
1157
1170
  "format": "date-time",
1158
1171
  "type": "string",
1159
1172
  },
@@ -1180,6 +1193,7 @@ exports[`openApi gets the openapi.json 1`] = `
1180
1193
  "type": "string",
1181
1194
  },
1182
1195
  "updated": {
1196
+ "description": "When this document was last updated",
1183
1197
  "format": "date-time",
1184
1198
  "type": "string",
1185
1199
  },
@@ -1258,6 +1272,7 @@ exports[`openApi gets the openapi.json 1`] = `
1258
1272
  "type": "number",
1259
1273
  },
1260
1274
  "created": {
1275
+ "description": "When this document was created",
1261
1276
  "format": "date-time",
1262
1277
  "type": "string",
1263
1278
  },
@@ -1284,6 +1299,7 @@ exports[`openApi gets the openapi.json 1`] = `
1284
1299
  "type": "string",
1285
1300
  },
1286
1301
  "updated": {
1302
+ "description": "When this document was last updated",
1287
1303
  "format": "date-time",
1288
1304
  "type": "string",
1289
1305
  },
@@ -1462,6 +1478,7 @@ exports[`openApi gets the openapi.json 1`] = `
1462
1478
  "type": "number",
1463
1479
  },
1464
1480
  "created": {
1481
+ "description": "When this document was created",
1465
1482
  "format": "date-time",
1466
1483
  "type": "string",
1467
1484
  },
@@ -1488,6 +1505,7 @@ exports[`openApi gets the openapi.json 1`] = `
1488
1505
  "type": "string",
1489
1506
  },
1490
1507
  "updated": {
1508
+ "description": "When this document was last updated",
1491
1509
  "format": "date-time",
1492
1510
  "type": "string",
1493
1511
  },
@@ -1566,6 +1584,7 @@ exports[`openApi gets the openapi.json 1`] = `
1566
1584
  "type": "number",
1567
1585
  },
1568
1586
  "created": {
1587
+ "description": "When this document was created",
1569
1588
  "format": "date-time",
1570
1589
  "type": "string",
1571
1590
  },
@@ -1592,6 +1611,7 @@ exports[`openApi gets the openapi.json 1`] = `
1592
1611
  "type": "string",
1593
1612
  },
1594
1613
  "updated": {
1614
+ "description": "When this document was last updated",
1595
1615
  "format": "date-time",
1596
1616
  "type": "string",
1597
1617
  },
@@ -1706,6 +1726,7 @@ exports[`openApi gets the openapi.json 1`] = `
1706
1726
  "type": "number",
1707
1727
  },
1708
1728
  "created": {
1729
+ "description": "When this document was created",
1709
1730
  "format": "date-time",
1710
1731
  "type": "string",
1711
1732
  },
@@ -1732,6 +1753,7 @@ exports[`openApi gets the openapi.json 1`] = `
1732
1753
  "type": "string",
1733
1754
  },
1734
1755
  "updated": {
1756
+ "description": "When this document was last updated",
1735
1757
  "format": "date-time",
1736
1758
  "type": "string",
1737
1759
  },
@@ -1810,6 +1832,7 @@ exports[`openApi gets the openapi.json 1`] = `
1810
1832
  "type": "number",
1811
1833
  },
1812
1834
  "created": {
1835
+ "description": "When this document was created",
1813
1836
  "format": "date-time",
1814
1837
  "type": "string",
1815
1838
  },
@@ -1836,6 +1859,7 @@ exports[`openApi gets the openapi.json 1`] = `
1836
1859
  "type": "string",
1837
1860
  },
1838
1861
  "updated": {
1862
+ "description": "When this document was last updated",
1839
1863
  "format": "date-time",
1840
1864
  "type": "string",
1841
1865
  },
@@ -2157,6 +2181,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
2157
2181
  "type": "number",
2158
2182
  },
2159
2183
  "created": {
2184
+ "description": "When this document was created",
2160
2185
  "format": "date-time",
2161
2186
  "type": "string",
2162
2187
  },
@@ -2183,6 +2208,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
2183
2208
  "type": "string",
2184
2209
  },
2185
2210
  "updated": {
2211
+ "description": "When this document was last updated",
2186
2212
  "format": "date-time",
2187
2213
  "type": "string",
2188
2214
  },
@@ -2261,6 +2287,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
2261
2287
  "type": "number",
2262
2288
  },
2263
2289
  "created": {
2290
+ "description": "When this document was created",
2264
2291
  "format": "date-time",
2265
2292
  "type": "string",
2266
2293
  },
@@ -2287,6 +2314,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
2287
2314
  "type": "string",
2288
2315
  },
2289
2316
  "updated": {
2317
+ "description": "When this document was last updated",
2290
2318
  "format": "date-time",
2291
2319
  "type": "string",
2292
2320
  },
@@ -2472,6 +2500,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
2472
2500
  "type": "number",
2473
2501
  },
2474
2502
  "created": {
2503
+ "description": "When this document was created",
2475
2504
  "format": "date-time",
2476
2505
  "type": "string",
2477
2506
  },
@@ -2498,6 +2527,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
2498
2527
  "type": "string",
2499
2528
  },
2500
2529
  "updated": {
2530
+ "description": "When this document was last updated",
2501
2531
  "format": "date-time",
2502
2532
  "type": "string",
2503
2533
  },
@@ -2576,6 +2606,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
2576
2606
  "type": "number",
2577
2607
  },
2578
2608
  "created": {
2609
+ "description": "When this document was created",
2579
2610
  "format": "date-time",
2580
2611
  "type": "string",
2581
2612
  },
@@ -2602,6 +2633,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
2602
2633
  "type": "string",
2603
2634
  },
2604
2635
  "updated": {
2636
+ "description": "When this document was last updated",
2605
2637
  "format": "date-time",
2606
2638
  "type": "string",
2607
2639
  },
@@ -2716,6 +2748,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
2716
2748
  "type": "number",
2717
2749
  },
2718
2750
  "created": {
2751
+ "description": "When this document was created",
2719
2752
  "format": "date-time",
2720
2753
  "type": "string",
2721
2754
  },
@@ -2742,6 +2775,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
2742
2775
  "type": "string",
2743
2776
  },
2744
2777
  "updated": {
2778
+ "description": "When this document was last updated",
2745
2779
  "format": "date-time",
2746
2780
  "type": "string",
2747
2781
  },
@@ -2820,6 +2854,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
2820
2854
  "type": "number",
2821
2855
  },
2822
2856
  "created": {
2857
+ "description": "When this document was created",
2823
2858
  "format": "date-time",
2824
2859
  "type": "string",
2825
2860
  },
@@ -2846,6 +2881,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
2846
2881
  "type": "string",
2847
2882
  },
2848
2883
  "updated": {
2884
+ "description": "When this document was last updated",
2849
2885
  "format": "date-time",
2850
2886
  "type": "string",
2851
2887
  },
@@ -3090,6 +3126,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
3090
3126
  "type": "number",
3091
3127
  },
3092
3128
  "created": {
3129
+ "description": "When this document was created",
3093
3130
  "format": "date-time",
3094
3131
  "type": "string",
3095
3132
  },
@@ -3116,6 +3153,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
3116
3153
  "type": "string",
3117
3154
  },
3118
3155
  "updated": {
3156
+ "description": "When this document was last updated",
3119
3157
  "format": "date-time",
3120
3158
  "type": "string",
3121
3159
  },
@@ -3194,6 +3232,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
3194
3232
  "type": "number",
3195
3233
  },
3196
3234
  "created": {
3235
+ "description": "When this document was created",
3197
3236
  "format": "date-time",
3198
3237
  "type": "string",
3199
3238
  },
@@ -3220,6 +3259,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
3220
3259
  "type": "string",
3221
3260
  },
3222
3261
  "updated": {
3262
+ "description": "When this document was last updated",
3223
3263
  "format": "date-time",
3224
3264
  "type": "string",
3225
3265
  },
@@ -3398,6 +3438,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
3398
3438
  "type": "number",
3399
3439
  },
3400
3440
  "created": {
3441
+ "description": "When this document was created",
3401
3442
  "format": "date-time",
3402
3443
  "type": "string",
3403
3444
  },
@@ -3424,6 +3465,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
3424
3465
  "type": "string",
3425
3466
  },
3426
3467
  "updated": {
3468
+ "description": "When this document was last updated",
3427
3469
  "format": "date-time",
3428
3470
  "type": "string",
3429
3471
  },
@@ -3502,6 +3544,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
3502
3544
  "type": "number",
3503
3545
  },
3504
3546
  "created": {
3547
+ "description": "When this document was created",
3505
3548
  "format": "date-time",
3506
3549
  "type": "string",
3507
3550
  },
@@ -3528,6 +3571,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
3528
3571
  "type": "string",
3529
3572
  },
3530
3573
  "updated": {
3574
+ "description": "When this document was last updated",
3531
3575
  "format": "date-time",
3532
3576
  "type": "string",
3533
3577
  },
@@ -3642,6 +3686,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
3642
3686
  "type": "number",
3643
3687
  },
3644
3688
  "created": {
3689
+ "description": "When this document was created",
3645
3690
  "format": "date-time",
3646
3691
  "type": "string",
3647
3692
  },
@@ -3668,6 +3713,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
3668
3713
  "type": "string",
3669
3714
  },
3670
3715
  "updated": {
3716
+ "description": "When this document was last updated",
3671
3717
  "format": "date-time",
3672
3718
  "type": "string",
3673
3719
  },
@@ -3746,6 +3792,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
3746
3792
  "type": "number",
3747
3793
  },
3748
3794
  "created": {
3795
+ "description": "When this document was created",
3749
3796
  "format": "date-time",
3750
3797
  "type": "string",
3751
3798
  },
@@ -3772,6 +3819,7 @@ exports[`openApi gets the openapi.json with custom endpoint 1`] = `
3772
3819
  "type": "string",
3773
3820
  },
3774
3821
  "updated": {
3822
+ "description": "When this document was last updated",
3775
3823
  "format": "date-time",
3776
3824
  "type": "string",
3777
3825
  },