# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""
Classes for managing the description of pings. """
# _validated indicates whether this ping has already been jsonschema # validated (but not any of the Python-level validation). ifnot _validated:
data: Dict[str, util.JSONType] = { "$schema": parser.PINGS_ID,
self.name: self._serialize_input(),
} for error in parser.validate(data): raise ValueError(error)
def serialize(self) -> Dict[str, util.JSONType]: """
Serialize the metric back to JSON object model. """
d = self.__dict__.copy() del d["name"] return d
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.