Skip to content

Update API Client Specs to v1.2.7#5

Open
StatPan wants to merge 1 commit intomasterfrom
update-api-specs
Open

Update API Client Specs to v1.2.7#5
StatPan wants to merge 1 commit intomasterfrom
update-api-specs

Conversation

@StatPan
Copy link
Copy Markdown
Owner

@StatPan StatPan commented Mar 13, 2026

This PR updates the API client with the latest specifications from the National Assembly Open API.

  • Synced latest master list
  • Downloaded new/updated specs
  • Regenerated Enums and Pydantic Models
  • Version bumped to 1.2.7

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the API client to version 1.2.6, incorporating the latest specifications from the National Assembly Open API. The changes ensure the client remains current with the external API, involving a refresh of the master list, new and updated API specifications, and the subsequent regeneration of Python models and enums to support these changes.

Highlights

  • Version Bump: The client version has been updated from 1.2.5 to 1.2.6 in pyproject.toml.
  • API Client Update: The API client has been synchronized with the latest specifications from the National Assembly Open API.
  • Model and Parameter Regeneration: Enums and Pydantic Models have been regenerated to reflect the updated API specifications.
  • Service Definition Changes: Specific service definitions in src/assembly_client/generated/services.py have been updated, including changes to existing enum values and the addition of new ones for '의안_접수목록' and '의안정보_통합_API'.
  • New Test Fixtures: Numerous new JSON test fixtures have been added to cover the updated and new API endpoints.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • pyproject.toml
    • Updated project version from 1.2.5 to 1.2.6.
  • src/assembly_client/generated/init.py
    • Modified MODEL_MAP and PARAM_MAP dictionaries to reflect new and updated API model and parameter mappings.
  • src/assembly_client/generated/services.py
    • Updated API service definitions by changing existing enum values and adding new ones for specific endpoints like '의안_접수목록' and '의안정보_통합_API'.
  • tests/fixtures/OPEN_API_전체_현황.json
    • Added new JSON fixture for the 'OPEN_API_전체_현황' endpoint.
  • tests/fixtures/S8급_공개경쟁_채용현황.json
    • Added new JSON fixture for the 'S8급_공개경쟁_채용현황' endpoint.
  • tests/fixtures/S9급_공개경쟁_채용현황.json
    • Added new JSON fixture for the 'S9급_공개경쟁_채용현황' endpoint.
  • tests/fixtures/국회_보유_자산_건물.json
    • Added new JSON fixture for the '국회_보유_자산_건물' endpoint.
  • tests/fixtures/국회_보유_자산_전체.json
    • Added new JSON fixture for the '국회_보유_자산_전체' endpoint.
  • tests/fixtures/국회_보유_자산_토지.json
    • Added new JSON fixture for the '국회_보유_자산_토지' endpoint.
  • tests/fixtures/국회의원_영상회의록_발언영상.json
    • Added new JSON fixture for the '국회의원_영상회의록_발언영상' endpoint.
  • tests/fixtures/국회입법조사처_알림지_국회입법조사처보.json
    • Added new JSON fixture for the '국회입법조사처_알림지_국회입법조사처보' endpoint.
  • tests/fixtures/국회입법조사처_알림지_홍보책자.json
    • Added new JSON fixture for the '국회입법조사처_알림지_홍보책자' endpoint.
  • tests/fixtures/국회입법조사처_연구보고서_NARS_현안분석.json
    • Added new JSON fixture for the '국회입법조사처_연구보고서_NARS_현안분석' endpoint.
  • tests/fixtures/국회입법조사처_연구보고서_국정감사관련_보고서.json
    • Added new JSON fixture for the '국회입법조사처_연구보고서_국정감사관련_보고서' endpoint.
  • tests/fixtures/국회입법조사처_연구보고서_국제통계_동향과_분석.json
    • Added new JSON fixture for the '국회입법조사처_연구보고서_국제통계_동향과_분석' endpoint.
  • tests/fixtures/국회입법조사처_연구보고서_외국입법_동향과_분석.json
    • Added new JSON fixture for the '국회입법조사처_연구보고서_외국입법_동향과_분석' endpoint.
  • tests/fixtures/국회입법조사처_연구보고서_외국입법_정책_분석.json
    • Added new JSON fixture for the '국회입법조사처_연구보고서_외국입법_정책_분석' endpoint.
  • tests/fixtures/국회입법조사처_연구보고서_이슈와_논점.json
    • Added new JSON fixture for the '국회입법조사처_연구보고서_이슈와_논점' endpoint.
  • tests/fixtures/국회입법조사처_연구보고서_입법_정책보고서.json
    • Added new JSON fixture for the '국회입법조사처_연구보고서_입법_정책보고서' endpoint.
  • tests/fixtures/국회입법조사처_연구보고서_입법영향분석보고서.json
    • Added new JSON fixture for the '국회입법조사처_연구보고서_입법영향분석보고서' endpoint.
  • tests/fixtures/국회입법조사처_연구보고서_지표로_보는_이슈.json
    • Added new JSON fixture for the '국회입법조사처_연구보고서_지표로_보는_이슈' endpoint.
  • tests/fixtures/국회입법조사처_학술지_입법과_정책.json
    • Added new JSON fixture for the '국회입법조사처_학술지_입법과_정책' endpoint.
  • tests/fixtures/법률안_심사_및_처리_계류의안.json
    • Added new JSON fixture for the '법률안_심사_및_처리_계류의안' endpoint.
  • tests/fixtures/법률안_심사_및_처리_본회의부의안건.json
    • Added new JSON fixture for the '법률안_심사_및_처리_본회의부의안건' endpoint.
  • tests/fixtures/법률안_심사_및_처리_위원회안_대안.json
    • Added new JSON fixture for the '법률안_심사_및_처리_위원회안_대안' endpoint.
  • tests/fixtures/법률안_심사_및_처리_의안검색.json
    • Added new JSON fixture for the '법률안_심사_및_처리_의안검색' endpoint.
  • tests/fixtures/법률안_심사_및_처리_처리의안.json
    • Added new JSON fixture for the '법률안_심사_및_처리_처리의안' endpoint.
  • tests/fixtures/법률안_심사_및_처리_최근_본회의처리_의안.json
    • Added new JSON fixture for the '법률안_심사_및_처리_최근_본회의처리_의안' endpoint.
  • tests/fixtures/법률안_제안이유_및_주요내용.json
    • Added new JSON fixture for the '법률안_제안이유_및_주요내용' endpoint.
  • tests/fixtures/수입징수현황_수입목별.json
    • Added new JSON fixture for the '수입징수현황_수입목별' endpoint.
  • tests/fixtures/수입징수현황_수입항별.json
    • Added new JSON fixture for the '수입징수현황_수입항별' endpoint.
  • tests/fixtures/역대_국회_선거일_의원정수_임기정보.json
    • Added new JSON fixture for the '역대_국회_선거일_의원정수_임기정보' endpoint.
  • tests/fixtures/영문_국회_소식_및_보도자료.json
    • Added new JSON fixture for the '영문_국회_소식_및_보도자료' endpoint.
  • tests/fixtures/영문_국회의원_정보.json
    • Added new JSON fixture for the '영문_국회의원_정보' endpoint.
  • tests/fixtures/영문_국회의장_연설문.json
    • Added new JSON fixture for the '영문_국회의장_연설문' endpoint.
  • tests/fixtures/영문_국회의장_주요동정.json
    • Added new JSON fixture for the '영문_국회의장_주요동정' endpoint.
  • tests/fixtures/영문_국회일정.json
    • Added new JSON fixture for the '영문_국회일정' endpoint.
  • tests/fixtures/영문_위원회_정보.json
    • Added new JSON fixture for the '영문_위원회_정보' endpoint.
  • tests/fixtures/영문_최신_처리_의안.json
    • Added new JSON fixture for the '영문_최신_처리_의안' endpoint.
  • tests/fixtures/의안_심사정보_예_결산_제외.json
    • Added new JSON fixture for the '의안_심사정보_예_결산_제외' endpoint.
  • tests/fixtures/의안_접수목록_OOWY4R001216HX11458.json
    • Added new JSON fixture for the '의안_접수목록_OOWY4R001216HX11458' endpoint.
  • tests/fixtures/의안정보_통합_API_OOWY4R001216HX11440.json
    • Added new JSON fixture for the '의안정보_통합_API_OOWY4R001216HX11440' endpoint.
  • tests/fixtures/의원연맹별_보조금_예산.json
    • Added new JSON fixture for the '의원연맹별_보조금_예산' endpoint.
  • tests/fixtures/입법고시_5급_채용현황.json
    • Added new JSON fixture for the '입법고시_5급_채용현황' endpoint.
  • tests/fixtures/지출집행현황_단위사업별.json
    • Added new JSON fixture for the '지출집행현황_단위사업별' endpoint.
  • tests/fixtures/지출집행현황_세부사업별.json
    • Added new JSON fixture for the '지출집행현황_세부사업별' endpoint.
  • tests/fixtures/처리_의안통계_발의주체별_법률안.json
    • Added new JSON fixture for the '처리_의안통계_발의주체별_법률안' endpoint.
  • tests/fixtures/처리_의안통계_위원회별.json
    • Added new JSON fixture for the '처리_의안통계_위원회별' endpoint.
  • tests/fixtures/처리_의안통계_위원회별_법률안.json
    • Added new JSON fixture for the '처리_의안통계_위원회별_법률안' endpoint.
  • tests/fixtures/처리_의안통계_의안종류별_위원회별.json
    • Added new JSON fixture for the '처리_의안통계_의안종류별_위원회별' endpoint.
  • tests/fixtures/처리_의안통계_총괄.json
    • Added new JSON fixture for the '처리_의안통계_총괄' endpoint.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the API client to version 1.2.6, reflecting the latest specifications from the National Assembly Open API. The changes primarily involve regenerating models and enums based on the new specs and adding corresponding test fixtures. My review has identified a significant breaking change in the Service enum that could impact users of the library. I have also noted a minor stylistic issue across the newly added test fixture files. Please see the detailed comments for suggestions.

