ga4gh / ga4gh/openapi-test-runner

Expression based filters

Open
#36 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
5
Forks
6
PR merge metrics
No merged PRs in 30d

Description

The `filter` feature has a parameter - `size`, which validates the length of string/size of array/no of pairs in the object.
At the moment, it supports equality between the "filter" size and the "response" size.

Add support to define expression-based conditions in `filter` size (and other new parameters in future).

Example. A test case could be to pass only if the response size is greater than 2. The filter size can be defined as -
```
filter:
size: size>2
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the filter-size validation and its existing equality handling; the payload does not name specific files or tests. Define the expression syntax and evaluation boundary first, then verify that a filter using `size: size>2` passes only when the response size is greater than 2.

Written by the indexing model from the issue text.

Assessment

Tech stack
yaml
Domain
testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.