Skip to content

check-spec command#103

Draft
Sam-Mear wants to merge 1 commit intomarkasoftware:betafrom
Sam-Mear:feature/check-spec
Draft

check-spec command#103
Sam-Mear wants to merge 1 commit intomarkasoftware:betafrom
Sam-Mear:feature/check-spec

Conversation

@Sam-Mear
Copy link
Copy Markdown
Contributor

@Sam-Mear Sam-Mear commented Mar 7, 2026

No description provided.

@markasoftware
Copy link
Copy Markdown
Owner

I haven't read this in detail yet, but is the main thing that it does over the existing yaml type checking just looking for fields that don't exist but generally should exist?

If so, I think the code could probably be a lot simpler if it was integrated into the current build pipeline more. Right now there's a lot of duplicated logic here for eg resolving the inherits. There's already code in the main build pipeline that resolves the inherits and may handle some edge cases and other stuff you haven't thought of.

Ideally what you want is to use the existing build pipeline to generate the "completed" spec objects with all properties resolved, then just check the list of properties there contains all the expected ones. I'd expect it to be a lot fewer lines of code than this.

Of course, if this tool is useful to you as-is, go ahead and keep using it, but if you want to merge it into the main specdb codebase I'd want it to be integrated more cleanly.

@Sam-Mear
Copy link
Copy Markdown
Contributor Author

Yeah, this was mostly a way to assign a spec to a certain type, similar to how i've had to do it here in rust https://github.com/Sam-Mear/specdb-rs/tree/master/src/spectype

Currently row-data only has all the specs, with no metadata on which type of spec it applies to. Was mostly for that, then AI'd to do more - so was probably sloppy anyway.

I'll mark as a draft for now.

@Sam-Mear Sam-Mear marked this pull request as draft March 23, 2026 16:23
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