Skip to content

LCO/OCS handle extra_fields #15

@Fingel

Description

@Fingel

The request models for LCO/OCS still have some free-form dictionary fields with no local validation: the various extra_data fields. These are dict[Any, Any] and it's not clear to me how you are supposed to know how to fill most of them out without using the Observation Portal front-end to build your request for you.

The /api/instruments/ endpoint does contain validation rules for some of these fields per instrument in the form of a cerberbus DSL. It might be possible to parse these rules in order to generate the correct fields in Pydantic to remove the need for extra_data.

It will certainly be a challenge!

Metadata

Metadata

Assignees

No one assigned

    Labels

    FacilityUpdating or Adding a new facility

    Type

    No type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions