Skip to content

Commit 729df58

Browse files
Fix browserless baseUrl credential schema (#1659)
* Fix browserless baseUrl credential schema `baseUrl` was declared as `["string", "null"]` while also being listed in `required` with `minLength: 1`. The `null` member was contradictory and crashed the OpenFn credential form on render (the form casts property types into Ecto types and assumed `type` was always a single string). Make `baseUrl` a plain string. The form-level fix to handle array-form `type` is being landed in OpenFn/lightning so older or future schemas using that idiom won't crash either. Refs OpenFn/lightning#4647 * version --------- Co-authored-by: Joe Clark <joe@openfn.org>
1 parent c60c670 commit 729df58

5 files changed

Lines changed: 10 additions & 4 deletions

File tree

packages/browserless/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @openfn/language-browserless
22

3+
## 1.0.4 - 29 April 2026
4+
5+
### Patch Changes
6+
7+
- 4e5efe2: Make baseUrl a plain string in the credential configuration schema.
8+
39
## 1.0.3 - 07 April 2026
410

511
### Patch Changes

packages/browserless/configuration-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"properties": {
44
"baseUrl": {
55
"title": "Base URL",
6-
"type":["string", "null"],
6+
"type": "string",
77
"description": "The Browserless base URL (e.g. https://production-sfo.browserless.io)",
88
"format": "uri",
99
"minLength": 1,

packages/browserless/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openfn/language-browserless",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "OpenFn browserless adaptor",
55
"type": "module",
66
"exports": {

packages/collections/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Minor Changes
66

7-
- Add support for project_id on config
7+
- Add support for project\_id on config
88

99
## 0.8.6 - 14 April 2026
1010

packages/minio/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
- Move `minio` SDK from `devDependency` to `dependency` in `package.json`
88

9-
## 1.0.1
9+
## 1.0.1 - 29 April 2026
1010

1111
### Patch Changes
1212

0 commit comments

Comments
 (0)