Skip to content

feat: integrate schema.lua runtime validation#20

Open
mcanouil wants to merge 1 commit intomainfrom
feat/schema-validation
Open

feat: integrate schema.lua runtime validation#20
mcanouil wants to merge 1 commit intomainfrom
feat/schema-validation

Conversation

@mcanouil
Copy link
Owner

Summary

  • Add the shared schema.lua module to _modules/.
  • Rename the existing gitlink-specific schema module from schema.lua to platform-schema.lua to avoid naming conflicts.
  • Update platforms.lua to require platform-schema instead of schema.
  • Wire up schema.validate_options() in gitlink.lua to validate extension options against _schema.yml at runtime (Tier 2: error reporting only).

Test plan

  • Run quarto render example.qmd and confirm no runtime errors.
  • Verify platform validation still works (platform-schema.lua).
  • Verify that valid options produce no warnings.
  • Test with intentionally invalid options and verify error/warning messages are logged.

Add the shared schema.lua module and wire up validate_options
to validate extension options against _schema.yml at runtime.
Rename the existing gitlink-specific schema module to
platform-schema.lua to avoid naming conflicts.
@mcanouil mcanouil added the Type: Enhancement 💡 Issues related to enhancements, improvements, new features, or new analyses label Feb 17, 2026
@mcanouil mcanouil self-assigned this Feb 17, 2026
@mcanouil mcanouil added the Type: Enhancement 💡 Issues related to enhancements, improvements, new features, or new analyses label Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Enhancement 💡 Issues related to enhancements, improvements, new features, or new analyses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant