add support for provider plugin schemas (#1022)

This commit is contained in:
Tom Kralidis
2022-10-19 15:43:57 -04:00
committed by GitHub
parent ad3e224f62
commit 6447493a76
5 changed files with 81 additions and 25 deletions
+4
View File
@@ -94,6 +94,10 @@ The below template provides a minimal example (let's call the file ``mycoolvecto
}]
}
def get_schema():
# return a `dict` of a JSON schema (inline or reference)
return ('application/geo+json', {'$ref': 'https://geojson.org/schema/Feature.json'})
For brevity, the above code will always return the single feature of the dataset. In reality, the plugin
developer would connect to a data source with capabilities to run queries and return a relevant result set,