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

Implement partials syntax parsing #2211

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Conversation

tstirrat15
Copy link
Contributor

Description

Part of the MVP of composable schema support. This implements the parsing part of a partials syntax, which can be used to decompose a schema within definitions.

Changes

  • Add partial as a keyword
  • Implement parsing of partials blocks
  • Implement parsing of partial references
  • Add tests

@tstirrat15 tstirrat15 marked this pull request as ready for review January 24, 2025 18:35
@tstirrat15 tstirrat15 requested a review from a team as a code owner January 24, 2025 18:35
@github-actions github-actions bot added the area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) label Jan 24, 2025
partialNode := p.startNode(dslshape.NodeTypePartial)
defer p.mustFinishNode()

// definition ...
Copy link
Member

Choose a reason for hiding this comment

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

fix comment

@tstirrat15 tstirrat15 force-pushed the implement-partials-syntax branch from 37fb38d to 4d072e8 Compare January 27, 2025 22:58
josephschorr
josephschorr previously approved these changes Jan 28, 2025
Copy link
Member

@josephschorr josephschorr left a comment

Choose a reason for hiding this comment

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

LGTM

@tstirrat15 tstirrat15 added this pull request to the merge queue Jan 28, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 28, 2025
@tstirrat15 tstirrat15 added this pull request to the merge queue Jan 28, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jan 28, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 28, 2025
@github-actions github-actions bot added the area/dependencies Affects dependencies label Jan 28, 2025
@tstirrat15 tstirrat15 force-pushed the implement-partials-syntax branch 2 times, most recently from 84b8522 to 4d072e8 Compare January 28, 2025 18:58
@github-actions github-actions bot removed the area/dependencies Affects dependencies label Jan 28, 2025
@tstirrat15 tstirrat15 force-pushed the implement-partials-syntax branch from 4d072e8 to 8d9b09e Compare January 28, 2025 19:15
@tstirrat15 tstirrat15 added this pull request to the merge queue Jan 28, 2025
Merged via the queue into main with commit b0b3a63 Jan 28, 2025
39 checks passed
@tstirrat15 tstirrat15 deleted the implement-partials-syntax branch January 28, 2025 19:44
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants