@elysiajs/openapi 1.4.6 → 1.4.7

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.
@@ -8465,7 +8465,7 @@ var fromTypes = (targetFilePath, {
8465
8465
  );
8466
8466
  const routes = {};
8467
8467
  for (const route of extractRootObjects(routesString)) {
8468
- let schema = TypeBox(route);
8468
+ let schema = TypeBox(route.replaceAll(/readonly/g, ""));
8469
8469
  if (schema.type !== "object") continue;
8470
8470
  const paths = [];
8471
8471
  while (true) {
@@ -8454,7 +8454,7 @@ var fromTypes = (targetFilePath, {
8454
8454
  );
8455
8455
  const routes = {};
8456
8456
  for (const route of extractRootObjects(routesString)) {
8457
- let schema = TypeBox(route);
8457
+ let schema = TypeBox(route.replaceAll(/readonly/g, ""));
8458
8458
  if (schema.type !== "object") continue;
8459
8459
  const paths = [];
8460
8460
  while (true) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elysiajs/openapi",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "Plugin for Elysia to auto-generate API documentation",
5
5
  "author": {
6
6
  "name": "saltyAom",