Skip to content

Improve validation: make validation optional, use json schema instead of manual validation, ... #97

@StefanSchuhart

Description

@StefanSchuhart
  1. Make user inputs validation optional, connected OGC api processes do this probably by itself!
  2. Use jsonschema (https://python-jsonschema.readthedocs.io/en/stable/) or fastjsonschema (https://horejsek.github.io/python-fastjsonschema/) to automa(t/gi)cally validate the inputs against processes schema fragments
  3. import process description from connected processes, validate against OGC api processes schema fragment and create a model for each

Here is an example how to do that: https://github.com/StefanSchuhart/fastProcesses/blob/main/src/fastprocesses/core/base_process.py#L103

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions