Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
allow for $schema to be something else other than the main draft meta…
Browse files Browse the repository at this point in the history
…spec
  • Loading branch information
karenetheridge committed Nov 30, 2020
1 parent ab8f7b1 commit d200da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Conch/Controller/JSONSchema.pm
Expand Up @@ -84,7 +84,7 @@ sub get ($c) {

# the canonical location of this document -- which should be the same URL used to get here
$bundled_schema->{'$id'} = $c->url_for('/json_schema/'.$type.'/'.$name)->to_abs;
$bundled_schema->{'$schema'} = 'https://json-schema.org/draft/2019-09/schema';
$bundled_schema->{'$schema'} //= 'https://json-schema.org/draft/2019-09/schema';

$c->res->headers->content_type('application/schema+json');
return $c->status(200, $bundled_schema);
Expand Down

0 comments on commit d200da5

Please sign in to comment.