Skip to content

Commit

Permalink
add configName and configVersion to projectSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomás Ciccola committed Jul 22, 2024
1 parent f6d93ca commit 37ab865
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions proto/projectSettings/v1.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ message ProjectSettings_1 {
optional DefaultPresets defaultPresets = 2;

optional string name = 5;
string configName = 6;
string configVersion = 7;
}
10 changes: 9 additions & 1 deletion schema/projectSettings/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@
},
"required": ["point", "area", "vertex", "line", "relation"],
"additionalProperties": false
},
"configName": {
"description": "name of the config of the project",
"type": "string"
},
"configVersion": {
"description": "version of the config of the project",
"type": "string"
}
},
"required": ["schemaName"],
"required": ["schemaName", "configName", "configVersion"],
"additionalProperties": false
}
2 changes: 2 additions & 0 deletions test/fixtures/good-docs-completed.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export const goodDocsCompleted = [
relation: cachedValues.defaultPresets.point,
},
name: 'myProject',
configName: 'mapeo-config',
configVersion: '1.0.0',
deleted: false,
},
expected: {},
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/good-docs-minimal.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export const goodDocsMinimal = [
createdAt: cachedValues.createdAt,
updatedAt: cachedValues.updatedAt,
createdBy: cachedValues.createdBy,
configName: 'mapeo-config',
configVersion: '1.0.0',
links: [],
deleted: false,
},
Expand Down

0 comments on commit 37ab865

Please sign in to comment.