Lines Matching +full:json +full:- +full:schema
2 # SPDX-License-Identifier: GPL-2.0-only
6 # This library is intended to capture the JSON SPDX specification in a type
10 # The documented SPDX spec document doesn't cover the JSON syntax for
11 # particular configuration, which can make it hard to determine what the JSON
13 # SPDX JSON schema which can be found here: https://github.com/spdx/spdx-spec
14 # in schemas/spdx-schema.json
19 import json
268 spdxVersion = _String(default="SPDX-" + SPDX_VERSION)
269 dataLicense = _String(default="CC0-1.0")
270 SPDXID = _String(default="SPDXRef-DOCUMENT")
284 class Encoder(json.JSONEncoder):
297 chunk = chunk.encode("utf-8")
305 return cls(**json.load(f))