Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidfm committed Aug 4, 2022
1 parent 5e0790b commit fbf400c
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 36 deletions.
6 changes: 2 additions & 4 deletions fixtures/allow_additional_props.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@
"description": "list of IDs, omitted when empty"
},
"tags": {
"patternProperties": {
".*": {
"type": "string"
}
"additionalProperties": {
"type": "string"
},
"type": "object"
},
Expand Down
6 changes: 2 additions & 4 deletions fixtures/defaults_expanded_toplevel.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@
"description": "list of IDs, omitted when empty"
},
"tags": {
"patternProperties": {
".*": {
"type": "string"
}
"additionalProperties": {
"type": "string"
},
"type": "object"
},
Expand Down
6 changes: 2 additions & 4 deletions fixtures/go_comments.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
"$ref": "#/$defs/User",
"$defs": {
"NamedPets": {
"patternProperties": {
".*": {
"$ref": "#/$defs/Pet"
}
"additionalProperties": {
"$ref": "#/$defs/Pet"
},
"type": "object",
"description": "NamedPets is a map of animal names to pets."
Expand Down
6 changes: 2 additions & 4 deletions fixtures/ignore_type.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@
"description": "list of IDs, omitted when empty"
},
"tags": {
"patternProperties": {
".*": {
"type": "string"
}
"additionalProperties": {
"type": "string"
},
"type": "object"
},
Expand Down
6 changes: 2 additions & 4 deletions fixtures/no_reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@
"description": "list of IDs, omitted when empty"
},
"tags": {
"patternProperties": {
".*": {
"type": "string"
}
"additionalProperties": {
"type": "string"
},
"type": "object"
},
Expand Down
6 changes: 2 additions & 4 deletions fixtures/no_reference_anchor.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@
"description": "list of IDs, omitted when empty"
},
"tags": {
"patternProperties": {
".*": {
"type": "string"
}
"additionalProperties": {
"type": "string"
},
"type": "object"
},
Expand Down
6 changes: 2 additions & 4 deletions fixtures/required_from_jsontags.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@
"description": "list of IDs, omitted when empty"
},
"tags": {
"patternProperties": {
".*": {
"type": "string"
}
"additionalProperties": {
"type": "string"
},
"type": "object"
},
Expand Down
6 changes: 2 additions & 4 deletions fixtures/test_user.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@
"description": "list of IDs, omitted when empty"
},
"tags": {
"patternProperties": {
".*": {
"type": "string"
}
"additionalProperties": {
"type": "string"
},
"type": "object"
},
Expand Down
6 changes: 2 additions & 4 deletions fixtures/test_user_assign_anchor.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@
"description": "list of IDs, omitted when empty"
},
"tags": {
"patternProperties": {
".*": {
"type": "string"
}
"additionalProperties": {
"type": "string"
},
"type": "object"
},
Expand Down

0 comments on commit fbf400c

Please sign in to comment.