Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Update: Remove unnecessary await from synchronous schema calls#64

Merged
taylortom merged 2 commits intomasterfrom
update/sync-schema-api
Mar 26, 2026
Merged

Update: Remove unnecessary await from synchronous schema calls#64
taylortom merged 2 commits intomasterfrom
update/sync-schema-api

Conversation

@taylortom
Copy link
Copy Markdown
Collaborator

Fixes adapt-security/adapt-authoring-jsonschema#58

Update

  • Remove double await from createSchema().build() in processModuleSchema — both calls are now synchronous after adapt-schemas v3.0.0

Testing

  1. Run npm run dev and verify module config schemas load without errors
  2. Run npm test

Also removes await from schema.validate() and replaces
Promise.allSettled with synchronous try/catch loop in
storeSchemaSettings(), since processModuleSchema is now
fully synchronous.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@taylortom taylortom merged commit 7b7b2fb into master Mar 26, 2026
2 checks passed
@taylortom taylortom deleted the update/sync-schema-api branch March 26, 2026 11:02
github-actions bot pushed a commit that referenced this pull request Mar 26, 2026
# [1.5.0](v1.4.4...v1.5.0) (2026-03-26)

### Chore

* Change workflow name ([55e5680](55e5680))

### Docs

* add environment variable configuration instructions ([ec537b2](ec537b2))

### Update

* Remove unnecessary await from synchronous schema calls (#64) ([7b7b2fb](7b7b2fb)), closes [#64](#64)
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update: Adapt to synchronous adapt-schemas v3.0.0 API

1 participant