Skip to content
Snippets Groups Projects
Commit 5f6f2572 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

FIX: Add custom-converters definition to json schema

parent a0855542
No related branches found
No related tags found
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!163F dict heuristic
cfood:
type: object
properties:
Converters:
type: object
additionalProperties:
type: object
properties:
converter:
type: string
package:
type: string
required:
- converter
- package
additionalProperties:
$ref:
"#/$defs/converter"
......@@ -115,7 +128,7 @@ cfood:
properties:
type:
const:
PropertiesFromDictElement
"PropertiesFromDictElement"
then:
required:
- type
......
......@@ -804,7 +804,7 @@ def test_properties_from_dict_basic(converter_registry):
def test_properties_from_dict_callable(converter_registry):
def convert_some_values(rec: db.Record):
def convert_some_values(rec: db.Record, records: RecordStore, values: GeneralStore):
"""Add an URL prefix to a property value if appliccable."""
if rec.get_property("url") is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment