-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'apple:main' into citiretailservices-rule
- Loading branch information
Showing
10 changed files
with
174 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "object", | ||
"properties": { | ||
"password-rules": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"password-rules" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"definitions": { | ||
"domain-list": { | ||
"type": "array", | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "string" | ||
}, | ||
"minItems": 1 | ||
} | ||
}, | ||
"type": "array", | ||
"items": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"shared": { | ||
"$ref": "#/definitions/domain-list" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"shared" | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"from": { | ||
"$ref": "#/definitions/domain-list" | ||
}, | ||
"to": { | ||
"$ref": "#/definitions/domain-list" | ||
}, | ||
"fromDomainsAreObsoleted": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"from", | ||
"to" | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"definitions": { | ||
"domain-list": { | ||
"type": "array", | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "string" | ||
}, | ||
"minItems": 1 | ||
} | ||
}, | ||
"type": "array", | ||
"items": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"shared": { | ||
"$ref": "#/definitions/domain-list" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"shared" | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"from": { | ||
"$ref": "#/definitions/domain-list" | ||
}, | ||
"to": { | ||
"$ref": "#/definitions/domain-list" | ||
}, | ||
"fromDomainsAreObsoleted": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"from", | ||
"to" | ||
] | ||
} | ||
] | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
quirks/schemas/websites-that-append-2fa-to-password-schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"type": "array", | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "string" | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
quirks/schemas/websites-with-shared-credential-backends-schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"type": "array", | ||
"items": { | ||
"type": "array", | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "string" | ||
}, | ||
"minItems": 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if ! command -v ajv &> /dev/null | ||
then | ||
echo "The 'ajv' command is required for validating JSON schemas. | ||
Please follow the readme at https://github.com/ajv-validator/ajv-cli to install the 'ajv-cli' package." | ||
exit 1 | ||
fi | ||
|
||
# Finds all JSON files in the quirks directory and validates them against the corresponding schema. | ||
find quirks -name '*.json' -print0 -maxdepth 1 | while IFS= read -r -d '' filename; do | ||
schema="quirks/schemas/$(basename "$filename" .json)-schema.json" | ||
echo "Validating $filename against $schema" | ||
ajv -s "$schema" -d "$filename" --spec=draft2020 | ||
done |