LCORE-261: updated OpenAPI#817
Conversation
WalkthroughDocumentation updates introducing Red Hat Identity authentication configuration support. Adds new RHIdentityConfiguration schema to AuthenticationConfiguration, updates RAG endpoint response schema from RAGResponse to RAGInfoResponse, and removes name, last_active_at, and expires_at from RAGInfoResponse required fields across config diagrams and OpenAPI specifications. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Suggested labels
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ 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 (3)
docs/openapi.md (1)
837-844: Consider specifying therh_identity_configfield typeThe new
rh_identity_configfield is wired correctly, but the Type column is empty like many others. For discoverability, you could set the type to something like[RHIdentityConfiguration](#rhidentityconfiguration)orRHIdentityConfiguration | null.docs/output.md (1)
837-844: Optional: documentrh_identity_config’s concrete typeAs in
docs/openapi.md, you might want to make the Type column explicit, e.g.[RHIdentityConfiguration](#rhidentityconfiguration)orRHIdentityConfiguration | null, to make the association obvious to readers.docs/openapi.json (1)
1737-1793:rh_identity_configproperty wiring looks correct; consider adding a descriptionThe new
rh_identity_configfield onAuthenticationConfigurationreferencesRHIdentityConfiguration(or null), which matches the desired shape. To make the schema more self‑describing, you might add a short"description"like “Red Hat Identity authentication configuration”.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (2)
docs/config.pngis excluded by!**/*.pngdocs/config.svgis excluded by!**/*.svg
📒 Files selected for processing (4)
docs/config.puml(3 hunks)docs/openapi.json(3 hunks)docs/openapi.md(3 hunks)docs/output.md(3 hunks)
⏰ 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). (4)
- GitHub Check: Konflux kflux-prd-rh02 / lightspeed-stack-on-pull-request
- GitHub Check: build-pr
- GitHub Check: e2e_tests (ci)
- GitHub Check: e2e_tests (azure)
🔇 Additional comments (9)
docs/openapi.md (2)
223-254: RAGGET /v1/rags/{rag_id}return type now correctly usesRAGInfoResponseThe return annotation and 200‑response component reference are consistent with the
RAGInfoResponseschema indocs/openapi.json. No further changes needed here.
1753-1762:RHIdentityConfigurationcomponent docs match the new schemaName and field layout align with the JSON schema (
required_entitlementsoptional list of strings). Description is clear and consistent with the config diagram.docs/config.puml (2)
10-20: AuthenticationConfiguration additions follow existing JWK patternAdding
rh_identity_config : Optional[RHIdentityConfiguration]plusrh_identity_configurationmirrors the existingjwk_config/jwk_configurationpair and keeps the diagram in sync with the underlying model. Looks good.
157-159:RHIdentityConfigurationclass and inheritance are consistentDefining
RHIdentityConfigurationwithrequired_entitlements : Optional[list[str]]and making it extendConfigurationBasematches how other config types are modeled and lines up with the new OpenAPI schema.Also applies to: 206-206
docs/output.md (2)
223-254: Public docs now referenceRAGInfoResponsefor single‑RAG lookupThe
GET /v1/rags/{rag_id}return description and 200‑response component useRAGInfoResponse, matching the OpenAPI JSON. This keeps the public docs aligned with the actual API surface.
1753-1762:RHIdentityConfigurationsection correctly documents the new configThis section’s name and field match the new configuration model and OpenAPI schema; the description clearly signals it is for Red Hat Identity authentication.
docs/openapi.json (3)
351-381: RAG detail endpoint correctly moved toRAGInfoResponseThe
/v1/rags/{rag_id}operation now documentsRAGInfoResponsein both the narrative description and 200‑response schema, matching the components definition and the markdown docs.
3983-4081:RAGInfoResponserequired fields relaxed as intended
name,last_active_at, andexpires_atare now optional (viaanyOf[..., null]and not listed inrequired), whileid,created_at,usage_bytes,object, andstatusremain required. This matches the documented behavior and is internally consistent.
4104-4125:RHIdentityConfigurationschema is consistent with the rest of the modelThe new schema defines
required_entitlementsas an optional list of strings and disallows additional properties, which is in line with how other config objects are modeled and with the new auth field that references it.
Description
LCORE-261: updated OpenAPI
Type of change
Related Tickets & Documents
Summary by CodeRabbit
New Features
Changes
✏️ Tip: You can customize this high-level summary in your review settings.