Skip to content

Commit

Permalink
Grants (#98)
Browse files Browse the repository at this point in the history
* update grant schema for all versions

* tests

* description update

* i screwed up the merge
  • Loading branch information
dave-connors-3 authored Dec 13, 2023
1 parent 5072929 commit b7426eb
Show file tree
Hide file tree
Showing 12 changed files with 1,062 additions and 936 deletions.
25 changes: 22 additions & 3 deletions schemas/1.5/dbt_project-1.5.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@
"+grant_access_to": {
"$ref": "#/$defs/grant_access_to"
},
"+grants": {
"$ref": "#/$defs/grants"
},
"+group": {
"$ref": "#/$defs/group"
},
Expand Down Expand Up @@ -377,6 +380,9 @@
"grant_access_to": {
"$ref": "#/$defs/grant_access_to"
},
"grants": {
"$ref": "#/$defs/grants"
},
"group": {
"$ref": "#/$defs/group"
},
Expand Down Expand Up @@ -466,6 +472,9 @@
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+grants": {
"$ref": "#/$defs/grants"
},
"+group": {
"$ref": "#/$defs/group"
},
Expand Down Expand Up @@ -499,6 +508,9 @@
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"grants": {
"$ref": "#/$defs/grants"
},
"group": {
"$ref": "#/$defs/group"
},
Expand Down Expand Up @@ -827,6 +839,16 @@
"additionalProperties": false
}
},
"grants": {
"type": "object",
"description": "grant config. each key is a database permission and the value is the grantee of that permission",
"patternProperties": {
".*": {
"$ref": "#/$defs/string_or_array_of_strings"
}
},
"additionalProperties": false
},
"group": {
"type": "string"
},
Expand Down Expand Up @@ -871,9 +893,6 @@
"alias": {
"type": "string"
},
"grants": {
"type": "object"
},
"strategy": {
"type": "string"
},
Expand Down
18 changes: 17 additions & 1 deletion schemas/1.5/dbt_yml_files-1.5.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"grants": {
"$ref": "#/$defs/grants"
},
"quote_columns": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
Expand Down Expand Up @@ -447,7 +450,7 @@
"$ref": "#/$defs/boolean_or_jinja_string"
},
"grants": {
"type": "object"
"$ref": "#/$defs/grants"
},
"persist_docs": {
"$ref": "#/$defs/persist_docs_config"
Expand Down Expand Up @@ -792,6 +795,16 @@
},
"additionalProperties": false
},
"grants": {
"type": "object",
"description": "grant config. each key is a database permission and the value is the grantee of that permission",
"patternProperties": {
".*": {
"$ref": "#/$defs/string_or_array_of_strings"
}
},
"additionalProperties": false
},
"group": {
"type": "string"
},
Expand Down Expand Up @@ -842,6 +855,9 @@
"additionalProperties": false
}
},
"grants": {
"$ref": "#/$defs/grants"
},
"hours_to_expiration": {
"type": "number",
"description": "Configuration specific to BigQuery adapter used to set an expiration delay (in hours) to a table."
Expand Down
25 changes: 22 additions & 3 deletions schemas/1.6/dbt_project-1.6.json
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+grants": {
"$ref": "#/$defs/grants"
},
"+file_format": {
"$ref": "#/$defs/file_format"
},
Expand Down Expand Up @@ -333,6 +336,9 @@
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"grants": {
"$ref": "#/$defs/grants"
},
"file_format": {
"$ref": "#/$defs/file_format"
},
Expand Down Expand Up @@ -428,6 +434,9 @@
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+grants": {
"$ref": "#/$defs/grants"
},
"+group": {
"$ref": "#/$defs/group"
},
Expand Down Expand Up @@ -461,6 +470,9 @@
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"grants": {
"$ref": "#/$defs/grants"
},
"group": {
"$ref": "#/$defs/group"
},
Expand Down Expand Up @@ -789,6 +801,16 @@
"additionalProperties": false
}
},
"grants": {
"type": "object",
"description": "grant config. each key is a database permission and the value is the grantee of that permission",
"patternProperties": {
".*": {
"$ref": "#/$defs/string_or_array_of_strings"
}
},
"additionalProperties": false
},
"group": {
"type": "string"
},
Expand Down Expand Up @@ -833,9 +855,6 @@
"alias": {
"type": "string"
},
"grants": {
"type": "object"
},
"strategy": {
"type": "string"
},
Expand Down
18 changes: 17 additions & 1 deletion schemas/1.6/dbt_yml_files-1.6.json
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"grants": {
"$ref": "#/$defs/grants"
},
"quote_columns": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
Expand Down Expand Up @@ -431,7 +434,7 @@
"$ref": "#/$defs/boolean_or_jinja_string"
},
"grants": {
"type": "object"
"$ref": "#/$defs/grants"
},
"persist_docs": {
"$ref": "#/$defs/persist_docs_config"
Expand Down Expand Up @@ -883,6 +886,16 @@
},
"additionalProperties": false
},
"grants": {
"type": "object",
"description": "grant config. each key is a database permission and the value is the grantee of that permission",
"patternProperties": {
".*": {
"$ref": "#/$defs/string_or_array_of_strings"
}
},
"additionalProperties": false
},
"group": {
"type": "string"
},
Expand Down Expand Up @@ -1069,6 +1082,9 @@
"additionalProperties": false
}
},
"grants": {
"$ref": "#/$defs/grants"
},
"hours_to_expiration": {
"type": "number",
"description": "Configuration specific to BigQuery adapter used to set an expiration delay (in hours) to a table."
Expand Down
25 changes: 22 additions & 3 deletions schemas/dbt_project.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@
"+grant_access_to": {
"$ref": "#/$defs/grant_access_to"
},
"+grants": {
"$ref": "#/$defs/grants"
},
"+hours_to_expiration": {
"$ref": "#/$defs/hours_to_expiration"
},
Expand Down Expand Up @@ -359,6 +362,9 @@
"grant_access_to": {
"$ref": "#/$defs/grant_access_to"
},
"grants": {
"$ref": "#/$defs/grants"
},
"hours_to_expiration": {
"$ref": "#/$defs/hours_to_expiration"
},
Expand Down Expand Up @@ -445,6 +451,9 @@
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+grants": {
"$ref": "#/$defs/grants"
},
"+meta": {
"$ref": "#/$defs/meta"
},
Expand Down Expand Up @@ -475,6 +484,9 @@
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"grants": {
"$ref": "#/$defs/grants"
},
"meta": {
"$ref": "#/$defs/meta"
},
Expand Down Expand Up @@ -788,6 +800,16 @@
"additionalProperties": false
}
},
"grants": {
"type": "object",
"description": "grant config. each key is a database permission and the value is the grantee of that permission",
"patternProperties": {
".*": {
"$ref": "#/$defs/string_or_array_of_strings"
}
},
"additionalProperties": false
},
"hours_to_expiration": {
"type": "number",
"description": "Configuration specific to BigQuery adapter used to set an expiration delay (in hours) to a table."
Expand Down Expand Up @@ -829,9 +851,6 @@
"alias": {
"type": "string"
},
"grants": {
"type": "object"
},
"strategy": {
"type": "string"
},
Expand Down
Loading

0 comments on commit b7426eb

Please sign in to comment.