Schema¶
Methods for interacting with or reasoning about JSON Schema and CSV codelists.
- jscc.schema.extend_schema(basename, schema, metadata, codelists=None)[source]¶
Patches a JSON Schema with an extension’s dependencies, recursively.
If
codelists
is provided, it will be updated with the codelists from the dependencies.Attention
No timeout is set. If a user can input malicious
metadata
with unresponsivedependencies
ortestDependencies
URLs, the program can hang indefinitely.Attention
This function is vulnerable to server-side request forgery (SSRF). A user can create an extension whose dependencies point to internal resources, which would receive a GET request.