feat(samples): add base64url support for contentEncoding keyword (#9246)
This change is JSON Schema 2020-12 specific.
This commit is contained in:
committed by
GitHub
parent
20c2c74746
commit
fb65508eb4
@@ -138,6 +138,15 @@ describe("sampleFromSchema", () => {
|
||||
).toStrictEqual(
|
||||
"aHR0cHM6Ly9leGFtcGxlLmNvbS9kaWN0aW9uYXJ5L3t0ZXJtOjF9L3t0ZXJtfQ=="
|
||||
)
|
||||
expect(
|
||||
sample({
|
||||
type: "string",
|
||||
format: "uri-template",
|
||||
contentEncoding: "base64url",
|
||||
})
|
||||
).toStrictEqual(
|
||||
"aHR0cHM6Ly9leGFtcGxlLmNvbS9kaWN0aW9uYXJ5L3t0ZXJtOjF9L3t0ZXJtfQ"
|
||||
)
|
||||
expect(
|
||||
sample({
|
||||
type: "string",
|
||||
|
||||
Reference in New Issue
Block a user