I’m creating a simple HTTP GET event in the Godspeed framework. My goal is to accept a query parameter called name and return a response. However, when I define the event YAML with type: string directly inside the params, the server throws a validation error saying must have required property 'schema'. I expected this to work, but it seems godspeed' param framework uses a different format. What is the correct way to define query parameters in godspeed events so they pass validation?
http.get./greet:
fn: greet_user
params:
- name: name
in: query
required: true
type: string
responses:
200:
content:
application/json:
schema:
type: string
But when I run godspeed serve, the framework logs:
Event validation failed for http.get./greet
[ { instancePath: '/params/0', message: "must have required property 'schema'" } ]
It seems to reject my params block. Am I defining it wrong? How should query parameters be structured in Godspeed's Param framework ?