Updated schema

This commit is contained in:
Keannu Bernasol 2023-07-27 00:17:35 +08:00
parent accf87e332
commit a608db275c
2 changed files with 4 additions and 8 deletions

View file

@ -28,7 +28,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = str(os.getenv('SECRET_KEY')) SECRET_KEY = str(os.getenv('SECRET_KEY'))
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = False
FRONTEND_DEBUG = False FRONTEND_DEBUG = False
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['*']

View file

@ -910,7 +910,6 @@ components:
type: array type: array
items: items:
type: string type: string
nullable: true
avatar: avatar:
type: string type: string
format: uri format: uri
@ -923,11 +922,9 @@ components:
maxLength: 100 maxLength: 100
irregular: irregular:
type: boolean type: boolean
readOnly: true
required: required:
- course_shortname - course_shortname
- first_name - first_name
- irregular
- last_name - last_name
- semester_shortname - semester_shortname
- student_id_number - student_id_number
@ -1023,7 +1020,6 @@ components:
type: array type: array
items: items:
type: string type: string
nullable: true
avatar: avatar:
type: string type: string
format: uri format: uri
@ -1036,7 +1032,6 @@ components:
maxLength: 100 maxLength: 100
irregular: irregular:
type: boolean type: boolean
readOnly: true
PatchedStudentStatus: PatchedStudentStatus:
type: object type: object
properties: properties:
@ -1179,8 +1174,9 @@ components:
id: id:
type: integer type: integer
readOnly: true readOnly: true
subject: name:
type: string type: string
maxLength: 64
code: code:
type: string type: string
maxLength: 16 maxLength: 16
@ -1197,8 +1193,8 @@ components:
- code - code
- course - course
- id - id
- name
- semester - semester
- subject
- year_level - year_level
TokenObtainPair: TokenObtainPair:
type: object type: object