Skip to content

Required field disabled not marked required for POST /api/v3/configure/processing_engine_trigger #6611

@caterryan

Description

@caterryan

Steps to reproduce:

  1. Make request to POST /api/v3/configure/processing_engine_trigger without disabled per v3 api docs fails
curl -i -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -X POST "http://localhost:8283/api/v3/configure/processing_engine_trigger" \
    --data \
        '{
            "db": "test",
            "plugin_filename": "test.py",
            "trigger_name": "test",
            "trigger_specification": "table:test",
            "trigger_settings": 
                {
                     "run_async": true,
                     "error_behavior": "log"
                 }
        }'

HTTP/1.1 400 Bad Request serde json error: missing field disabled at line 10 column 1

  1. Make request to POST /api/v3/configure/processing_engine_trigger with disabled runs successfully
    curl -i -H "Authorization: Bearer $TOKEN"
    -H "Content-Type: application/json"
    -X POST "http://localhost:8283/api/v3/configure/processing_engine_trigger"
    --data
    '{
    "db": "test",
    "plugin_filename": "test.py",
    "trigger_name": "test",
    "trigger_specification": "table:test",
    "disabled": false,
    "trigger_settings":
    {
    "run_async": true,
    "error_behavior": "log"
    }
    }'
`HTTP/1.1 200 OK`

__Expected behaviour:__
Required parameters are marked `required`

__Actual behaviour:__
`HTTP/1.1 400 Bad Request serde json error: missing field `disabled` at line 10 column 1`

__Environment info:__

influxdb3 -V
influxdb3 3.8.0-nightly, revision 091601acd330dbd524485e4bae5012c2d2fe96cb

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions