You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8828b9e
Browse filesBrowse the repository at this point in the historyBrowse files
feat(spec): declare metadata.maskObjectFields and getMetadataReadableFields (ADR-0106 follow-through) (#6874)
* feat(spec): declare metadata.maskObjectFields and getMetadataReadableFields (#6622)
ADR-0106's metadata-plane FLS shipped in #6612 with two members honoured but
undeclared, deliberately: packages/spec is the spec seat's surface. This is the
declaration half — no runtime behaviour changes.
- MetadataEndpointsConfigSchema.maskObjectFields: z.boolean().default(true)
(ADR-0106 D8). Already read by @objectstack/rest through a cast; the seat
makes it type-safe in objectstack.config.ts and, unlike before, lets the
opt-out survive a parse (the schema strips undeclared keys).
- ISecurityService.getMetadataReadableFields? (ADR-0106 D7). Optional, per the
precedent #6841 set on this contract: absence is a defined state that
degrades to getReadableFields, and the unguarded call must not compile.
Baselines authorable-surface/api.json and authorable-defaults/api.json are
regenerated by the spec build.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01115GjksiLKTEth6gZZMcvG
* docs(spec): regenerate the rest-server reference for the new metadata key
`content/docs/references/api/rest-server.mdx` is generated from the spec
schemas (`gen:schema` + `gen:docs`); `check:docs` flags it as out of date once
`MetadataEndpointsConfigSchema` gains a key. Regenerated, not hand-edited.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01115GjksiLKTEth6gZZMcvG
---------
Co-authored-by: Claude <noreply@anthropic.com>
|**openApi31**|`never`| optional |[REMOVED]`RestServerConfig.openApi31` was removed in @objectstack/spec 17 (#4579, ADR-0049) — no runtime ever read it: the REST server forwards only `api`/`crud`/`metadata`/`batch`/`routes`, and the served /openapi.json is the pre-generated contract enriched with the live server URL and the registered objects, so webhook/callback definitions declared here never appeared in it. Delete the key. Config-driven OpenAPI 3.1 webhooks/callbacks documentation is a new capability and must arrive via the enforce route of ADR-0049 (a new ADR), not by re-declaring the key; for a real outbound webhook use `Webhook` from `@objectstack/spec/automation`. |
0 commit comments