Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

pipelines-configuration schema does not validate cache names

Chris Hatch November 26, 2025

The schema at https://api.bitbucket.org/schemas/pipelines-configuration is happy with the following:

 

definitions:
caches:
node_modules: node_modules

 

However the online validator and bitbucket itself are not:

Screenshot from 2025-11-27 10-38-05.png

 

For now I've patched the schema (see below) but it would be nice if the main schema stayed in sync with bitbucket.

586,587c586,593
< "additionalProperties": {
< "$ref": "#/components/schemas/cache"
---
> "patternProperties": {
> "^[a-z0-9]([a-z0-9-]*[a-z0-9])?$": {
> "$ref": "#/components/schemas/cache"
> }
> },
> "additionalProperties": false,
> "errorMessage": {
> "additionalProperties": "Invalid cache name '{{params.additionalProperty}}'. Cache names must contain only lowercase alphanumeric characters and hyphens, and cannot start or end with a hyphen."

 

 

1 answer

0 votes
Chris Hatch November 26, 2025

Here is another one the schema won't catch:

"The 'caches' section in your bitbucket-pipelines.yml file contains a reference to a cache which does not exist in the caches definitions section."

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events