linkml / schemasheets

Structure your data in a FAIR way using google sheets or TSVs. These are then converted to LinkML, and from there other formats
https://linkml.io/schemasheets/
43 stars 5 forks source link

explicitly instantiate example *values*, in order to eliminate "argument must be a mapping, not extended_str" error #24

Closed turbomam closed 2 years ago

turbomam commented 2 years ago

23

Individual examples at least are being created now, but I didn't do anything except add an example rule in the Makefile

turbomam commented 2 years ago

Even multiple, delimited examples work too. False alarm?

turbomam commented 2 years ago

This actually did require some new if cc.maps_to == 'examples' code in schemamaker.py

if cc.maps_to == 'examples':
    for vi in v:
        actual_element.examples.append(Example(value=vi))

So I would like to put the PR up for review and merging now!