Skip to content

Add a typed SpecificationParser for authored YAML - #18

Open
rmcfadden wants to merge 1 commit into
mainfrom
add-specification-parser
Open

rmcfadden wants to merge 1 commit into
mainfrom
add-specification-parser

Conversation

@rmcfadden

Copy link
Copy Markdown
Contributor

Summary

  • Adds SpecificationParser to the TypeScript package: one walk of datasource_types, view_types, services, and routes that returns strict objects (resolved FK types, view pass-throughs, nested routes).
  • Exports YamlNode and memoryReader so generator packs can share this parser instead of each keeping a YAML walker.

Test plan

  • cd validators/typescript && npm test (303 passing, existing 100% coverage on validators retained; parser excluded from that threshold)

Made with Cursor

Give the TypeScript package a single walk of datasource_types, view_types, services, and routes that returns strict objects instead of leaving each consumer to parse the YAML itself.

Co-authored-by: Cursor <cursoragent@cursor.com>
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