Repository navigation
Release Notes
This public release contains the definition and documentation of
- customer-insights 0.3.0
The API definition(s) are based on
- Commonalities r4.4 (0.9.0)
- Identity and Consent Management r4.2 (0.5.0)
customer-insights 0.3.0
customer-insights 0.3.0 is an initial public version of this API.
Changes documented below are compared to version 0.2.0.
- API definition with inline documentation:
Breaking changes
- idDocument Management Error Scenarios by @PedroDiez in #65 and #106. The error codes
422 - CUSTOMER_INSIGHTS.ID_DOCUMENT_REQUIREDand422 - CUSTOMER_INSIGHTS.INVALID_IDENTIFIERSare removed. The corresponding scenarios now return422 - SERVICE_NOT_APPLICABLE:idDocumentis required by the API Provider but not provided (previously422 - CUSTOMER_INSIGHTS.ID_DOCUMENT_REQUIRED)idDocumentis supported by the API Provider, and the providedphoneNumberandidDocumentdo not point to the same subscription (previously422 - CUSTOMER_INSIGHTS.INVALID_IDENTIFIERS)
Added
- Test feature documentation enhancements by @PedroDiez in #90. Additional documentation for
retrieveScoringtest feature:- Adds implementation indications
- Enhances testing assets
idDocumentdescription improvement by @PedroDiez in #91. IncludesidDocumentdefinition ininfo.description:- Adds
idDocumentdefinition to the "Relevant Definitions and concepts" section ofinfo.description, documentsidDocumentas an identity document number used as an alternative or complement tophoneNumber
- Adds
- Test: Added Request Body Strict Scenario and complete Response Headers by @PedroDiez in #102. Enhancements in test definitions:
- Adds test scenario
@retrieve_scoring_400.01_schema_not_compliantto cover Request Body schema compliant validation - Adds test scenario
@retrieve_scoring_400.09_request_body_strictnessto cover Request Body Strictness guideline - Adds the
x-correlatorandContent-Typeresponse header checks to scenarios:400.06(onlyContent-Typecheck),C02.01–C02.05,422.01–422.10and429.01
- Adds test scenario
- Document 404 Error Codes in
info.descriptionby @PedroDiez in #104. Includes404error scenarios semantic scope ininfo.description:- Adds the scope for
404 - IDENTIFIER_NOT_FOUNDand404 - NOT_FOUNDscenarios to the "Additional Information on Error scenarios" section ofinfo.description
- Adds the scope for
Changed
- Apply CAMARA Commonalities OWASP recommendations by @PedroDiez in #67. Detailed updates:
x-correlator,phoneNumberandErrorInfoare aligned with Commonalities definitionsidDocumentis set to have a maxLength of 30 characters
- idDocument Management Error Scenarios by @PedroDiez in #65 and #106. The following scenarios now return
422 - SERVICE_NOT_APPLICABLEinstead of an API-specific error code:idDocumentis required by the API Provider but not provided (previously422 - CUSTOMER_INSIGHTS.ID_DOCUMENT_REQUIRED)idDocumentis supported by the API Provider, and the providedphoneNumberandidDocumentdo not point to the same subscription (previously422 - CUSTOMER_INSIGHTS.INVALID_IDENTIFIERS)- Involved tests are also updated
- Update API specification to local CAMARA_common.yaml references by @PedroDiez in #75. Detailed updates:
ScoringResponserefactored intooneOfGaugeMetricResponse/VeritasIndexResponsewith discriminatorscoringType;scoringValueisint32and bounded per scale (300-850 forgaugeMetric, 0-19 forveritasIndex). The response payload is unchanged- "Request body strictness" section added to
info.description: request bodies with properties not declared in the specification are rejected with400 INVALID_ARGUMENT
- Testing alignment with Commonalities Spring26 artifacts by @PedroDiez in #83
- Customer Insights v0.3.0 alignment with Commonalities r4.4 by @PedroDiez in #96 and #103. Detailed updates:
- API Specification:
info.descriptionsections aligned with the Commonalities r4.4info-description-templates.yaml- Error Responses alignment (no change to the returned status codes or error codes, apart from the removal listed under Breaking changes):
- Generic400 replaced by Common BadRequest400
- Generic401 replaced by Common Unauthenticated401
- Generic403 replaced by Common PermissionDenied403
- Generic404 replaced by specific RetrieveScoringNotFound404 (No direct scenario/combination in CAMARA_common.yaml)
- Generic422 replaced by specific UnprocessableContent422, with description and examples aligned with
CAMARA_common.yaml - Generic429 replaced by Common TooManyRequests429
- Test Definitions:
- Background: added
Given an environment at "apiRoot"as first step 400.01,401.01,401.02,403.01,404.01scenarios: addedAnd the response header "x-correlator" has same value as the request header "x-correlator"andAnd the response header "Content-Type" is "application/json"in Then block401.03: addedx-correlatorresponse header check (already had Content-Type)
- Background: added
- API Specification:
Fixed
- Test: Added Request Body Strict Scenario and complete Response Headers by @PedroDiez in #102. Amendments in test definitions:
- Fix test scenario name
@retrieve_scoring_400.02_invalid_x-correlatorto@retrieve_scoring_400.06_invalid_x-correlatorto be fully aligned with Commonalities Artifact Template - Renumber
@retrieve_scoring_400.01_no_request_bodyto@retrieve_scoring_400.02_no_request_body, as400.01is now used by@retrieve_scoring_400.01_schema_not_compliant
- Fix test scenario name
Removed
- N/A
Full Changelog: r2.2...r3.3