feat:Add nullable full_description to public collection schema and example#134
feat:Add nullable full_description to public collection schema and example#134
Conversation
WalkthroughAdds a nullable string field full_description to the public collection schema in the OpenAPI spec and updates the GET /collections/{collection_slug} example to include this field. No other schema structures or operations are modified. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/libs/Replicate/openapi.yaml (1)
1159-1162: Schema addition is backward‑compatible; consider noting Markdown semantics and adding an example
Optional nullable string is safe; good placement.
Consider adding a vendor note (e.g., x-content-format: markdown) or a short description note so SDKs/docs renderers treat it as Markdown.
Add a brief example to guide clients.
Intentional that schemas_collection_list_item (used by collections.list) does not include full_description? If yes, no change needed.
Verify any server serializers/DB fields exist to avoid empty values after deploy.
Suggested tweak:
full_description: type: string description: The full description of the collection in markdown format nullable: true + example: "## Overview\n\nLonger Markdown description with details and links." + x-content-format: markdown
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (3)
src/libs/Replicate/Generated/Replicate.IReplicateApi.CollectionsGet.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionResponse.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.ReplicateApi.CollectionsGet.g.csis excluded by!**/generated/**
📒 Files selected for processing (1)
src/libs/Replicate/openapi.yaml(2 hunks)
🔇 Additional comments (1)
src/libs/Replicate/openapi.yaml (1)
63-63: Example updated correctly to include full_descriptionExample matches the new optional field and the referenced response schema.
Please confirm the backend populates full_description (or returns null) for this endpoint in prod/staging.
Summary by CodeRabbit