Skip to content

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

Merged
maheshc01 merged 2 commits into
mainfrom
fix/camara-validation-warnings-r4.3
Jul 22, 2026
Merged

maheshc01 merged 2 commits into
mainfrom
fix/camara-validation-warnings-r4.3

Conversation

@maheshc01

@maheshc01 maheshc01 commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes all 25 CAMARA validation warnings identified in the r4.3 validation run, to unblock the Sync26 meta-release snapshot.

fixes #39

Changes

Mandatory info.description templates (P-026)

  • Added authorization-and-authentication block
  • Added additional-error-responses block
  • Added request-body-strictness block
  • Set x-camara-commonalities: wip

Common schema references (replaces inline definitions)

  • securitySchemes/openId → CAMARA_common.yaml
  • headers/x-correlator → CAMARA_common.yaml
  • parameters/x-correlator → CAMARA_common.yaml
  • XCorrelator schema deleted (was duplicating common)
  • ErrorInfo schema deleted (was duplicating common)
  • Generic400/401/403/404/429 responses → CAMARA_common.yaml
  • SingleIpv4Addr → CAMARA_common.yaml#/components/schemas/SingleIpv4Address

String/array/integer constraints

  • maxLength added to all string fields (S-312)
  • maxItems: 20 added to all array fields (S-309)
  • Port: added format: int32, changed minimum from 0 to 1 (S-310/S-311, aligns with CAMARA_common.yaml Port definition)

Placeholder file removal

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

Test plan

  • CAMARA validation check passes with 0 errors, 0 warnings
  • API semantics unchanged (registration/retrieval/deletion flows intact)
  • All $ref paths resolve correctly against CAMARA_common.yaml

- Add 3 mandatory CAMARA info.description template blocks (authorization-and-authentication, additional-error-responses, request-body-strictness)
- Set x-camara-commonalities: wip
- Replace inline XCorrelator, ErrorInfo schemas with CAMARA_common.yaml refs
- Replace Generic400/401/403/404/429 inline responses with CAMARA_common.yaml refs
- Replace inline openId securityScheme, x-correlator header/parameter with CAMARA_common.yaml refs
- Replace inline SingleIpv4Addr with CAMARA_common.yaml SingleIpv4Address ref
- Add maxLength to all string fields (S-312)
- Add maxItems: 20 to all array fields (S-309)
- Add format: int32 and min: 1 to Port schema (S-310/S-311)
- Delete placeholder README.MD (P-013)
- Delete API-Readiness-Checklist.md (P-032)
@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

@maheshc01
maheshc01 requested a review from urvika-v July 20, 2026 18:51
@urvika-v

Copy link
Copy Markdown
Contributor

LGTM

example: "AppProvider"
applicationDescription:
type: string
maxLength: 2048

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.

2048 seems excessive - especially given the example, which just shows the application category. 256 seems more than enough. Is there a reason why it should be that long?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @Kevsy. I have user 256 for other parameters like applicationProviderName, but used a higher value of 2048 for description field which is meant for more descriptive text which helps users with more details about the application or specific instance.
CAMARA APIs use 2048 max length as per commonalities standards in some cases like below:

Source:
type: string
format: uri-reference
minLength: 1
maxLength: 2048
description: |
Identifies the context in which an event happened - be a non-empty URI-reference like:
- URI with a DNS authority:
* https://github.com/cloudevents
* mailto:cncf-wg-serverless@lists.cncf.io
- Universally-unique URN with a UUID:
* urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66
- Application-specific identifier:
* /cloudevents/spec/pull/123
* 1-555-123-4567
example: "https://notificationSendServer12.example.com"

having a higher value provides more flexibility to the users of the API even if they might not need it all the time.

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.

Thanks @maheshc01 , all good now.

$ref: "#/components/schemas/EdgeCloudZone"
applicationEndpointDescription:
type: string
maxLength: 2048

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.

Same comment as earlier, 2048 seems excessive.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

same feedback as the previous comment.

Kevsy
Kevsy previously requested changes Jul 21, 2026

@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.

^ just the comments above about string length for the application description, otherwise LGTM

@Kevsy
Kevsy dismissed their stale review July 22, 2026 08:28

Removing objection to 2048 max description length following Mahesh's explanation.

@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.

LGTM

@maheshc01
maheshc01 merged commit cb2c839 into main Jul 22, 2026
3 checks passed
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.

Update API definitions to fix CAMARA validation warnings

3 participants