Bladeren bron

feat!: Rename id fields to pk

Close #3
Sean Blackburn 1 jaar geleden
bovenliggende
commit
4c8f31c9ce

+ 3 - 3
src/components/examples/module-history.yaml

@@ -13,7 +13,7 @@ aet1:
     pages:
       - 3
       - 5
-    id: 1Ea-aet1-0-29700-39600
+    pk: 1Ea-aet1-0-29700-39600
 afana:
   - semester: 12HS
     version: korr_8
@@ -28,7 +28,7 @@ afana:
       - "4.417"
     pages:
       - 3
-    id: 1Ia-afana-1-45900-54600
+    pk: 1Ia-afana-1-45900-54600
   - semester: 12HS
     version: korr_8
     weekday: 1
@@ -42,4 +42,4 @@ afana:
       - "4.427"
     pages:
       - 4
-    id: 1Ib-afana-1-33000-42300
+    pk: 1Ib-afana-1-33000-42300

+ 4 - 4
src/components/examples/modules.yaml

@@ -3,8 +3,8 @@
   for_degrees:
     - Elektro- und Informationstechnik
     - Systemtechnik
-  module_id: 6007771
-  module_ids:
+  module_pk: 6007771
+  module_related_pk:
     - 6007771
   ects: 3
   marks:
@@ -25,8 +25,8 @@
 - short: ast1
   name: "Analoge Schaltungstechnik 1 "
   for_degrees: null
-  module_id: null
-  module_ids: null
+  module_pk: null
+  module_related_pk: null
   ects: null
   marks: null
   cat: null

+ 2 - 2
src/components/examples/{semester}/blockclasses.yaml

@@ -10,7 +10,7 @@
     - 1
   degree_prg: Maschinenbau
   part_of_other_classes: []
-  id: 5Me-aem-b
+  pk: 5Me-aem-b
 - weekday: null
   from: 0
   to: 0
@@ -23,4 +23,4 @@
     - 1
   degree_prg: Kontext GSW
   part_of_other_classes: []
-  id: 7KGb-alges-b
+  pk: 7KGb-alges-b

+ 2 - 2
src/components/examples/{semester}/{version}/classes.yaml

@@ -12,7 +12,7 @@
     - 1
   degree_prg: Data Science
   part_of_other_classes: []
-  id: 1Da-dummy-0-29700-64800
+  pk: 1Da-dummy-0-29700-64800
 - weekday: 1
   from: 29700
   to: 36000
@@ -27,4 +27,4 @@
     - 1
   degree_prg: Data Science
   part_of_other_classes: []
-  id: 1Da-eda-1-29700-36000
+  pk: 1Da-eda-1-29700-36000

+ 2 - 2
src/components/schemas/module-history.yaml

@@ -45,7 +45,7 @@ additionalProperties:
         items:
           type: integer
           format: int16
-      id:
+      pk:
         description: A unique ID for this module and the time it is taught
         type: string
     required:
@@ -59,4 +59,4 @@ additionalProperties:
       - teaching_type
       - rooms
       - pages
-      - id
+      - pk

+ 4 - 4
src/components/schemas/module.yaml

@@ -14,12 +14,12 @@ properties:
       - "null"
     items:
       type: string
-  module_id:
+  module_pk:
     description: The unique module ID number.
     type:
       - number
       - "null"
-  module_ids:
+  module_related_pk:
     description: TODO
     type:
       - array
@@ -65,8 +65,8 @@ required:
   - short
   - name
   - for_degrees
-  - module_id
-  - module_ids
+  - module_pk
+  - module_related_pk
   - ects
   - marks
   - cat

+ 2 - 2
src/components/schemas/{semester}/blockclass.yaml

@@ -45,7 +45,7 @@ properties:
     type: array
     items:
       type: string
-  id:
+  pk:
     description: Unique identifier for this blockmodule
     type: string
 required:
@@ -60,4 +60,4 @@ required:
   - pages
   - degree_prg
   - part_of_other_classes
-  - id
+  - pk

+ 2 - 2
src/components/schemas/{semester}/{version}/class.yaml

@@ -44,7 +44,7 @@ properties:
     type: array
     items:
       type: string
-  id:
+  pk:
     description: A unique ID for this module and the time it is taught
     type: string
 required:
@@ -59,4 +59,4 @@ required:
   - pages
   - degree_prg
   - part_of_other_classes
-  - id
+  - pk