Skip to content

relatedResources is an array of dictionaries in the schema, our code is spitting out an array of strings #402

@dannymandel

Description

@dannymandel

This is relatedResources in the schema:

https://github.com/isamplesorg/metadata/blob/e37009e7c9b519b184fb15badbb927e93fa858ec/src/schemas/iSamplesSchemaCore1.0.json#L199

This is what it looks like popping out of our export service:

{'label': 'CMU_156', 'keywords': [{'keyword': 'Chordata'}, {'keyword': 'Hawaii'}, {'keyword': 'USA'}], 'related_resource': ['ark:/21547/mx2CMU_156'], 'sampling_purpose': ['genomic analysis'], 'sample_identifier': 'ark:/21547/BIF2CMU_156', 'source_collection': 'GEOME', 'has_context_category': [{'identifier': 'Animalia'}], 'has_material_category': [{'identifier': 'Organic material'}], 'has_specimen_category': [{'identifier': 'Organism part'}], 'informal_classification': ['Chaetodon', 'multicinctus'], '@id': 'ark:/21547/BIF2CMU_156', 'isb_core_id': 'ark:/21547/BIF2CMU_156'}

Notice that it's a simple string array: 'related_resource': ['ark:/21547/mx2CMU_156']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions