Open Bug 1352402 Opened 7 years ago Updated 6 years ago

Invalid use of "id" keyword in Pulse schema

Categories

(Tree Management :: Treeherder: Data Ingestion, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: davehunt, Unassigned)

Details

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
Component: Treeherder → Treeherder: Data Ingestion
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.