Skip to content

Commit

Permalink
Add validation test for properties with Any type
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jun 21, 2024
1 parent 4368f4d commit 85e3cd6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions server/gx-workflow-ls-format2/tests/integration/validation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,21 @@ steps:
expect(diagnostics[0].message).toContain("Type mismatch for field 'top'. Expected 'float' but found 'string'.");
});

it("should not report error for properties with Any type", async () => {
const content = `
class: GalaxyWorkflow
inputs:
outputs:
steps:
step:
tool_state:
value: "any value"
another_value: 42
`;
const diagnostics = await validateDocument(content);
expect(diagnostics).toHaveLength(0);
});

describe("Custom Rules", () => {
let rule: ValidationRule;

Expand Down

0 comments on commit 85e3cd6

Please sign in to comment.