Invalid use of "id" keyword in Pulse schema

NEW
Unassigned

Status

Tree Management
Treeherder
3 months ago
3 months ago

People

(Reporter: davehunt, Unassigned)

Tracking

Details

(Reporter)

Description

3 months ago
Whilst creating Pulse payloads and using the schema for validation I discovered that the "id" keyword used in the schema is invalid. According to the specification [1]:

> The "id" keyword defines a URI for the schema, and the base URI that other URI references within
> the schema are resolved against. The "id" keyword itself is resolved against the base URI that the
> object as a whole appears in. 

Currently the schema [2] defines "id" as:

> id: "jobDefinition"

[1] http://json-schema.org/latest/json-schema-core.html#rfc.section.8.2
[2] https://github.com/mozilla/treeherder/blob/835c90b6eec0e52383a4316beae5da42d0a38b52/schemas/pulse-job.yml#L6
You need to log in before you can comment on or make changes to this bug.