Skip to content

HAMUR_W2029: A schema gives the OpenAPI document no JSON Schema

A schema gives the OpenAPI document no JSON Schema. Warning HAMUR_W2029 belongs to hamur, server (2001 – 2999).

Message

text
HAMUR_W2029 <label> <part> schema has no ~standard.jsonSchema; documented as {}
text
HAMUR_W2029 <label> <part> schema ~standard.jsonSchema.<direction> returned no object; documented as {}
text
HAMUR_W2029 <label> <part> schema ~standard.jsonSchema.<direction> threw (<error>); documented as {}

Cause

The OpenAPI document needs a JSON Schema for a schema of a handler, and the schema library gives none (~standard.jsonSchema is missing, returns no object, or throws). The part is documented as {}.

Fix

Use a schema library that supports ~standard.jsonSchema.