π¨ Palette: OpenAPI μ€ν€λ§ μμ μΆκ°λ‘ λ°±μλ DX κ°μ - #763
π¨ Palette: OpenAPI μ€ν€λ§ μμ μΆκ°λ‘ λ°±μλ DX κ°μ #763seonghobae wants to merge 3 commits into
Conversation
|
π Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a π emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Warning Review limit reachedNext included review available in 3 minutes. View limit detailsLimit details: Youβve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: βοΈ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: π Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| description=( | ||
| "MinerU parsing mode: `auto` (born-digital text PDFs skip forced " | ||
| "OCR), `ocr` (force OCR), or `txt` (embedded text layer only)." | ||
| ) | ||
| ), | ||
| json_schema_extra={"example": "auto"}, |
There was a problem hiding this comment.
π OpenAPI μμ νκ· κ²μ¦ λλ½
μ json_schema_extra κ°μ μμ±λ /openapi.jsonμμ κ²μ¦λμ§ μμ΅λλ€. μ μ₯μμ TDD κ·μΉμ λ°λΌ λ μμ λ₯Ό κ³ μ νλ νκ· ν
μ€νΈκ° νμν©λλ€.
(Refers to this code)
Was this helpful? React with π or π to provide feedback.
|
|
||
| **Learning:** λ°±μλ μ μ© νλ‘μ νΈ(νλ‘ νΈμλκ° μλ κ²½μ°)μμλ 'UX(μ¬μ©μ κ²½ν)'κ° μ£Όλ‘ 'DX(κ°λ°μ κ²½ν)'λ‘ ν΄μλ©λλ€. OpenAPI/Swagger μ€ν€λ§μ `json_schema_extra={"example": ...}`μ κ°μ ꡬ체μ μΈ μμλ₯Ό μΆκ°νλ©΄ APIλ₯Ό μ¬μ©νλ κ°λ°μλ€μ μΈν°νμ΄μ€ μ΄ν΄λλ₯Ό λμΌ μ μμ΅λλ€. | ||
| **Action:** ν₯ν λ°±μλ API μ€μ¬μ νλ‘μ νΈμμλ Pydantic μ€ν€λ§ μ μμ νλΆν λ¬Έμνμ μμ λ°μ΄ν°κ° ν¬ν¨λμ΄ μλμ§ νμΈνμ¬ κ°λ°μ κ²½νμ κ°μ ν κ²μ λλ€. | ||
| ## 2024-08-30 - OpenAPI μ€ν€λ§ μμ μΆκ°λ‘ λ°±μλ DX κ°μ |
π‘ What: FastAPI
/parseμλν¬μΈνΈμ νΌ νλΌλ―Έν°μjson_schema_extra={"example": "ch"}λ₯Ό μΆκ°νκ³ λΆνμνFile(...)μ μλ΅ κΈ°νΈλ₯Ό μ κ±°νμ΅λλ€.\nπ― Why: Swagger UIλ₯Ό μ¬μ©νλ κ°λ°μλ€μκ² λͺ νν μμλ₯Ό μ 곡νμ¬ μΈν°νμ΄μ€ μ΄ν΄λλ₯Ό λμ΄κ³ κ°λ°μ κ²½ν(DX)μ ν₯μμν€κΈ° μν¨μ λλ€.\nβΏ Accessibility: API λ¬Έμ κ°λ μ± λ° μ¬μ©μ± κ°μPR created automatically by Jules for task 14353309580207807095 started by @seonghobae