Skip to content

Write models for custom config validation #164

Closed

Description

@uniqueg

Is your feature request related to a problem? Please describe.

Since v0.9.0, FOCA supports the validation of custom config params when provided with a Pydantic model class: https://github.com/elixir-cloud-aai/foca#custom-configuration

Describe the solution you'd like

Implement the models in file pro_wes/config_models.py and pass to Foca() constructor in pro_wes/app.py.

Additional context

This functionality is currently already implemented in proWES, so that could be used as an example/template:

Activity

  1. added
    flag: good 1st issue
    priority: medium
    type: maintenance
    workload: hours
    on Nov 1, 2023
  2. Nidhi091999 commented on Apr 3, 2025

    @Nidhi091999
    Contributor

    Hi @uniqueg,

    I understand that for custom config validation, the models need to be added in pro_tes/config_models.py, and then passed to the Foca() constructor in pro_tes/app.py.

    Could you please clarify which models specifically need to be added in pro_tes/config_models.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

flag: good 1st issuepriority: mediumtype: maintenanceworkload: hours

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions