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

Merging for yamls #1124

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Merging for yamls #1124

wants to merge 1 commit into from

Conversation

hardyjosh
Copy link
Contributor

Motivation

In the app we support having two separate yamls - one for the config (e.g. things in OrderbookYaml) and one for the order itself (DotrainYaml).

At the moment we don't have this functionality for the new yaml structs. We'll need it to refactor DotrainOrder.

Solution

DotrainYaml now accepts a Vec of additional yamls, and those get passed through when matching dependencies. For example, an Orderbook referenced by an Order will first be looked for in the current document, then the others in order.

Shadowing is disallowed per the spec.

Checks

By submitting this for review, I'm confirming I've done the following:

  • made this PR as small as possible
  • unit-tested any new functionality
  • linked any relevant issues or PRs
  • included screenshots (if this involves a front-end change)

@hardyjosh hardyjosh marked this pull request as draft January 6, 2025 22:12
@hardyjosh hardyjosh self-assigned this Jan 6, 2025
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.

1 participant