3.25 → 3.29
The 3.25 → 3.29 transition is additive — no payload field that existed in 3.25.0 changes shape or disappears. New components and a new status code arrive; one schema maximum is corrected.
Summary
Section titled “Summary”- New components you may want to opt into:
skin_type(withskin_type_visualization).hyperpigmentation_adjustedis also new — an alternative hyperpigmentation score for special cases;hyperpigmentationremains the standard choice. - One new status code:
99(custom-context, undefined failure). Status code1121is obsolete, andacnenow returns3000when certain image-quality warnings are present. - The schema
maximumfor visualization intensities was corrected from 500 to 2500 to match actualacne_visualizationoutput. If your UI clamps at 500, raise it. - Treat
local_warnings[]codes as advisory, not contractual: render whatever findings come back, hide the cards that don’t.
Step by step
Section titled “Step by step”1. Update the spec reference
Section titled “1. Update the spec reference”If you generate clients from the OpenAPI document, point your generator at the new spec:
- Live URL:
https://api.revieve.com/openapi/skin-analysis.yaml - Or pin to a commit in this repo.
2. Handle the new status code
Section titled “2. Handle the new status code”99 is a generic error code that can be raised wherever a failure has no more specific code. Currently only makeup eye-colour analysis emits it, in that finding’s local_warnings[] — hide that result; the other findings are still usable. Handle it by where it appears, like any other error: in status[] it means the whole analysis failed. See Status codes.
3. Opt into new components (optional)
Section titled “3. Opt into new components (optional)”Add to your components query string only what your UI surfaces:
?components=wrinkles,redness,acne,hyperpigmentation?components=wrinkles,redness,acne,hyperpigmentation,skin_typeEach new component adds work for the model. Don’t request what you don’t render.
4. Adjust visualization rendering
Section titled “4. Adjust visualization rendering”acne_visualization intensities are on a [0, 2500] scale. The schema previously declared a maximum of 500 for visualization intensities; 3.29.1 corrects it to 2500 to match actual output. If your renderer clamps at 500, raise it to 2500.
5. Code defensively against local_warnings[]
Section titled “5. Code defensively against local_warnings[]”The local_warnings[] array is advisory, not a stable contract. Render whatever findings come back; hide the cards whose local_warnings[] indicates an unusable result for that metric. Don’t hard-fail the whole UI on any specific code.
What hasn’t changed
Section titled “What hasn’t changed”- The endpoint path and authentication model.
- The
imagerequirements (JPEG, ≥ 600×600). - The shape of
face_area, top-levelstatus, andinverse_color_balance_rb. - The
valuenormalisation (0..1) on numeric findings. - The deprecation of
value_raw.
Compatibility
Section titled “Compatibility”You can’t pin the API to an older version — each environment runs a single version. Because the change is additive, a client written against 3.25.0 keeps working on 3.29.1 unchanged; the new components only appear if you request them.