Skip to content

fix: align API with CAMARA Commonalities r4.3 validation requirements - #33

Open
maheshc01 wants to merge 4 commits into
mainfrom
fix/camara-validation-warnings-r4.3
Open

fix: align API with CAMARA Commonalities r4.3 validation requirements#33
maheshc01 wants to merge 4 commits into
mainfrom
fix/camara-validation-warnings-r4.3

Conversation

@maheshc01

Copy link
Copy Markdown
Contributor

Summary

Fixes all 41 CAMARA validation warnings identified in the r4.3 validation run (issue #32), to unblock the Sync26 meta-release snapshot.

Changes

Mandatory info.description templates (P-026)

  • Added authorization-and-authentication block
  • Added additional-error-responses block
  • Added request-body-strictness block

Info fixes

  • Removed info.contact (S-020 — CAMARA APIs must not have individual contact info)
  • Set x-camara-commonalities: wip

Server config

  • Fixed apiRoot default from https:// to http:// (S-022)
  • Fixed apiRoot description to single-line standard CAMARA text (S-023)

Common schema references

  • securitySchemes/openIdCAMARA_common.yaml
  • headers/x-correlatorCAMARA_common.yaml
  • parameters/x-correlatorCAMARA_common.yaml
  • XCorrelator and ErrorInfo schemas deleted — referenced via CAMARA_common.yaml
  • All Generic400/401/403/404/429 inline responses replaced with CAMARA_common.yaml refs

Schema name fixes — PascalCase (S-015)

  • targetMinCPUTargetMinCPU
  • targetMinGPUTargetMinGPU
  • gpuVendorTypeGpuVendorType
  • gpuModelNameGpuModelName
  • targetMinMemoryTargetMinMemory
  • targetMinEphemeralStorageTargetMinEphemeralStorage
  • targetMinPersistentStorageTargetMinPersistentStorage
  • All $ref usages in ComputeResourcesThresholds updated accordingly

Schema fixes

  • TargetMinGPU: added type: integer, format: int32, minimum: 0, maximum: 64 (S-016, S-310, S-311)
  • Duration.value: added maximum: 500 (S-311)
  • GpuModelName: added maxLength: 256, pattern: ^[^\r\n]*$ (S-312, S-313)
  • applicationProfileId in all path parameters and ApplicationProfile schema: added maxLength: 36 (S-312)
  • Added descriptions to all schemas and properties missing them (S-011): Duration, Rate, Compute, TimeUnitEnum, RateUnitEnum, ComputeUnitEnum, ApplicationProfile, ApplicationProfileRequest, NetworkQualityThresholds, and their value/unit properties

Placeholder file removal

  • Deleted code/API_definitions/README.MD (P-013)
  • Deleted documentation/API_documentation/application-profiles-API-Readiness-Checklist.md (P-032)

Test plan

  • CAMARA validation check passes with 0 errors, 0 warnings
  • All $ref paths resolve correctly against CAMARA_common.yaml
  • API semantics unchanged (create/read/update/delete application profile flows intact)
  • Schema renames are backward-compatible (WIP API, no released consumers)

- Add 3 mandatory CAMARA info.description template blocks (authorization-and-authentication, additional-error-responses, request-body-strictness)
- Set x-camara-commonalities: wip
- Remove info.contact (S-020)
- Fix apiRoot default (https→http) and description (single-line standard text)
- Replace inline openId, x-correlator header/parameter with CAMARA_common.yaml refs
- Replace inline XCorrelator, ErrorInfo schemas with CAMARA_common.yaml refs
- Replace all Generic400/401/403/404/429 inline responses with CAMARA_common.yaml refs
- Add descriptions to Duration, Rate, Compute, TimeUnitEnum, RateUnitEnum, ComputeUnitEnum, ApplicationProfile, ApplicationProfileRequest, NetworkQualityThresholds and their properties (S-011)
- Rename schemas to PascalCase: targetMinCPU→TargetMinCPU, targetMinGPU→TargetMinGPU, gpuVendorType→GpuVendorType, gpuModelName→GpuModelName, targetMinMemory→TargetMinMemory, targetMinEphemeralStorage→TargetMinEphemeralStorage, targetMinPersistentStorage→TargetMinPersistentStorage (S-015)
- Fix TargetMinGPU: add type: integer, format: int32, minimum: 0, maximum: 64 (S-016, S-310, S-311)
- Add Duration.value maximum: 500 (S-311)
- Add maxLength: 36 to all applicationProfileId path parameter schemas and ApplicationProfile.applicationProfileId (S-312)
- Add maxLength: 256 and pattern to GpuModelName (S-312, S-313)
- Delete placeholder README.MD (P-013)
- Delete API-Readiness-Checklist.md (P-032)
@maheshc01
maheshc01 requested review from Kevsy and urvika-v as code owners July 20, 2026 19:37
@camara-validation

camara-validation Bot commented Jul 20, 2026

Copy link
Copy Markdown

CAMARA Validation — PASS

0 errors, 0 warnings, 0 hints | Profile: standard

View full results

urvika-v
urvika-v previously approved these changes Jul 21, 2026

@urvika-v urvika-v left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread code/API_definitions/application-profiles.yaml Outdated
Comment thread code/API_definitions/application-profiles.yaml Outdated

@Kevsy Kevsy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ see comments around GPU-related objects

Co-authored-by: Kevin Smith <Kevsy@users.noreply.github.com>
Co-authored-by: Kevin Smith <Kevsy@users.noreply.github.com>
@maheshc01

Copy link
Copy Markdown
Contributor Author

Hi @Kevsy. thank you for the review and feedback. I have applied the suggested feedback.
Could you re-approve the PR so that i can merge it?

@maheshc01
maheshc01 requested a review from Kevsy July 21, 2026 16:23
@maheshc01

Copy link
Copy Markdown
Contributor Author

@Kevsy gentle reminder on this.

@maheshc01

Copy link
Copy Markdown
Contributor Author

@urvika-v , @Kevsy might be busy with other activities. could you review and approve this PR.

@urvika-v urvika-v left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants