in mozilla_schema_generator/probes.py [0:0]
def _set_definition(self, full_defn: dict):
# Expose the entire history, for special casing of the probe.
self.definition_history = list(
sorted(
full_defn[self.history_key],
key=lambda x: datetime.fromisoformat(x["dates"]["last"]),
reverse=True,
)
)
# The canonical definition for up-to-date schemas
self.definition = self.definition_history[0]
self.definition["name"] = full_defn[self.name_key]