-
Notifications
You must be signed in to change notification settings - Fork 52
LCORE-390: fields descriptions in Attachment class #346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LCORE-390: fields descriptions in Attachment class #346
Conversation
WalkthroughThe changes primarily enhance the API documentation for the "Attachment" model by adding descriptive metadata and example values to its fields in the OpenAPI schema, markdown docs, and Pydantic model. Additionally, a comprehensive OpenAPI specification document for the Lightspeed Core Service API is introduced, detailing endpoints and data models. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant LCS_API
Client->>LCS_API: POST /v1/query (with Attachment)
Note right of LCS_API: Attachment fields include\n descriptions & examples in schema
LCS_API-->>Client: QueryResponse (with Attachment details)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (2)
docs/output.md (2)
323-329: Add language identifier to fenced YAML blockThe example Kubernetes manifest lacks a language tag, triggering MD040 and losing syntax highlighting.
-``` +```yaml kind: Pod metadata: name: private-reg -``` +```
314-321: Grammar/consistency tweak in Attachment description“can be send” ➜ “can be sent”.
Consider wrapping field names in back-ticks for consistency with other sections.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
docs/openapi.json(2 hunks)docs/openapi.md(1 hunks)docs/output.md(1 hunks)src/models/requests.py(1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
docs/output.md
28-28: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
29-29: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
29-29: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
44-44: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
45-45: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
45-45: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
60-60: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
61-61: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
62-62: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
81-81: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
82-82: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
83-83: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
84-84: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
85-85: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
86-86: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
88-88: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
89-89: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
89-89: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
109-109: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
110-110: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
110-110: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
125-125: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
126-126: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
127-127: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
156-156: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
157-157: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
158-158: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
159-159: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
160-160: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
161-161: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
162-162: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
163-163: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
163-163: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
181-181: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
182-182: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
182-182: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
202-202: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
203-203: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
206-206: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
207-207: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
207-207: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
227-227: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
228-228: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
231-231: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
232-232: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
232-232: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
247-247: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
248-248: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
249-249: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
250-250: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
250-250: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
265-265: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
266-266: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
267-267: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
268-268: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
268-268: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
283-283: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
284-284: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
285-285: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
286-286: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
287-287: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
288-288: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
288-288: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
303-303: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
304-304: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
304-304: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
325-325: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build-pr
🔇 Additional comments (3)
src/models/requests.py (1)
34-44: Excellent documentation enhancement!The addition of descriptive metadata and examples to the Attachment fields significantly improves API documentation clarity. The descriptions are concise yet informative, and the examples are realistic and helpful for API consumers.
docs/openapi.md (1)
334-336: Perfect documentation consistency!The field descriptions in the markdown table perfectly match the Pydantic model Field descriptions, ensuring consistent API documentation across all formats.
docs/openapi.json (1)
637-657: Comprehensive schema documentation improvement!The OpenAPI schema enhancements are excellently implemented with proper descriptions, examples, and titles for each Attachment field. This will significantly improve auto-generated API documentation and client SDK quality.
| ### ✅ Responses | ||
|
|
||
| | Status Code | Description | Component | | ||
| |-------------|-------------|-----------| | ||
| | 200 | Successful Response | string | ||
| | | ||
| ## GET `/v1/info` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Fix improper Markdown table syntax to ensure correct rendering
Rows in this (and many subsequent) tables are missing the trailing | and the tables are not surrounded by blank lines, violating MD055/MD056/MD058. GitHub/GitLab therefore render them as plain text instead of tables.
-| 200 | Successful Response | string
+| 200 | Successful Response | string |Please run markdownlint -f or your editor’s auto-formatter across the whole file to append the missing pipes and insert the required blank lines in one sweep.
Committable suggestion skipped: line range outside the PR's diff.
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
28-28: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
29-29: Table column count
Expected: 3; Actual: 1; Too few cells, row will be missing data
(MD056, table-column-count)
29-29: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
🤖 Prompt for AI Agents
In docs/output.md around lines 24 to 30, the Markdown tables are missing
trailing pipe characters and surrounding blank lines, causing rendering issues.
Fix this by adding a trailing pipe '|' at the end of each table row and ensure
there is a blank line before and after each table. Run a markdown linter or
formatter like `markdownlint -f` on the entire file to automatically correct
these syntax issues consistently.
Description
LCORE-390: fields descriptions in Attachment class
Type of change
Related Tickets & Documents
Summary by CodeRabbit