docs: enhance openapi spec docs and cleanup script#9
Conversation
WalkthroughRenames and consolidates OpenAPI schemas to Open*-prefixed types, updates $ref usages and map representation to additionalProperties:string, and adds env-scoped route/parameter changes in the API. Adds a cleanup block to generate.sh that prunes files, normalizes line endings, trims trailing spaces, and ensures final newlines. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
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. 🧪 Early access (Sonnet 4.5): enabledWe are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note:
Comment |
apollo-openapi.yaml
Outdated
| example: | ||
| message: 'App not found' | ||
| /openapi/v1/envs/{env}/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/items/{key}: | ||
| /openapi/v1/apps/{appId}/envs/{env}/clusters/{clusterName}/namespaces/{namespaceName}/items/{key}: |
There was a problem hiding this comment.
Incompatible changes may affect users' ability to interface with OpenAPI interfaces
There was a problem hiding this comment.
Already fixed that issue, thanks for reviewing!
generate.sh
Outdated
| find . -type d \( -name .git -o -name .idea -o -name .mvn -o -name target -o -name build -o -name node_modules \) -prune -o \ | ||
| -type f \( -name "*.java" -o -name "*.xml" -o -name "*.properties" -o -name "*.md" -o -name "*.yml" -o -name "*.yaml" -o -name "*.sh" -o -name ".editorconfig" -o -name ".gitignore" -o -name "mvnw" -o -name "mvnw.cmd" \) -print0 \ | ||
| | xargs -0 perl -i -0777 -pe 's/[ \t]+(?=\r?$)//mg; s/\r//g; s/\s*\z/\n/s' | ||
| echo "Done." |
There was a problem hiding this comment.
avoid ambiguity, for example "Cleaning files (trailing spaces, CRLF, EOF newlines) Done".
There was a problem hiding this comment.
Already fixed that issue, thanks for reviewing!
| dataChangeCreatedTime: | ||
| type: string | ||
| description: '' | ||
| description: 数据创建时间(ISO 8601) |
There was a problem hiding this comment.
Suggest adding examples to illustrate
There was a problem hiding this comment.
Already fixed that issue, thanks for reviewing!
apollo-openapi.yaml
Outdated
| example: | ||
| message: 'Branch not found' | ||
| /openapi/v1/envs/{env}/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/items:compare: | ||
| /openapi/v1/namespaces/items:compare: |
There was a problem hiding this comment.
When handling non-standard CRUD operations, it is recommended to consider the operation itself as a resource. For example, changing "/items:compare" to "/items/compare"
There was a problem hiding this comment.
Already fixed that issue, thanks for reviewing
…oblems Co-authored-by: arrow2020 <316166287@qq.com>
e136b4a to
48038f2
Compare
Summary by CodeRabbit