Răsfoiți Sursa

Revise Revision schema to use ObjectId references for _id and author properties

Yuki Takei 11 luni în urmă
părinte
comite
26bae68365
1 a modificat fișierele cu 2 adăugiri și 4 ștergeri
  1. 2 4
      apps/app/src/server/models/openapi/revision.ts

+ 2 - 4
apps/app/src/server/models/openapi/revision.ts

@@ -8,15 +8,13 @@
  *        type: object
  *        properties:
  *          _id:
- *            type: string
- *            description: revision ID
- *            example: 5e0734e472560e001761fa68
+ *            $ref: '#/components/schemas/ObjectId'
  *          __v:
  *            type: number
  *            description: DB record version
  *            example: 0
  *          author:
- *            $ref: '#/components/schemas/User/properties/_id'
+ *            $ref: '#/components/schemas/ObjectId'
  *          body:
  *            type: string
  *            description: content body