OasisLMF / OasisUI

User Interface for the Oasis platform.
BSD 3-Clause "New" or "Revised" License
16 stars 17 forks source link

analysis_settings generation is incorrectly setting 'model_name_id' #272

Closed sambles closed 2 years ago

sambles commented 2 years ago

Issue Description

This pull request: https://github.com/OasisLMF/OasisUI/pull/265/files Looks to have broken the new complex model workflow.

When posting the pre-input generation analysis_settings.json, the API POST fails with:

ERROR 2021-12-21 14:03:22,092 middleware 163 140211369740032 b'{"model_name_id":["1 is not of type \'string\'"]}'

It looks like the model_name_id is given a value of the models api id and not the name value

Version / Environment information

OasisUI 1.11.0

Example data / logs