sciapp / sampledb

Sample and Measurement Metadata Database
https://scientific-it-systems.iffgit.fz-juelich.de/SampleDB/
MIT License
21 stars 11 forks source link

type: file is considered as invalid type #52

Closed link89 closed 1 year ago

link89 commented 1 year ago

Hi, I find that when I set type: file in the schema editor and click save, I would receive a error message invalid type.

I am using v0.22.1 docker image BTW.

Here is the schema

{
    "title": {
        "en": "Ramen Spectrum"
    },
    "type": "object",
    "properties": {
        "name": {
            "title": {
                "en": "Name"
            },
            "type": "text"
        },
        "spectrum": {
            "title": {
                "en": "Spectrum"
            },
            "type": "file"
        }
    },
    "required": [
        "name"
    ],
    "propertyOrder": [
        "name",
        "spectrum"
    ]
}

image

FlorianRhiem commented 1 year ago

Hey @link89, the file property type is part of the current development version and will be part of release 0.23. You can try it out by using the image sciapp/sampledb:develop. Without the file property type, users can still upload files, they just can't assign them to metadata fields.