Skip to content

Commit

Permalink
fix(schema): make flow not required for now (#2596)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardobridge authored Apr 2, 2024
1 parent 1ed48b5 commit 683245c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/types/schema/scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,10 @@ const ScenarioSchema = Joi.object({
}
);

// TODO: PR in joi-to-json repo for converting deprecated and default
//TODO: missing some descriptions (ws and socketio)

//TODO: implement full schema consistent with scenario - right now it's Joi.any() on items
const BeforeAfterSchema = Joi.object({
flow: Joi.array()
.items(Joi.any())
.required()
.meta({ title: 'Flow object' })
.description(
'https://www.artillery.io/docs/reference/test-script#before-and-after-sections'
Expand Down

0 comments on commit 683245c

Please sign in to comment.