Skip to content

fix(geofencing-subscriptions): resolve remaining S-015 and S-211 warnings - #420

Merged
jlurien merged 1 commit into
mainfrom
fix/geofencing-linter-remaining-warnings
Jul 30, 2026
Merged

fix(geofencing-subscriptions): resolve remaining S-015 and S-211 warnings#420
jlurien merged 1 commit into
mainfrom
fix/geofencing-linter-remaining-warnings

Conversation

@jlurien

@jlurien jlurien commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

What type of PR is this?

correction

What this PR does / why we need it:

Three unused-component warnings remained in geofencing-subscriptions.yaml
after PR #417. This PR resolves all three:

  • DeviceIpv4Addr (schema): passthrough alias with no internal $ref usage. Removed; the test-plan schema pin for ipv4Address updated from DeviceIpv4Addr to the canonical DeviceIpv4Address (defined in CAMARA_common.yaml).
  • SingleIpv4Addr (schema): fully orphaned passthrough alias. Removed.
  • SubscriptionPermissionDenied403 (response): correctly defined with PERMISSION_DENIED + SUBSCRIPTION_MISMATCH codes but never wired to any endpoint. The inline definition is replaced with a $ref to CAMARA_event_common.yaml (consistent with how all other common responses are imported), and the response is wired to all four subscription CRUD operations (POST, GET list, GET by ID, DELETE). The callback/notification endpoint retains Generic403.

Which issue(s) this PR fixes:

Fixes #419

Special notes for reviewers:

The wiring of SubscriptionPermissionDenied403 to the subscription endpoints is a documentation-only change: it adds SUBSCRIPTION_MISMATCH to the set of 403 codes documented on those operations.

Changelog input

fix(geofencing-subscriptions): remove unused schema aliases (DeviceIpv4Addr, SingleIpv4Addr) and replace inline SubscriptionPermissionDenied403 with a ref to CAMARA_event_common.yaml; wire it to subscription CRUD endpoints

Additional documentation

This section can be blank.

docs

…ings

- Remove unused DeviceIpv4Addr and SingleIpv4Addr schema aliases
- Replace inline SubscriptionPermissionDenied403 with a $ref to
  CAMARA_event_common.yaml#/components/responses/SubscriptionPermissionDenied403
- Wire SubscriptionPermissionDenied403 to all four subscription CRUD
  endpoints (POST, GET list, GET by ID, DELETE); callback endpoint
  retains Generic403
- Update geofencing-subscriptions.feature: schema pin for ipv4Address
  updated from DeviceIpv4Addr to DeviceIpv4Address (canonical name)
@camara-validation

Copy link
Copy Markdown

CAMARA Validation — PASS (with warnings)

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

View full results

@jlurien

jlurien commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator Author

@bigludo7 I had to fix some remaining warnings

@jlurien

jlurien commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator Author

hi @bigludo7, please approve if it's ok

@bigludo7 bigludo7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@jlurien
jlurien merged commit 5b06cf8 into main Jul 30, 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.

Fix unused schemas in snapshot

2 participants