Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
5f6f2572
Commit
5f6f2572
authored
7 months ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Add custom-converters definition to json schema
parent
a0855542
No related branches found
No related tags found
2 merge requests
!178
FIX: #96 Better error output for crawl.py script.
,
!163
F dict heuristic
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/caoscrawler/cfood-schema.yml
+14
-1
14 additions, 1 deletion
src/caoscrawler/cfood-schema.yml
unittests/test_converters.py
+1
-1
1 addition, 1 deletion
unittests/test_converters.py
with
15 additions
and
2 deletions
src/caoscrawler/cfood-schema.yml
+
14
−
1
View file @
5f6f2572
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
...
...
This diff is collapsed.
Click to expand it.
unittests/test_converters.py
+
1
−
1
View file @
5f6f2572
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment