Skip to content

Commit

Permalink
Rebase onto master, update tests accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed Aug 27, 2024
1 parent daa4de5 commit 0b9e06f
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 69 deletions.
46 changes: 23 additions & 23 deletions schemars/tests/expected/enum-rename-all-fields.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "RenameAllFields",
"oneOf": [
{
"type": "object",
"required": [
"First"
],
"properties": {
"First": {
"type": "object",
"required": [
"NestedAttribute"
],
"properties": {
"NestedAttribute": {
"type": "string"
}
}
}
},
"additionalProperties": false
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "RenameAllFields",
"oneOf": [
{
"type": "object",
"properties": {
"First": {
"type": "object",
"properties": {
"NestedAttribute": {
"type": "string"
}
},
"required": [
"NestedAttribute"
]
}
]
},
"required": [
"First"
],
"additionalProperties": false
}
]
}
46 changes: 23 additions & 23 deletions schemars/tests/expected/enum-rename-all.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "RenameAll",
"oneOf": [
{
"type": "object",
"required": [
"first"
],
"properties": {
"first": {
"type": "object",
"required": [
"nested_attribute"
],
"properties": {
"nested_attribute": {
"type": "boolean"
}
}
}
},
"additionalProperties": false
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "RenameAll",
"oneOf": [
{
"type": "object",
"properties": {
"first": {
"type": "object",
"properties": {
"nested_attribute": {
"type": "boolean"
}
},
"required": [
"nested_attribute"
]
}
]
},
"required": [
"first"
],
"additionalProperties": false
}
]
}
46 changes: 23 additions & 23 deletions schemars/tests/expected/enum-rename-attr.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "RenameAttribute",
"oneOf": [
{
"type": "object",
"required": [
"First"
],
"properties": {
"First": {
"type": "object",
"required": [
"RenamedAttribute"
],
"properties": {
"RenamedAttribute": {
"type": "string"
}
}
}
},
"additionalProperties": false
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "RenameAttribute",
"oneOf": [
{
"type": "object",
"properties": {
"First": {
"type": "object",
"properties": {
"RenamedAttribute": {
"type": "string"
}
},
"required": [
"RenamedAttribute"
]
}
]
},
"required": [
"First"
],
"additionalProperties": false
}
]
}

0 comments on commit 0b9e06f

Please sign in to comment.