We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e386ef commit d524731Copy full SHA for d524731
t/document-toplevel.t
@@ -356,12 +356,19 @@ ERRORS
356
version => '1.2.3',
357
},
358
jsonSchemaDialect => 'https://mymetaschema',
359
- paths => {},
+ components => {
360
+ schemas => {
361
+ Foo => {
362
+ maxLength => false, # this is a bad schema, but our custom dialect does not detect that
363
+ },
364
365
366
367
metaschema_uri => DEFAULT_METASCHEMA, # '#meta' is now just {"type": ["object","boolean"]}
368
);
369
cmp_result([ $doc->errors ], [], 'no errors with a custom jsonSchemaDialect');
370
is($doc->json_schema_dialect, 'https://mymetaschema', 'custom jsonSchemaDialect is saved in the document');
371
+ is($doc->metaschema_uri, DEFAULT_METASCHEMA, 'custom metaschema is saved');
372
373
$js->add_document($doc);
374
cmp_deeply(
0 commit comments