A user might mistakenly do $js->add_schema($uri => $schema_data) with an OpenAPI document, which will cause the data to be treated as a json schema rather than an openapi document with embedded schemas. We can detect the top-level keywords that indicate an openapi document and warn about them, pointing them to the correct code path (i.e. ->add_schema(JSON::Schema::Modern::Document::OpenAPI->new(...))).
A user might mistakenly do
$js->add_schema($uri => $schema_data)
with an OpenAPI document, which will cause the data to be treated as a json schema rather than an openapi document with embedded schemas. We can detect the top-level keywords that indicate an openapi document and warn about them, pointing them to the correct code path (i.e.->add_schema(JSON::Schema::Modern::Document::OpenAPI->new(...))
).