Skip to content

Commit

Permalink
Merge pull request #3 from christiaangoossens/fix/christiaangoossens-1
Browse files Browse the repository at this point in the history
Fix schemas to only require caseExact if type is a string
  • Loading branch information
suvera authored Aug 16, 2024
2 parents 8598267 + ceb5ea9 commit 0fb4f9e
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 4 deletions.
35 changes: 33 additions & 2 deletions src/main/resources/schema/Schema.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,41 @@
"multiValued",
"description",
"required",
"caseExact",
"mutability",
"returned"
]
],
"dependencies": {
"type": {
"oneOf": [
{
"properties": {
"type": {
"enum": ["string"]
},
"caseExact": {
"type": "boolean"
}
},
"required": ["caseExact"]
},
{
"properties": {
"type": {
"enum": [
"boolean",
"decimal",
"integer",
"dateTime",
"reference",
"complex",
"binary"
]
}
}
}
]
}
}
}
}
}
35 changes: 33 additions & 2 deletions src/main/resources/schema/Schemas.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,41 @@
"multiValued",
"description",
"required",
"caseExact",
"mutability",
"returned"
]
],
"dependencies": {
"type": {
"oneOf": [
{
"properties": {
"type": {
"enum": ["string"]
},
"caseExact": {
"type": "boolean"
}
},
"required": ["caseExact"]
},
{
"properties": {
"type": {
"enum": [
"boolean",
"decimal",
"integer",
"dateTime",
"reference",
"complex",
"binary"
]
}
}
}
]
}
}
}
}
}

0 comments on commit 0fb4f9e

Please sign in to comment.