Skip to content

feat(core): add Deck.schema for complete presentation validation - #22

Merged
leoafarias merged 2 commits into
mainfrom
feat/deck-ack-schema
Dec 23, 2025
Merged

leoafarias merged 2 commits into
mainfrom
feat/deck-ack-schema

Conversation

@leoafarias

Copy link
Copy Markdown
Collaborator

Summary

  • Add Deck.schema Ack schema to validate complete presentation JSON (slides + configuration)
  • Add Deck.parse() method for validated parsing with schema enforcement
  • Fix SectionBlock.schema.blocks to use Block.discriminatedSchema instead of empty object
  • Add comprehensive tests for Deck model (24 test cases)

Changes

  • packages/core/lib/src/models/deck_model.dart - Added schema and parse method
  • packages/core/lib/src/models/block_model.dart - Fixed SectionBlock.schema.blocks
  • packages/core/test/src/models/deck_model_test.dart - New test file

Test plan

  • All 639 core package tests pass locally
  • CI analyze passes
  • CI tests pass

- Add Deck.schema Ack schema to validate slides and configuration
- Add Deck.parse() method for validated parsing
- Fix SectionBlock.schema.blocks to use Block.discriminatedSchema
- Add comprehensive tests for Deck model
@docs-page

docs-page Bot commented Dec 23, 2025

Copy link
Copy Markdown

To view this pull requests documentation preview, visit the following URL:

docs.page/btwld/superdeck~22

Documentation is deployed and generated using docs.page.

The FVM installer no longer automatically adds itself to PATH.
Add it manually via $GITHUB_PATH for persistence across steps.
@leoafarias
leoafarias merged commit f168570 into main Dec 23, 2025
1 check passed
@leoafarias
leoafarias deleted the feat/deck-ack-schema branch December 23, 2025 17:40
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