Skip to content

Commit 0bcee86

Browse files
dominicbartljoehan
andauthored
Allow $schema property in firebase.json (#6051)
* Allow $schema property in firebase.json * Add $schema property via firebaseConfig.ts --------- Co-authored-by: joehan <[email protected]>
1 parent e1f0d8d commit 0bcee86

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

schema/firebase-config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@
128128
}
129129
},
130130
"properties": {
131+
"$schema": {
132+
"format": "uri",
133+
"type": "string"
134+
},
131135
"database": {
132136
"anyOf": [
133137
{

src/firebaseConfig.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ export type EmulatorsConfig = {
234234
export type ExtensionsConfig = Record<string, string>;
235235

236236
export type FirebaseConfig = {
237+
/**
238+
* @TJS-format uri
239+
*/
240+
$schema?: string;
237241
database?: DatabaseConfig;
238242
firestore?: FirestoreConfig;
239243
functions?: FunctionsConfig;

0 commit comments

Comments
 (0)