Skip to content

Commit

Permalink
Allow $schema property in firebase.json (#6051)
Browse files Browse the repository at this point in the history
* Allow $schema property in firebase.json

* Add $schema property via firebaseConfig.ts

---------

Co-authored-by: joehan <joehanley@google.com>
  • Loading branch information
dominicbartl and joehan committed Jun 28, 2023
1 parent e1f0d8d commit 0bcee86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions schema/firebase-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@
}
},
"properties": {
"$schema": {
"format": "uri",
"type": "string"
},
"database": {
"anyOf": [
{
Expand Down
4 changes: 4 additions & 0 deletions src/firebaseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ export type EmulatorsConfig = {
export type ExtensionsConfig = Record<string, string>;

export type FirebaseConfig = {
/**
* @TJS-format uri
*/
$schema?: string;
database?: DatabaseConfig;
firestore?: FirestoreConfig;
functions?: FunctionsConfig;
Expand Down

0 comments on commit 0bcee86

Please sign in to comment.