Comment on lines +217 to +223
의안_접수목록 = "OOWY4R001216HX11537"
의안_접수목록_OOWY4R001216HX11458 = "OOWY4R001216HX11458"
의안_제안자정보 = "OOWY4R001216HX11460"
의안별_표결현황 = "OND1KZ0009677M13515"
의안별_회의록_목록 = "OOWY4R001216HX11526"
의안정보_통합_API = "OOWY4R001216HX11440"
의안정보_통합_API = "OOWY4R001216HX11536"
의안정보_통합_API_OOWY4R001216HX11440 = "OOWY4R001216HX11440"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The values for Service.의안_접수목록 and Service.의안정보_통합_API have been changed to point to new service IDs. This is a breaking change for users of the library, as their code relying on these enum members will now call different API endpoints unexpectedly.

While the old service IDs are preserved in new enum members with suffixes (e.g., 의안_접수목록_OOWY4R001216HX11458), changing the value of an existing public enum member violates semantic versioning principles for a minor version bump and can lead to subtle bugs in consumer code.

To maintain backward compatibility, I suggest keeping the original enum members pointing to their old service IDs and introducing new members for the new services. For example:

    의안_접수목록 = "OOWY4R001216HX11458"
    의안_접수목록_V2 = "OOWY4R001216HX11537"  # Or a more descriptive name
    ...
    의안정보_통합_API = "OOWY4R001216HX11440"
    의안정보_통합_API_V2 = "OOWY4R001216HX11536"

