StackStorm / StackStorm/st2

Update json schema validation

Open
#5,364 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

SUMMARY

Feature request, to support actions/triggers input/output validation with JSON schema draft v7.
Currently, StackStorm supports JSON schema draft v4, a very old version of JSON schema.

Most of the tools today support JSON schema draft v7, and specifically Pydantic.
We use Pydantic to generate our StackStorm actions/triggers input and output, and the versions deifference create validation problems.

See also:

STACKSTORM VERSION

st2 3.1.0, on Python 3.6.9

OS, environment, install method

We use Kubernetes and a custom helm chart.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Action validation documentation and the existing JSON Schema draft v4 support for actions and triggers. No implementation files or tests are named; done would require a defined approach for draft v7 input/output validation that remains compatible with Pydantic-generated schemas.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.