Skip to content

feat: Add blockReferences support - #60

Merged
janbuchar merged 5 commits into
janbuchar:masterfrom
pafnuty:feature/59
Sep 17, 2026
Merged

janbuchar merged 5 commits into
janbuchar:masterfrom
pafnuty:feature/59

Conversation

@pafnuty

@pafnuty pafnuty commented Aug 26, 2025 •

Copy link
Copy Markdown
Contributor
  • Add new collection to check blockReferences support
  • Add support for blockReferences openapi generation

fix #59

Pavel Belousov and others added 5 commits August 26, 2025 13:09
- Add new collection to check blockReferences support
- Add support for blockReferences openapi generation
# Conflicts:
#	src/openapi/generators.ts
- Looked block references up by their config key instead of the block slug, so emitted `$ref` pointers resolve.
- Generated block schemas from `FlattenedBlock`, dropping the copy-pasted `fieldsToJSONSchema` workaround.
- Excluded hidden fields from block schemas and stopped requiring the payload-managed `id` on inline blocks.
- Raised an error on duplicate schema names, which previously overwrote a component silently.
- Dropped the unreachable `Write` schema variants for blocks.
- Renamed the dev fixture block slug to `referenceBlock` and covered both paths with snapshot tests.
@janbuchar
janbuchar merged commit a0cbd6f into janbuchar:master Sep 17, 2026
3 checks passed
@janbuchar

Copy link
Copy Markdown
Owner

Thanks for your contribution @pafnuty!

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.

Invalid reference token when I use blockReferences in collection

2 participants