Conversation
Updated API specification for SIM swap, including error responses, request body strictness, and reference adjustments to CAMARA common definitions.
Align with Commonalities subscription & event
CAMARA Validation — PASS (with warnings)0 errors, 13 warnings, 9 hints | Profile: standard |
|
@rartych @hdamker I need help here as I'm struggling to solve last error:
Any help welcome :) |
Two separate issues:
|
|
Thanks @hdamker |
| latestSimChange: | ||
| type: string | ||
| format: date-time | ||
| description: Timestamp of latest SIM swap performed. It must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone. | ||
| nullable: true | ||
| example: "2023-07-03T14:27:08.312+02:00" | ||
| allOf: | ||
| - $ref: "../common/CAMARA_common.yaml#/components/schemas/DateTime" |
There was a problem hiding this comment.
Here referencing the common definition does not work, as nullable: true needs a type sibling, not possible in OAS 3.0.3. On the other side the common DateTime can't be defined with nullable: true.
My recommendation: go back to inline definition, just adding the maxLength field.
latestSimChange:
type: string
format: date-time
maxLength: 64
nullable: true
description: Timestamp of latest SIM swap performed. It must follow [RFC 3339 (https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone.
The crash(es) of validation are fixed. There were actually two different ones, one in our custom rule (camaraproject/tooling#322), and after that was fixed an upstream bug got unmasked (camaraproject/tooling#328). There are three errors now found by Validation, which have the same root cause. See my review comment https://github.com/camaraproject/SimSwap/pull/272/changes#r3394527908. The rule is firing for all three examples using the definition. Should be fixed before merging the PR. |
Updated latestSimChange property to include type, format, and maxLength.
What type of PR is this?
Add one of the following kinds:
correction
cleanup
repository management
What this PR does / why we need it:
CAMARA validation is reporting many warnings and hints. This PR reduces that number.
Which issue(s) this PR fixes:
Fixes #271
Special notes for reviewers:
Changelog input
Additional documentation
This section can be blank.