If the old endpoints are deprecated, it would be better to rename them to explicitly mark them as such (e.g., 의안_접수목록_DEPRECATED).

Since this file is auto-generated, this likely requires a change in the code generator. As a temporary measure for this PR, you could manually adjust this file to prevent this breaking change.

]
}
]
} No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This file is missing a final newline character. It's a POSIX standard and a common convention to end text files with a newline. This can prevent issues with certain tools (like cat, wc) and diff viewers. This comment applies to all newly added JSON fixture files in this pull request.

@StatPan StatPan force-pushed the update-api-specs branch 7 times, most recently from ac4a32f to e54680a Compare March 19, 2026 15:55
@StatPan StatPan force-pushed the update-api-specs branch 7 times, most recently from eab818a to e053ec9 Compare March 26, 2026 16:12
@StatPan StatPan force-pushed the update-api-specs branch 4 times, most recently from b8927b1 to bca7972 Compare March 30, 2026 16:07
@StatPan StatPan changed the title Update API Client Specs to v1.2.6 Update API Client Specs to v1.2.7 Mar 31, 2026
@StatPan StatPan force-pushed the update-api-specs branch 7 times, most recently from beb24d7 to 625a17c Compare April 6, 2026 15:45
@StatPan StatPan force-pushed the update-api-specs branch 2 times, most recently from b421901 to 24bc857 Compare April 8, 2026 16:14
@StatPan StatPan force-pushed the update-api-specs branch 7 times, most recently from e810e05 to 5f82ba0 Compare April 15, 2026 16:04
@StatPan StatPan force-pushed the update-api-specs branch 7 times, most recently from 79ec0f1 to 8c98082 Compare April 22, 2026 16: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.

1 participant