ソースを参照

fix: Use i32 to store the primary keys

Sean Blackburn 1 年間 前
コミット
0b4ecc2162

+ 1 - 1
src/components/schemas/api/module.yaml

@@ -24,7 +24,7 @@ properties:
       - integer
       - "null"
     default: null
-    format: u32
+    format: i32
   module_related_pk:
     description: Related modules
     type: array

+ 1 - 1
src/components/schemas/common/pk-latest.yaml

@@ -1,7 +1,7 @@
 description: PK of the to fetch. To fetch the most up-to-date entry, use `latest`
 oneOf:
   - type: integer
-    format: u32
+    format: i32
   - type: string
     oneOf:
       - id: latest

+ 1 - 1
src/components/schemas/common/pk.yaml

@@ -1,3 +1,3 @@
 type: integer
-format: u32
+format: i32
 description: Primary key

+ 1 - 1
src/components/schemas/relations/course-pk.yaml

@@ -1,3 +1,3 @@
 description: The governing course for this enrolment
 type: integer
-format: u32
+format: i32

+ 1 - 1
src/components/schemas/relations/lecture-series-pk.yaml

@@ -1,3 +1,3 @@
 description: The lecture-series
 type: integer
-format: u32
+format: i32

+ 1 - 1
src/components/schemas/relations/lecturer-pk.yaml

@@ -1,3 +1,3 @@
 description: Lecturer PK
 type: integer
-format: u32
+format: i32

+ 1 - 1
src/components/schemas/relations/module-pk.yaml

@@ -1,3 +1,3 @@
 type: integer
-format: u32
+format: i32
 description: Relation to a module

+ 1 - 1
src/components/schemas/relations/term-pk.yaml

@@ -1,3 +1,3 @@
 description: In which term this takes place
 type: integer
-format: u32
+format: i32

+ 1 - 1
src/components/schemas/relations/term-revision-pk.yaml

@@ -1,3 +1,3 @@
 description: In which term/revision this takes place
 type: integer
-format: u32
+format: i32