Skip to content

Commit

Permalink
Convert all json properties to support string too
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Jun 27, 2024
1 parent b1961c2 commit 656499b
Show file tree
Hide file tree
Showing 723 changed files with 7,829 additions and 872 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ repos:
hooks:
- id: isort
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.4.4"
rev: "v0.4.10"
hooks:
- id: ruff
- repo: https://github.com/PyCQA/bandit
rev: "1.7.8"
rev: "1.7.9"
hooks:
- id: bandit
additional_dependencies:
- "bandit[toml]"
args: ["-c", "pyproject.toml"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.10.0"
rev: "v1.10.1"
hooks:
- id: mypy
additional_dependencies:
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"op": "test",
"path": "/definitions/Overrides/properties/Manifest",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/definitions/Overrides/properties/Manifest",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
[
{
"op": "test",
"path": "/properties/Schema",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/Schema",
"value": {
"type": [
"object",
"string"
]
}
}
{
"op": "test",
"path": "/properties/Schema",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/Schema",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
[
{
"op": "test",
"path": "/properties/Body",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/Body",
"value": {
"type": [
"object",
"string"
]
}
}
{
"op": "test",
"path": "/properties/Body",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/Body",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
[
{
"op": "test",
"path": "/properties/Policy",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/Policy",
"value": {
"type": [
"object",
"string"
]
}
}
{
"op": "test",
"path": "/properties/Policy",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/Policy",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"op": "test",
"path": "/properties/Body",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/Body",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"op": "test",
"path": "/properties/Tags",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/Tags",
"value": {
"additionalProperties": false,
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"op": "test",
"path": "/definitions/StageOverrides/properties/RouteSettings",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/definitions/StageOverrides/properties/RouteSettings",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"op": "test",
"path": "/definitions/StageOverrides/properties/StageVariables",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/definitions/StageOverrides/properties/StageVariables",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"op": "test",
"path": "/properties/Tags",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/Tags",
"value": {
"additionalProperties": false,
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
}
}
]
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"op": "test",
"path": "/properties/RequestParameters",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/RequestParameters",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"op": "test",
"path": "/properties/RequestTemplates",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/RequestTemplates",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"op": "test",
"path": "/properties/ResponseParameters",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/ResponseParameters",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"op": "test",
"path": "/properties/ResponseParameters",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/ResponseParameters",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"op": "test",
"path": "/properties/ResponseTemplates",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/ResponseTemplates",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"op": "test",
"path": "/properties/Schema",
"value": {
"type": "object"
}
},
{
"op": "replace",
"path": "/properties/Schema",
"value": {
"format": "json",
"type": [
"object",
"string"
]
}
}
]
Empty file.
Loading

0 comments on commit 656499b

Please sign in to comment.