Skip to content

Eido fails to recognize integer type in PEP #80

@nleroy917

Description

@nleroy917

I have this PEP: nleroy917/38e44dd0-c3df-418e-9256-d0824748901, and I have assigned it to this schema.

Snippet of PEP:

file_document_id file_type file_name file_format read_index file_size
096d3d77-a00e-42d8-a9a5-97c301c42872 sequence_file SRR12695067_R2.fastq.gz fastq.gz read2 7540543107
59ff90f6-4ded-4ad3-ba77-8ff6a06a85dd sequence_file SRR12695068_R2.fastq.gz fastq.gz read2 8367854671
be978666-f337-40d1-9287-299aad4f6014 sequence_file SRR12695067_R1.fastq.gz fastq.gz read1 7537744821
de5d4175-d85c-4dc1-945c-19718fd3a0ae sequence_file SRR12695068_R1.fastq.gz fastq.gz read1 8349553318

Snippet of schema:

properties:
  samples:
    items:
      properties:
        file_size:
          type: integer

I get the following eido result:

{
  "valid": false,
  "error_type": "Samples",
  "errors": [
    "'7540543107' is not of type 'integer' (06de2327-26ba-44d4-8c03-b2c606e83ae1)",
    "'8367854671' is not of type 'integer' (299cb4fe-1697-4376-8670-b01afa252a33)",
    "'7537744821' is not of type 'integer' (13bad80f-a7a4-45e5-978a-f483d51169b8)",
    "'8349553318' is not of type 'integer' (a56225f5-d2ad-4bea-9d3e-c6bf2dcbace5)"
  ]
}

It seems like it just sends it as a string, but it **is** a valid integer.

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