mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-17 13:46:47 +02:00
Test: allow non-standard string formats
This commit is contained in:
parent
13206d88cb
commit
d0500b6c1a
@ -56,6 +56,11 @@ test('the generated OpenAPI spec is valid', async () => {
|
|||||||
|
|
||||||
const [openapi, error, warning] = await enforcer(body, {
|
const [openapi, error, warning] = await enforcer(body, {
|
||||||
fullResult: true,
|
fullResult: true,
|
||||||
|
componentOptions: {
|
||||||
|
exceptionSkipCodes: [
|
||||||
|
'WSCH001', // allow non-standard formats for strings (including 'uri')
|
||||||
|
],
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (error !== undefined) {
|
if (error !== undefined) {
|
||||||
|
Loading…
Reference in New Issue
Block a user