elixir-cloud-aai / ga4gh-sdk

Generic SDK and CLI for GA4GH API services
Apache License 2.0
13 stars 2 forks source link

feat(drs): add models #55

Open pavelnikonorov opened 2 weeks ago

pavelnikonorov commented 2 weeks ago

Add the necessary models for supporting the GA4GH Data Registry Service (DRS) API, version 1.4.0.

This issue requires addressing the following steps:

Additional context

lilachic commented 2 weeks ago

There is some incompatibility issue between the generator and the yaml file, given the model generation command, it stopped in error state, add gave a hint to bypass validation. So maybe use in the code a Java class instead of type string 🤔

The error: -attribute tags.description is not of type 'string'

The used command: ./utils/build_models.sh https://raw.githubusercontent.com/ga4gh/data-repository-service-schemas/refs/heads/master/openapi/data_repository_service.openapi.yaml drs lib/src/clients/drs

Work around could be to add the flag --skip-validate-spe to the open API generator openapi-generator-cli generate in the script build_models.sh to generate models. That generates some files.