Skip to content

Commit

Permalink
Fixed schema files
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jun 11, 2021
1 parent b2a0fa3 commit fba0249
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"description": "tooltip.proxy-host"
},
"proxyPort": {
"type": "string",
"type": "integer",
"title": "label.proxy-port",
"description": "tooltip.proxy-port"
},
Expand Down
20 changes: 17 additions & 3 deletions backend/src/main/resources/metadata-sources-ui-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,23 @@
}
},
"dependencies": {
"nameIdFormats": [
"protocolSupportEnum"
]
"nameIdFormats": {
"oneOf": [
{
"nameIdFormats": {
"minLength": 1
},
"required": [
"protocolSupportEnum"
]
},
{
"nameIdFormats": {
"minLength": 0
}
}
]
}
}
},
"logoutEndpoints": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"description": "tooltip.proxy-host"
},
"proxyPort": {
"type": "string",
"type": "integer",
"title": "label.proxy-port",
"description": "tooltip.proxy-port"
},
Expand Down
35 changes: 27 additions & 8 deletions ui/public/assets/schema/source/metadata-source.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
{
"properties": {
"authenticationRequestsSigned": {
"const": true
"enum": [
true
]
},
"x509Certificates": {
"minItems": 1
Expand All @@ -60,7 +62,9 @@
{
"properties": {
"authenticationRequestsSigned": {
"const": false
"enum": [
false
]
},
"x509Certificates": {
"minItems": 0
Expand All @@ -71,6 +75,10 @@
}
},
"properties": {
"x509CertificateAvailable": {
"type": "boolean",
"default": true
},
"authenticationRequestsSigned": {
"title": "label.authentication-requests-signed",
"description": "tooltip.authentication-requests-signed",
Expand Down Expand Up @@ -136,9 +144,23 @@
}
},
"dependencies": {
"nameIdFormats": [
"protocolSupportEnum"
]
"nameIdFormats": {
"oneOf": [
{
"nameIdFormats": {
"minLength": 1
},
"required": [
"protocolSupportEnum"
]
},
{
"nameIdFormats": {
"minLength": 0
}
}
]
}
}
},
"logoutEndpoints": {
Expand Down Expand Up @@ -595,9 +617,6 @@
"description": "tooltip.nameid-format",
"type": "array",
"uniqueItems": true,
"additionalProperties": {
"type": "string"
},
"items": {
"type": "string",
"minLength": 1,
Expand Down

0 comments on commit fba0249

Please sign in to comment.