feat: export JSON schema from @powersync/service-schema#496
feat: export JSON schema from @powersync/service-schema#496stevensJourney merged 11 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: 0d5ad71 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
This changes the schema package to depend on all the individual source database modules. Does this have a significant impact on users of this package, for example for the editor in the dashboard or CLI? (I didn't confirm where exactly this is used currently). In theory it only uses |
The Dashboard currently directly imports from those modules' packages - which should already have a similar affect as including those deps to the schema package would have. I do agree it would be nicer to have the schema package be lighter and not depend on all the modules' dependencies. I tried investigating the possibility to bundle the modules' packages - where one might ignore certain database driver packages. This was not trivial. Another alternative could be to move the modules' types to the After some investigation, I found I don't actually need the |
We currently include a JSON schema for the PowerSync service configuration. This schema can be used for type checking and autocomplete when editing PowerSync self hosted YAML configuration files.
This version of the configuration merges all possible combinations of different module Replication connection and bucket storage types.
We don't currently export any other version of a merged configuration typing. This PR updates the existing package to additionally explicitly export the JSON schema.
I've also added the MSSSQL connection type to the exported merged schema.