https://clair.im/openapi/<api>.json, for example
glassdoor.json. Generate your
types from it, or validate against it.
Fields are always present
Every field in the schema is in every response. When the page does not show a value, the field isnull. It is never left out.
Each response is checked against its schema before it is sent. If a page
changes and a value no longer fits its field, you get null in that field,
never a value of the wrong type.
Changes we make without notice
These changes keep working code working. Write your client to tolerate them:- New fields. Ignore fields you do not know.
- New values in a set. A field such as
workplace_typelists the values it sends today. Handle an unknown value, for example by treating it likenull. - Fields filled more often. A field that was often
nullmay start carrying a value.
Changes we do not make to an endpoint
- Removing or renaming a field.
- Changing a field’s type, for example from a number to a string.
- Making a field that is never
nullnullable. - Changing a fixed value, such as
engine.