Skip to content

Require schoolname on GET /school#6

Open
injoon5 wants to merge 1 commit into
mainfrom
cursor/remove-school-default-c78e
Open

Require schoolname on GET /school#6
injoon5 wants to merge 1 commit into
mainfrom
cursor/remove-school-default-c78e

Conversation

@injoon5

@injoon5 injoon5 commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

GET /school no longer defaults to 양정고등학교 when schoolname is omitted. The endpoint now requires schoolname and returns MISSING_SCHOOL_IDENTIFIER (400), matching the other school-scoped routes.

Changes

  • Call requireSchoolParam before querying NEIS
  • Update OpenAPI description and document the 400 response
  • Add a structural test for the missing-parameter case

Testing

  • npm run build && npm test
Open in Web Open in Cursor 

Omitting schoolname now returns MISSING_SCHOOL_IDENTIFIER (400), consistent with other endpoints.

Co-authored-by: Injoon Oh <injoon5@icloud.com>
@vercel

vercel Bot commented May 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
school-api Ready Ready Preview, Comment May 26, 2026 3:04pm

@injoon5 injoon5 marked this pull request as ready for review May 26, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants