Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for templates schema validation after transform #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tsvetkov-ii
Copy link

Trafaret checks schema for operator and sensors in do template. It limits templating.

This PR adds support for invalid schema at templating, but after transform it ensures schema.

Copy link
Member

@KostyaEsmukov KostyaEsmukov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, although I left a little suggestion on how to make this even better.

flow:
sensor_{{item.name}}:
- operator_bash
- operator_simple
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example is rather big, and it is hard to tell which part exactly would have failed in master.

Is it this flow which references operators from other do blocks or there's more? If none, would it be possible to simplify the test by stripping everything unrelated to the problem being fixed here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants