ReproNim / reproschema-py

Apache License 2.0
2 stars 8 forks source link

[BUG] preamble not possible in protocol anymore? #47

Closed Remi-Gau closed 2 months ago

Remi-Gau commented 3 months ago

tried running main on my "cobidas" schemas

Tested the following on main.

This is valid.

{
    "@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
    "@type": "reproschema:Protocol"
}

This is not valid (but was before).

{
    "@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
    "@type": "reproschema:Protocol",
    "preamble": {
        "en": "foo"
    }
}

As far as I can tell preambles were part of the allowed properties in the previous version of the schema.

image

djarecka commented 3 months ago

Ok, I will add preamble to Protocol. Thank you for pointing this